garbage collection - Java Process did not die after OutOfMemoryException -
i testing application, application threw outofmemory exception, process still alive, can see processexplorer. thought live , not doing after oom, after time still see aplication activity. bit surprised. reason why can happen?
java.lang.outofmemoryerror: java heap space dumping heap java_pid8920.hprof ... heap dump file created [2826469039 bytes in 59.888 secs] exception in thread "activemq transport: tcp://localhost/127.0.0.1:61000@53335" java.lang.outofmemoryerror: java heap space
jvm options used are:
-xx:+useconcmarksweepgc -xx:+useparnewgc -xx:+printgcdetails -verbose:gc -xloggc:c:/temp/gcverbose.log
it 64-bit java 1.7.
edit:::
i thought application still doing saw few more application related log messages after oom exception. after few minutes, see final exception stack below , application activity stopped. process still alive!
exception in thread "pool-3-thread-1" java.lang.outofmemoryerror: java heap space exception in thread "activemq session task-13" java.lang.outofmemoryerror: java heap space feb 17, 2013 4:54:44 pm sun.rmi.transport.tcp.tcptransport$acceptloop executeacceptloop warning: rmi tcp accept-0: take loop serversocket[addr=0.0.0.0/0.0.0.0,port=0,localport=53490] throws java.lang.outofmemoryerror: java heap space @ java.net.networkinterface.getall(native method) @ java.net.networkinterface.getnetworkinterfaces(networkinterface.java:326) @ sun.management.jmxremote.localrmiserversocketfactory$1.accept(localrmiserversocketfactory.java:86) @ sun.rmi.transport.tcp.tcptransport$acceptloop.executeacceptloop(tcptransport.java:387) @ sun.rmi.transport.tcp.tcptransport$acceptloop.run(tcptransport.java:359) @ java.lang.thread.run(thread.java:722) feb 17, 2013 4:57:34 pm servercommunicatoradmin reqincoming warning: server has decided close client connection. exception in thread "activemq inactivitymonitor worker" java.lang.outofmemoryerror: java heap space exception in thread "main" java.lang.outofmemoryerror: java heap space
try kill -3 <process-pid>
print java thread dumps , see app hanging.
java garbage-collection jvm out-of-memory
I admire this article for the well-researched content and excellent wording. I got so involved in this material that I couldn’t stop reading. I am impressed with your work and skill. Thank you so much. Leander Dumpsters Rentals
ReplyDelete