ejabberd takes CPU, RAM and swap and flatlines the server

Hello all,

our ejabberd server flatlines now for the third time in one hour. Before everything worked fine.

From one second to the other ejabberd threads take more and more system resources until nothing is left and not even Ctrl-Alt-Del reboots the machine.

Here's a top screen:

top - 19:56:21 up 31 min,  1 user,  load average: 22.86, 13.11, 8.71
Tasks: 240 total,   3 running, 231 sleeping,   0 stopped,   6 zombie
Cpu(s):  1.4%us,  5.8%sy,  0.0%ni, 12.4%id, 80.3%wa,  0.0%hi,  0.1%si,  0.0%st
Mem:   8190900k total,  8138972k used,    51928k free,      796k buffers
Swap:  8393848k total,  7276916k used,  1116932k free,    42404k cached
.
PID  USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
3239 ejabberd  20   0 15.7g 6.0g  460 S   23 76.7   3:06.65 beam.smp

What is going on? We have 100-400 concurrent users and 100-200 s2s connections on a Intel i7 with 8GB RAM.

DoS attack or something like this?

Regards,
Roi

Re: ejabberd takes CPU, RAM and swap and flatlines the server

What ejabberd and Erlang version are you running? Do you have any transports connected? Do you see any error messages in ejabberd.log/erlang.log/sasl.log?

Re: ejabberd takes CPU, RAM and swap and flatlines the server

We run ejabberd 2.1.3 and Erlang 1:13.b.4-dfsg-5 (official Debian packages for both ejabberd and Erlang).

There is nothing in sasl.log (now called erlang.log, right?), just shutdown notices (for one of the crashes I was able to remotly send Ctrl-Alt-Del which caused the machine to reboot).

Something like this happened

Something like this happened to us today. beam.smp grew violently to 21 gigs (from typical <1g) in couple of minutes. This made the machine feel pretty bad almost brought it to its knees. We had only tens of users and some bots online.

Just prior to memory consumption explosion logs read:

=INFO REPORT==== 2012-03-07 09:25:29 ===
I(<0.406.0>:ejabberd_listener:281) : (#Port<0.26300855>) Accepted connection {{a,b,c,d},56688} -> {{A,B,C,D},5222}

=INFO REPORT==== 2012-03-07 09:25:29 ===
I(<0.406.0>:ejabberd_listener:281) : (#Port<0.26300859>) Accepted connection {{a,b,c,d},56689} -> {{A,B,C,D},5222}

=INFO REPORT==== 2012-03-07 09:25:29 ===
I(<0.406.0>:ejabberd_listener:281) : (#Port<0.26300863>) Accepted connection {{a,b,c,d},56690} -> {{A,B,C,D},5222}

=INFO REPORT==== 2012-03-07 09:25:29 ===
I(<0.406.0>:ejabberd_listener:293) : (#Port<0.3708>) Failed TCP accept: emfile

=INFO REPORT==== 2012-03-07 09:25:29 ===
I(<0.406.0>:ejabberd_listener:293) : (#Port<0.3708>) Failed TCP accept: emfile

Last log message is repeated 192 times before we kill the server with "kill -9" @ 21 gigs.

We are running ejabberd version 2.1.8 and Erland R14B.

Sorry for lack of details but didn't have much opportunity to debug further since priority was to save the server from the DoS situation.

Hopefully sharing this helps someone.

have the same problem

have the same problem http://www.ejabberd.im/node/4084#comment-61940
How did you solve it?

Solve the problem, but not

Solve the problem, but not fully
I don't know, what was the problem

Now I installed Debian + downgrade ejabberd 2.1.10 + erlang 15
and open server limits in limits.conf
Seems, it work stable for several days after that.

But I don't know, what was the problem. It was really strange.....

Try reading this article for

Happens again...

Hello all,

ok it happens again.

ejabberd starts, behaves normal for some minutes (1-5) and then consumes most of physical and virtual memory.

What information would you need to somehow debug the problem? In some cases I can kill beam.smp out before the machine goes down (flatlines, which means that it does not react on anything exept ping anymore).

Regards,
Martin

PS: Running the latest Debian package (2.1.5-3) on amd64 Debian.

We need a crash dump.

We need a crash dump.

I have a crash dump :-)

Hello,

it happened again today :-( but I have a erl_crash.dump file now. How do I get it to you people? It is 200kb big.

Regards,
Martin

Found something in the log...

Ok and I found something in the log, right before the server crashed. The last "normal" entry first, then these "Failed TCP accept" messages. Until nothing else came up. Then a restart of the server by our watchdog (monit), which are the last two messages.

Any idea?

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:232) : (#Port<0.445483>) Accepted connection {{0,0,0,0,0,65535,24139,59908},38815} -> {{0,0,0,0,0,65535,45631,6930},5269}

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=INFO REPORT==== 2010-11-24 18:58:22 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

=ERROR REPORT==== 2010-11-24 19:21:59 ===
E(<0.928.0>:mod_statsdx:271) : get_statistic error for N: ejabberd@calypso, A: [{"user_login",
                                                                                 300000},
                                                                                server]
{badarg,[{ets,lookup,[mod_statsdx_server,{user_login,server}]},
         {mod_statsdx,get_stat,2},
         {mod_statsdx,get_statistic,2},
         {mod_stats2file,fwttl,4},
         {mod_stats2file,write_stats,5},
         {mod_stats2file,write_statsfile,5},
         {mod_stats2file,write_statsfiles,5},
         {mod_stats2file,loop,5}]}

=ERROR REPORT==== 2010-11-24 19:21:59 ===
E(<0.928.0>:mod_statsdx:271) : get_statistic error for N: ejabberd@calypso, A: [{"user_logout",
                                                                                 300000},
                                                                                server]
{badarg,[{ets,lookup,[mod_statsdx_server,{user_logout,server}]},
         {mod_statsdx,get_stat,2},
         {mod_statsdx,get_statistic,2},
         {mod_stats2file,fwttl,4},
         {mod_stats2file,write_stats,5},
         {mod_stats2file,write_statsfile,5},
         {mod_stats2file,write_statsfiles,5},
         {mod_stats2file,loop,5}]}

Too many open files/ports/connections

Roi wrote:

=INFO REPORT==== 2010-11-24 18:58:21 ===
I(<0.2753.0>:ejabberd_listener:244) : (#Port<0.3420>) Failed TCP accept: emfile

emfile: too many open files

Hello, guys, I have the same

Hello, guys, I have the same problem
CentOS 6.4, Ejabberd 2.1.13, elang - 14b04

Ejabberd works fine first 3-5 minutes, than is consume 6gb of RAM (all my memory) and that beam.smp crashes.

I do everything, I change a lot of values, like /proc/sys/fs/file-max and ERL_MAX_FILES and a lot of other
Nothing helps!

In logs the same thing:
Failed TCP accept: emfile

Can you help me? How to solve this problem?

Syndicate content