[solved] Java heap space

Hi there,

we are experiencing difficulties with our openfire server (3.7.1) running on a system with enough memory (2GB) and mainly 50-60 users logged in.

From time to time (every 3-4days) openfire is freezing with stderror.log entries:

-x-x-

Exception in thread “HouseKeeper” java.lang.OutOfMemoryError: Java heap space

Exception in thread “pool-3-thread-1” java.lang.OutOfMemoryError: Java heap space

Exception in thread “Prototyper” java.lang.OutOfMemoryError: Java heap space

-x-x-

Openfire’s server java process has 448.00 MB memory total with mostly 60-80% in use.

We alredy tried to

  • raise the memory with -Xm option
  • disable nearly every plugin
  • use another java interpreter (1.5 and 1.6)
  • use another machine (hardware)
  • use another openfire version (3.6 and 3.7)

None did work - the freezes keep coming.

Anyone any suggestion?

Thanks for help!

Do you have the xmpp.pep.enabled attribute set to false? If it’s something else, or not in your system attributes list, add it, cycle Openfire and see if that helps.

This is a known issue with Openfire.

If you using the internal database, how big are the files in the embedded-db folder?

Hi David,

thanks for your reply. The parameter was not set, so we set it to false. Let’s see what happens.

Hi LZ,

thanks for your reply.

Yes - we are using the embedded db, here are the files with :

openfire.script = 41M

With 40 MB there should be no memory issue, anyhow the whole database is held in memory. So one must not use archiving when using the internal database.

So you maybe did hit the PEP bug.

After 3 weeks of stable operation I can confirm, that setting xmpp.pep.enabled to false solved the problem for us.

Thanks for your support!