How to analyze a memory leak in Java 1.3
I have a WebLogic 7 server, running under j2sdk1_3 on a Solaris platform. Since Java5, I know the jmap command is very usefull for analyzing and troubleshooting a memory leak.
Is there a similar tool that can be used on Java 1.3?
The -Xrunhprof option is available on the 1.3 JVM executable. This will generate a heap dump, in either ASCII or binary format, when the JVM exits (whether or not due to out-of-memory). If you have a modern development machine, I believe you can use jhat to read the binary format. As noted in the docs, java -Xrunhprof:help will tell you what the options are.