Beam.smp is causing very high CPU usage and impacting other applications. From other threads I heard that Erlange vm can be configured to use limited cores. Any idea how to do this configuration ? Which erlang option to use? Any examples etc.
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send an email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
See http://erlang.org/doc/man/erl.html#+S and RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS
in http://www.rabbitmq.com/configure.html.
On Wed, May 3, 2017 at 2:36 PM, Chao Xu <sukka...@gmail.com> wrote:
Beam.smp is causing very high CPU usage and impacting other applications. From other threads I heard that Erlange vm can be configured to use limited cores. Any idea how to do this configuration ? Which erlang option to use? Any examples etc.
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send an email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
Add the following to your rabbitmq-env.conf:SERVER_ADDITIONAL_ERL_ARGS="+S 2:2"if you want the node to only use 2 cores. Change the 2s to 4s if you want 4 cores, and so on:SERVER_ADDITIONAL_ERL_ARGS="+S 4:4"Then in the logs you will see a line similar to this:Erlang/OTP 19 [erts-8.3] [source] [64-bit] [smp:2:2] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]and the smp part tells you how many schedulers are used by the Erlang VM (it's an oversimplificationbut assume that one scheduler uses 1 core).As Luke points out, it may be a better idea to investigate what causes the loadand why RabbitMQ is co-hosted with out applications that may be competing
for CPU resources with it :)
On Wed, May 3, 2017 at 7:15 PM, Luke Bakken <lu...@bakken.io> wrote:
Hi Chao,Be sure to do some internet searching to see if you are experiencing high CPU due to how you are using RabbitMQ. For instance, a quick Google search using the terms "rabbitmq cpu usage" turned up these issues using Celery with RabbitMQ:http://stackoverflow.com/questions/6362829/rabbitmq-on-ec2-consuming-tons-of-cpu
On Wednesday, May 3, 2017 at 5:36:08 AM UTC-7, Chao Xu wrote:Beam.smp is causing very high CPU usage and impacting other applications. From other threads I heard that Erlange vm can be configured to use limited cores. Any idea how to do this configuration ? Which erlang option to use? Any examples etc.
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
Add the following to your rabbitmq-env.conf:SERVER_ADDITIONAL_ERL_ARGS="+S 2:2"if you want the node to only use 2 cores. Change the 2s to 4s if you want 4 cores, and so on:SERVER_ADDITIONAL_ERL_ARGS="+S 4:4"Then in the logs you will see a line similar to this:Erlang/OTP 19 [erts-8.3] [source] [64-bit] [smp:2:2] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]and the smp part tells you how many schedulers are used by the Erlang VM (it's an oversimplificationbut assume that one scheduler uses 1 core).As Luke points out, it may be a better idea to investigate what causes the loadand why RabbitMQ is co-hosted with out applications that may be competing
for CPU resources with it :)
On Wed, May 3, 2017 at 7:15 PM, Luke Bakken <lu...@bakken.io> wrote:
Hi Chao,Be sure to do some internet searching to see if you are experiencing high CPU due to how you are using RabbitMQ. For instance, a quick Google search using the terms "rabbitmq cpu usage" turned up these issues using Celery with RabbitMQ:http://stackoverflow.com/questions/6362829/rabbitmq-on-ec2-consuming-tons-of-cpu
On Wednesday, May 3, 2017 at 5:36:08 AM UTC-7, Chao Xu wrote:Beam.smp is causing very high CPU usage and impacting other applications. From other threads I heard that Erlange vm can be configured to use limited cores. Any idea how to do this configuration ? Which erlang option to use? Any examples etc.
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.