powered by Jive Software

Java Heap Error

Openfire 3.6.4 on Windows has been crashing consistently after only a day with heap space errors. Does anyone have an idea of what I can do to correct this?

stream:error (internal-server-error)
at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:306)
at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:44)
at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:76)
Exception in thread “Thread-221” java.lang.NullPointerException
at org.jivesoftware.openfire.gateway.protocols.xmpp.XMPPSession$1.run(XMPPSession. java:242)
Exception in thread “Thread-766” java.lang.OutOfMemoryError: Java heap space
Exception in thread “HouseKeeper” Exception in thread “btpool0-0” java.lang.OutOfMemoryError: Java heap space
Exception in thread “BOSConnection to 64.12.28.237:5190” java.lang.OutOfMemoryError: Java heap space
Exception in thread “BOSConnection to 64.12.28.122:5190” java.lang.OutOfMemoryError: Java heap space
Jul 24, 2009 10:12:27 AM net.kano.joscar.net.ConnProcessorImpl handleException
WARNING: Exception handler org.jivesoftware.openfire.gateway.protocols.oscar.AbstractFlapConnection$3@bcc4 f3threw exception: java.lang.OutOfMemoryError: Java heap space
Jul 24, 2009 10:12:27 AM net.kano.joscar.net.ConnProcessorImpl handleException
WARNING: Exception handler org.jivesoftware.openfire.gateway.protocols.oscar.AbstractFlapConnection$3@d956 c5threw exception: java.lang.OutOfMemoryError: Java heap space
Exception in thread “Thread-767” java.lang.OutOfMemoryError: Java heap space
Exception in thread “btpool1-1” java.lang.OutOfMemoryError: Java heap space
Exception in thread “Timer-193” java.lang.OutOfMemoryError: Java heap space
Logging Error: Unknown error writing event.
81341017 [client-9] WARN org.jivesoftware.openfire.nio.ClientConnectionHandler - [/172.31.9.83:4525] Unexpected exception from exceptionCaught handler.
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
Logging Error: Unknown error writing event.
java.lang.OutOfMemoryError: Java heap space
Jul 24, 2009 10:16:03 AM net.kano.joscar.net.ConnProcessorImpl handleException
WARNING: Exception handler org.jivesoftware.openfire.gateway.protocols.oscar.AbstractFlapConnection$3@16c9 e85threw exception: java.lang.OutOfMemoryError: Java heap space
Logging Error: Unknown error writing event.
java.lang.OutOfMemoryError: Java heap space
Logging Error: Unknown error writing event.
java.lang.OutOfMemoryError: Java heap space
Exception in thread “pool-2-thread-2” java.lang.OutOfMemoryError: Java heap space
Logging Error: Unknown error writing event.
java.lang.OutOfMemoryError: Java heap space
Logging Error: Unknown error writing event.
java.lang.OutOfMemoryError: Java heap space
Logging Error: Unknown error writing event.
java.lang.OutOfMemoryError: Java heap space
Logging Error: Unknown error writing event.
java.lang.OutOfMemoryError: Java heap space
Exception in thread “Auditor” java.lang.OutOfMemoryError: Java heap space
Exception in thread “BOSConnection to 205.188.8.101:5190” java.lang.OutOfMemoryError: Java heap space
Logging Error: Unknown error writing event.
java.lang.OutOfMemoryError: Java heap space
Logging Error: Unknown error writing event.
java.lang.OutOfMemoryError: Java heap space
Logging Error: Unknown error writing event.
java.lang.OutOfMemoryError: Java heap space
Logging Error: Unknown error writing event.
java.lang.OutOfMemoryError: Java heap space
Logging Error: Unknown error writing event.
java.lang.OutOfMemoryError: Java heap space

The application is running out of memory. This could be either due to a memory leak or you need to assign more memory to the application process. I see threads named BOSConnectiona and also some stacktrace with smack code. Since you are not using Openfire’s code out of the box then a memory leak could very well be the reason for this problem. Anyway, try increasing the server’s memory and see if the problem persists. If it does then you will need to contact the developers of your extensions to figure out where the memory leak is.

– Gato