our production weblogic servers are getting crashed. there are stuck threads and server is getting crashed with out of memory. I took the thread dump but i am not familiar with heap dump.
So, are there any commands to take a heap dump or any tools to take a heap dump. If you have any documentation on analysing the heap dump, it would be much helpful. Which is the best tool for analysing heap dump.
I would suggest you to have a look at the below links which would surely help and also would give you a better idea how to avoid such situations. Topic: WebLogic Heap Dump Genration Using Jmap http://middlewaremagic.com/weblogic/?p=2241 Topic: Heap Dump Using Jhat for WebLogic Server Heap Analysis http://middlewaremagic.com/weblogic/?p=2202
For percussion Topic:OutOfMemory Causes and First Aid Steps? http://middlewaremagic.com/weblogic/?p=4464 Topic: Causes and First Aid of JVM Crash Issues? http://middlewaremagic.com/weblogic/?p=4482
Ravish Mody http://middlewaremagic.com/weblogic Come, Join Us and Experience The Magic…
This options works only when we restart the server and again when the server goes out of memory we can get the heapdump as per the arguments which you mentioned.
But how to collect a heapdump of a server which ran out of memory and which did not have those arguments of "-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath="