in

HeapDumps in Weblogic 8.1

Hi,

We have an application deployed on Weblogic 8.1 (Sun JDK 1.4.2_19). We are facing OutOfMemory errors frequently when a particular application functionality is used.

Based on the information on the internet, I have enabled the HeapDump by configuring the -XX:+HeapDumpOnOutOfMemoryError JVM flag for the particular server (server1) in Config.xml.

But I am not getting HeapDump generated anywhere in the server folders (log file locations).

We are running weblogic servers as windows services.

Can any one in EE help me out on

1) Actual configuration needed to properly generate the HeapDump
2) How to analyze the HeapDumps (Any tools available)
3) Does running Weblogic as windows services gives problems in this case?
4) Is there any way to generate the HeapDump on demand?

Thanks in advance.

Regards
Rishi

Solution: HeapDumps in Weblogic 8.1

Answer.....
1) Yes.
2) It is enough
3) When the server getting out of memory it should debug to server log file like this.
java.lang.OutOfMemoryError: Java heap space
Dumping heap to java_pid4332.hprof ...

By default, the file would be generated in the folder that you starting script startWebLogicServer.cmd

If you cann't get that file. You need to make sure that your parameter is passed to startup script correctly.

Try to find server log file. As I remember it should be located in domains\YourDomain\logs\YourServer\server1.log maybe.

In this file, take a look for something like this
java -Xms96m -Xmx256m  -Xverify:none -Dweblogic.Name= -Dweblogic.management.username= -Dweblogic.management.password= -Dweblogic.ProductionModeEnabled= -Djava.security.policy="C:\bea\weblogic815\server\lib\weblogic.policy" -XX:+HeapDumpOnOutOfMemoryError weblogic.Server

and make sure that -XX:+HeapDumpOnOutOfMemoryError is out there.

Hope this help,
Sompol