0

We have a requirement to add 100k users to a single muc room in ejabberd server. We are using subscribe_room api to add users one by one. While adding users to the muc room, memory consumed by ejabberd is getting increased. At some point, the Ejabberd server was consuming 11GB of memory. Since memory consumption keeps on increasing, the Ejabberd server process is getting killed by the kernel. We are using the ejabberd-21.01 version.

  1. Do we need to change any configuration or are we missing anything?
  2. Is there a way to add multiple users to muc room in a single api call to ejabberd?
James Z
  • 12,209
  • 10
  • 24
  • 44
  • As you should have noticed already, rest of the world doesn't use Indian words lakh / lac. So please don't use them here. – James Z Sep 07 '21 at 14:43

1 Answers1

0

We have a requirement to add 1lakh users to a single muc room in ejabberd server.

I don't know what 1 lakh is, but anyway:

XEP-0045 MUC is designed for a few users chatting, or a few hundreds... not for thousands or millions of bots receiving notifications. Bots don't care about presence, so using MUC is overkill.

You should check alternatives, for example:

Badlop
  • 3,840
  • 1
  • 8
  • 9
  • We have a school with more than 100k users & we want to send school level messages to all users. So We want to add all of them to a single muc room using ejabberd server. While adding 100k users, We got memory issue. Is there a way to add them in bulk without any memory issues? – Ranjithkumar Sep 08 '21 at 07:04
  • To send school level messages to all users, see mod_announce https://docs.ejabberd.im/admin/configuration/modules/#mod-announce – Badlop Sep 15 '21 at 10:36