memory

HI
what things of ejabberd consume ram?
for example session, history message, offline message
how much ram is enough for 1000k users?
how much RAM per connection?
when restart what information are removed? for example history message?
thanks in advance

js wrote: what things of

js wrote:

what things of ejabberd consume ram?
for example session, history message, offline message

User sessions and rooms: yes, because they are keep in erlang processes.

Offline messages, user roster, user vcard, room recent history, ...: no, because they are stored in Mnesia database tables that you can configure to be stored only in disk (using WebAdmin), or in ODBC database that you can install in another machine.

js wrote:

how much ram is enough for 1000k users?
how much RAM per connection?

This depends if the connected users have a big roster, etc. The best is that you test the server with the requirements you have.

js wrote:

when restart what information are removed? for example history message?

From what I remember now, only room recent history.

thanks. why room recent

thanks.
why room recent history removed when restart ejabberd server? does erlang process for room recent history message that read from disk or in ODBC database is removed? does erlang process read from from disk or in ODBC database and when restart ejabberd serverd, erlang process is removed and then no process exist that read before history message ?

js wrote: thanks. why room

js wrote:

thanks.
why room recent history removed when restart ejabberd server? does erlang process for room recent history message that read from disk or in ODBC database is removed? does erlang process read from from disk or in ODBC database and when restart ejabberd serverd, erlang process is removed and then no process exist that read before history message ?

Room recent history is only stored in the room process memory: it is stored only in RAM.

When ejabberd is stopped, then the room processes are stopped, their memory is destroyed, the recent history is lost.

Syndicate content