High CPU usage after system sleep/hibernate caused by Erlang process.

307 views
Skip to first unread message

Kristof Vervaeck

unread,
Nov 2, 2014, 1:03:05 PM11/2/14
to rabbitm...@googlegroups.com
Hello,

We are developing an application for  Windows 8,1 devices that uses a local RabbitMQ instance for communication with other local applications.

After a sleep or hibernate state of the OS, the Erlang process uses a lot of CPU power for a couple of minutes which causes RabbitMQ not to process any messages.
I found the problem is caused because Erlang tries to execute all the ticks that needed to be executed during the sleep/hibernate state of the OS.
It becomes a big problem if our devices have gone to sleep for about a weekend. The Erlang process needs 15 minutes to return to it's normal state.

We are using RabbitMQ 3.3.5, Erlang version 17.

Is there a possible solutions to this problem?


Thanks in advance,

Kristof Vervaeck

Michael Klishin

unread,
Nov 2, 2014, 1:59:25 PM11/2/14
to Kristof Vervaeck, rabbitm...@googlegroups.com
Your understanding is correct: it's various timers firing after instantaneous  system clock advancement. I doubt there is a way to avoid this but feel free to ask on the Erlang list.

MK
--
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.
For more options, visit https://groups.google.com/d/optout.

Kristof Vervaeck

unread,
Jan 19, 2015, 7:45:51 AM1/19/15
to rabbitm...@googlegroups.com, k.ver...@gmail.com
Hello,

I need to provide the +c argument to erl.exe. How can I achieve this within the configuration of RabbitMQ?

Michael Klishin

unread,
Jan 19, 2015, 8:28:49 AM1/19/15
to Kristof Vervaeck, rabbitm...@googlegroups.com
On 19 January 2015 at 15:45:55, Kristof Vervaeck (k.ver...@gmail.com) wrote:
> I need to provide the +c argument to erl.exe. How can I achieve
> this within the configuration of RabbitMQ?

See RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS  on http://www.rabbitmq.com/configure.html.

Note that for the env variable to take effect with the Windows service, you must *re-install* the service,
not just restart it.
--
MK

Staff Software Engineer, Pivotal/RabbitMQ
Reply all
Reply to author
Forward
0 new messages