I recently installed RabbitMQ on a Debian 11 server and noticed that the vast majority of threads now belong to the same process - beam.smp. From what I found on the Internet, this process is Erlang's runtime or VM, a dependancy of RabbitMQ. The output of ps
indicates that it is a single process with 1200 threads.
$ ps -e | grep beam.smp | wc -l
1
$ ps -eLF | grep beam.smp | wc -l
1200
CPU usage is very low, so all these threads must be sleeping. However, I find it very weird for a single process to have that many threads.
Is this normal or is it a sign of misconfiguration? Or could it be a bug? It doesn't seem to cause any immediate issues but could it lead to problems at a later time?
Normally I would provide the contents of a configuration file but in this case I can't find the configuration file that is responsible for beam.smp.