This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Performance and the fly likes Generating heap dumps and JVM crashing. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "Generating heap dumps and JVM crashing." Watch "Generating heap dumps and JVM crashing." New topic
Author

Generating heap dumps and JVM crashing.

Chetan Ram
Greenhorn

Joined: Mar 10, 2011
Posts: 20
Hi All,

We have deployed our application to a server in which JVM is crashing many, many times there are lot of heap dumps getting created in WebSphere6. In fact, our application's JVM is crashing every few minutes, creating 120MB dumps each time. Clearly there is something wrong with the application that needs to be addressed and until the app JVM crash issue is corrected, the WAS filesystem will continue to fill, causing problems with deployments and general WAS sanity.

If heapdumps are getting created and JVM is getting crashed everytime on server. Does this behavior should happen to me locally i.e development box? If locally, not able to produce. How do i handle this issue?


Thanks,
Chinnu
Allen Bandela
Ranch Hand

Joined: Feb 16, 2006
Posts: 128

The server may be crashing due to a use-case not being replicated on the local system.

You can generate thread dumps when a crash is imminent. This may help identify the code causing the server crash.

If you are going to generate a thread dump, a nice procedure to analyze is generate multiple dumps between small intervals and determine if any thread is in the same code in all the dumps. This code could then point to the issue.
Pierre-Hugues Charbonneau
Greenhorn

Joined: Feb 05, 2011
Posts: 9
Hi Chetan,

Can you please also look at your WAS server log? Heap Dump generation normally indicates your application did trigger an OutOfMemoryError (Java Heap or native memory depletion) condition.

Please provide a snapshot of your server log showing error and StackTrace of the first occurrence of OOM, if any.

Can you please also provide which JDK vendor you are using with WAS6, Sun HotSpot VM or IBM JDK over AIX OS??

Regards,
P-H
http://javaeesupportpatterns.blogspot.com/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Generating heap dumps and JVM crashing.
 
Similar Threads
startNodeManager.sh and startWeblogic.sh doesn't start to execute
Detecting Crashes in JBoss 4.0.2
Out of Memory / Heap full exceptions
Out Of Memory
free memory vs heap