We started seeing 'java.lang.OutOfMemoryError: PermGen space'. In order to findout what is held in perm space, tried running
'/usr/j2sdk1.6.0_13/bin/jmap -permstat 20476 -J-mx1280m > /tmp/permstats20476.txt &'
This command is taking long time ..... in between it gave below exception:
finding class loader instances ..252829 intern Strings occupying 30781792 bytes.Finding object size using Printezis bits and skipping over...Finding object size using Printezis bits and skipping over...Finding object size using Printezis bits and skipping over...Finding object size using Printezis bits and skipping over...
done.computing per loader stat ..done.please wait.. computing liveness...................Exception in thread "Thread-1" java.lang.OutOfMemoryError: GC overhead limit exceeded at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.readBytesFromProcess0(Native Method) at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.access$1000(LinuxDebuggerLocal.java:51) at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal$1ReadBytesFromProcessTask.doit(LinuxDebuggerLocal.java:558) at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal$LinuxDebuggerLocalWorkerThread.run(LinuxDebuggerLocal.java:127)
but it is not completing ...
[svcmig2@app430 ~]$ uname -aLinux app430... 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:39 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
is there any other alternates to jmap ? so that i get the perm stats fast
ObjectHistogram
with your customHeapIterator
and do whatever you want. What whould you like to see in the "detailed breakup"? – apangin Aug 22 '14 at 9:18-XX:+CMSClassUnloadingEnabled
JVM options. – apangin Aug 22 '14 at 22:09