I'm using J2SDK1.4.2 (this is our main focus), so Jmap and Jconsole is not
possible.
On JDK1.5.0_12, jps doesn't give any PID looks like I can not get heap
dump with jmap. Also on JDK1.5.0_12, jconsole doesn't show any PID for the
java process that is running my osgi framework.jar.
Can someone point me to wiki or where/how to get heap dump with agent
method?
thx
-XX:+HeapDumpOnOutOfMemoryError was backported to 1.4.2_12, although
some specific bugs may require you to use 1.4.2_15 or later.
Support for "jmap" on Win32 only starts from Java 1.6.
You could also try to use YourKit to obtain a (YK-specific) memory
snapshot on Win32/Java 1.4. However, this is out of scope for discussion
in this newsgroup I think :)
ok, so I'm trying with j2sdk1.4.2_16, I just want to get a heap dump,
currently the program doesn't show OutOfMemoryError, but I want to force a
heap dump when java.exe process is larger than 64MB, how can I do this? thx
currently I'm trying this but it's not giving a dump:
c:\j2sdk1.4.2_16\bin\java -XX:+HeapDumpOnOutOfMemoryError -Xmx64m -jar
framework.jar