High CPU / memory usage with mod_shared_roster_ldap and mod_pubsub

Hello everyone,

I am running an ejabberd server with 700 people registered and logging in through LDAP authentication. Every user receives a shared roster populated with all the other contacts by mod_shared_roster_ldap and have the vcard information filled with LDAP information (mod_vcard_ldap).

Everything is working great, but when there are more than 200 connected users the processor usage and memory consumption are too high and people start to disconnect randomly, making the resource usage even higher until I become out of memory, but if I disable the mod_pubsub everything works as expected.

Is there any problem to enable mod_shared_roster_ldap and mod_pubsub in the same ejabberd instance?

Ps. Actually my server is a dual Xeon (16 cores) with 24GB RAM, running erlang R13B04 with SMP enabled and most of xmpp clients connected are pidgin.

It's more likely that it's

It's more likely that it's simply great amount of presence subscription data causes this. Everyone in everyone's roster makes a great load on mod_pubsub. Either consider your need in mod_pubsub, or you will need to limit the visibility of users to one another.

Thank you very much

Thank you very much mikekaganski! Disabling the mod_pubsub was really the best solution for this environment.

Syndicate content