JVM crashes

Robert Faulds Robert.Faulds at voxify.com
Sat Jul 30 20:32:25 GMT 2005


I had some very similar crashes that turned out to be too small default
permanent generation size. Starting tomcat with a fixed heap and bumping
up the permsize solved them for me. Bumping the heap alone was not
enough.

-server -XX:+UseParNewGC -XX:PermSize=128m -XX:MaxPermSize=128M -Xms700M
-Xmx700M

These tools have proven invaluable in diagnosing OOM's.

http://java.sun.com/performance/jvmstat/

and for the JDK 5.0 phobic
http://java.sun.com/performance/jvmstat/faq.html#11

-----Original Message-----
From: owner-freebsd-java at freebsd.org
[mailto:owner-freebsd-java at freebsd.org] On Behalf Of Christopher Farley
Sent: Thursday, July 28, 2005 7:16 AM
To: freebsd-java at freebsd.org
Subject: JVM crashes

I'm running jdk-1.4.2p6_3. 

One of my programs is causing the JVM to crash with the following error:

Exception in thread "CompilerThread1" java.lang.OutOfMemoryError:
requested 32760 bytes for ChunkPool::allocate. Out of swap space?


A search of google brings up loads of problems related to Tomcat, but
this program has nothing to do with Tomcat. To my knowledge, none of the

libraries I am using use JNI code at all. 

First, is there anything programming error that could cause this crash?
I need to know if I should be scrutinizing my code for memory leaks,
etc. I have run the program through a memory profiler, but not the
production system... Everything looks okay.

Second, would it be worth installing the latest jvm patchset to see if
this fixes the problem? 

Finally, if one of my libraries is causing this to happen, how would I
go about determining the cause?

One final, probably irrelevant detail -- the jvm will usually crash
within the first couple of hours of being launched. If it survives more
than a few hours, it seems to go on forever with no problems.  I haven't
seen any other pattern in the crashes!

Thanks for any help you can provide!

-- 
Christopher Farley
www.northernbrewer.com
_______________________________________________
freebsd-java at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "freebsd-java-unsubscribe at freebsd.org"


More information about the freebsd-java mailing list