Environment:

IBM JDK 1.4.1 SR1
JAVA_OPTS:  -Xgcpolicy:optavgpause -Xms1024m -Xmx1536m -Xss512k
Linux RedHat 7.3
2GB RAM
8192 File Descriptors
JBoss 3.2.2 final + Tomcat 4.1.27

While upgrading our application from JBoss 3.2.2beta to JBoss 3.2.2 final,
we seem to keep running out of memory.  There is much more analysis to be done,
but one major culprit was the new SNMP Adaptor.  After ~12 hours with no one
hitting the application, JBoss sometimes dies with:

20:20:03,127 ERROR [STDERR] java.lang.OutOfMemoryError: heap allocation failed
20:20:03,128 ERROR [STDERR]     at java.net.PlainDatagramSocketImpl.receive(Native 
Method)
20:20:03,129 ERROR [STDERR]     at 
java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:129)
20:20:03,129 ERROR [STDERR]     at 
java.net.DatagramSocket.receive(DatagramSocket.java:701)
20:20:03,130 ERROR [STDERR]     at 
org.opennms.protocols.snmp.SnmpPortal$Receiver.run(SnmpPortal.java:285)
20:20:03,130 ERROR [STDERR]     at java.lang.Thread.run(Thread.java:568)
20:21:21,388 ERROR [STDERR] java.lang.OutOfMemoryError: heap allocation failed
20:21:21,389 ERROR [STDERR]     at java.net.PlainDatagramSocketImpl.receive(Native 
Method)
20:21:21,389 ERROR [STDERR]     at 
java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:129)
20:21:21,390 ERROR [STDERR]     at 
java.net.DatagramSocket.receive(DatagramSocket.java:701)
20:21:21,390 ERROR [STDERR]     at 
org.opennms.protocols.snmp.SnmpPortal$Receiver.run(SnmpPortal.java:285)
20:21:21,391 ERROR [STDERR]     at java.lang.Thread.run(Thread.java:568)

I removed the service over the weekend and the instance is still up.  It looks
like OpenNMS uses a lot of file descriptors:

http://lists.opennms.org/pipermail/discuss/2003-April/027601.html

Just an FYI for anyone having OutOfMemory errors.

--
Chris Bonham
President/CEO
Third Eye Consulting, Inc.
[EMAIL PROTECTED]
http://www.thirdeyeconsulting.com
317.823.3686
317.823.0353 (FAX)


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to