Ejabberd 2.1.7: running out of memory

Hi,

I'm not sure where to look anymore so I'm posting my question on these forums :)

We have a tried and tested server running Ejabberd 2.1.7. It's been up for at least 4 years. All of a sudden, it started crashing at random times.

The server is a VM with 8gig of ram.

The message I'm getting when it crashs is:
Slogan: eheap_alloc: Cannot allocate 747325720 bytes of memory (of type "heap"). There was also another type of heap memory but I can't remember at this point.

What else can I provide you guys?

Thanks in advance,

I forgot to say, we have

I forgot to say, we have about 730 active connections and the memory being used is around 2.5G.

I'm hitting this issue also.

I'm hitting this issue also. We have 32gb of ram on our system...

Well, it really depends on

Well, it really depends on many many factors. Modules enabled, client behaviours, configuration. Basically, it means that something is consuming too much resource but you need to carefully analyse the server behaviour and traffic to know what this is.

But you should really switch to ejabberd 15.x. Memory profile has been considerably optimized. Since ejabberd 13.x we are using binary for in memory data structures. Compared to the previous lists storage it could reduce some structure by 8.

Syndicate content