dragonflydb / dragonfly

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

dragonfly crashes if threads are more then expected #3097

Closed NobinKhan closed 4 months ago

NobinKhan commented 4 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 4 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 4 months ago

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