Jul 13, 2009 9:40 AM
Openfire 3.6.4 - Java Out of Memory
-
Like (0)
Hello everyone,
this is the first message I post in this forum. I'm using Openfire to provide presence information to Voip clients. In my network there are 32 users connecting to the server. I'm using Openfire 3.6.4 on Gentoo 2.6.4 with sun-jre-1.6.0. I'm getting crazy because with few users and 1024mb of memory as max memory for the jvm (-Xmx1024m), the memory rapidly increases and the server goes out of memory in few hours. Opening the Heap Dump with nano I strangely saw lots of presence messages in memory sent by clients. Why the server stores them in memory? Anyone knows anything about this issue? I couldn't get more information analyzing the Heap Dump through jhat...I'm not so concerened about Openfire Java API
. I hope someone could help me! Thanks in advance.
Just attach the heap dump, maybe someone will take a look. How much ram does your server have? I think it takes all 1024, because you have specified them as available and JVM is usually taking all that you give. I suggest to make it less or leave at default. I maintain ~150 concurrent users (messaging only) with the default 64 setting.
Also, maybe this doc can be useful http://www.igniterealtime.org/community/docs/DOC-1033