dragonflydb / dragonfly

A modern replacement for Redis and Memcached
https://www.dragonflydb.io/
Other
25.8k stars 948 forks source link

dragonfly crashes if threads are more then expected #3097

Closed NobinKhan closed 5 months ago

NobinKhan commented 5 months ago

Describe the bug `I20240529 10:33:47.010128 1 init.cc:70] dragonfly running in opt mode.

Environment (please complete the following information):

adiholden commented 5 months ago

Hi @NobinKhan Dragonfly is exiting as there is not enought memory to run with 12 threads. you can see that the process found 1.93GiB available memory but 12 threads requeier 3GiB at least. you should either use machine with more memory or reduce the number of threads with flag --proactor_threads=

dranikpg commented 5 months ago

I think we can close it, as it's not really a bug. Maybe the error message can be improved 🤷🏻‍♂️