GCViewer
GCViewer copied to clipboard
line indicating perm gen usage
There should be a line indicating the usage and allocation of the perm gen space if the information is present in the gc log.
I would love this feature because I have to check gcviewer and the actual log to make myself a picture. We had a PermGen problem on our dev servers and this feature would have definetly helped.
With what setting (besides FullGC) this can be read? +PrintHeap*?
Hi
The normal Xloggc will not print the Permgen data, so it is not visible in GCViewer. You would have to enable it first and then it will be printed in the output of GCviewer by default.
In the jboss start-up config add the following parameter:
-XX:+PrintGCDetails
Example usage: java -Xloggc:./memory.log -XX:+PrintGCDetails Memory
Then you get the PSYoungGen or PSPermGen output in the gc-log
See discussion here: http://stackoverflow.com/questions/895444/java-garbage-collection-log-messages/11158559#11158559
Hope it helps Greetings Andrei
From: Bernd [email protected] To: chewiebug/GCViewer [email protected] Sent: Saturday, September 29, 2012 1:44 AM Subject: Re: [GCViewer] line indicating perm gen usage (#15)
With what setting (besides FullGC) this can be read? +PrintHeap*? — Reply to this email directly or view it on GitHub.
When I use ParNew+CMS the GCDetails will never print PermStats (unless a FullGC happens which it should hopefully never). I think the -XX:+PrintHeapAtGC(Extended) would do that (but on each GC, however it is tuneable via JMX). Not sure if -XX:+PrintHeapAtSIGBREAK writes into gclog.
It seems not to be read from the GC log file even after adding -XX:+PrintHeapAtGC. It would be great to have this feature!
$ grep "perm gen" server.loggc.log compacting perm gen total 131072K, used 15980K [0x00000000f8000000, 0x0000000100000000, 0x0000000100000000) compacting perm gen total 131072K, used 15980K [0x00000000f8000000, 0x0000000100000000, 0x0000000100000000) compacting perm gen total 131072K, used 19222K [0x00000000f8000000, 0x0000000100000000, 0x0000000100000000) compacting perm gen total 131072K, used 19222K [0x00000000f8000000, 0x0000000100000000, 0x0000000100000000) compacting perm gen total 131072K, used 32648K [0x00000000f8000000, 0x0000000100000000, 0x0000000100000000) compacting perm gen total 131072K, used 32648K [0x00000000f8000000, 0x0000000100000000, 0x0000000100000000) compacting perm gen total 131072K, used 36752K [0x00000000f8000000, 0x0000000100000000, 0x0000000100000000) compacting perm gen total 131072K, used 36752K [0x00000000f8000000, 0x0000000100000000, 0x0000000100000000) compacting perm gen total 131072K, used 37649K [0x00000000f8000000, 0x0000000100000000, 0x0000000100000000) compacting perm gen total 131072K, used 37649K [0x00000000f8000000, 0x0000000100000000, 0x0000000100000000)
Right, this feature is still not implemented independent of the usage of PrintHeapAtGC.
I consider your entry +1 votes for this feature (though I must admit that I still can't tell, when it will be implemented).
Best regards, Jörg
-------- Ursprüngliche Nachricht -------- Von: "Agustí Dosaiguas" [email protected] Gesendet: 8. Juli 2014 16:14:29 MESZ An: chewiebug/GCViewer [email protected] Betreff: Re: [GCViewer] line indicating perm gen usage (#15)
It seems not to be read from the GC log file even after adding -XX:+PrintHeapAtGC.
$ grep "perm gen" NETibcServer.loggc.log compacting perm gen total 131072K, used 15980K [0x00000000f8000000, 0x0000000100000000, 0x0000000100000000) compacting perm gen total 131072K, used 15980K [0x00000000f8000000, 0x0000000100000000, 0x0000000100000000) compacting perm gen total 131072K, used 19222K [0x00000000f8000000, 0x0000000100000000, 0x0000000100000000) compacting perm gen total 131072K, used 19222K [0x00000000f8000000, 0x0000000100000000, 0x0000000100000000) compacting perm gen total 131072K, used 32648K [0x00000000f8000000, 0x0000000100000000, 0x0000000100000000) compacting perm gen total 131072K, used 32648K [0x00000000f8000000, 0x0000000100000000, 0x0000000100000000) compacting perm gen total 131072K, used 36752K [0x00000000f8000000, 0x0000000100000000, 0x0000000100000000) compacting perm gen total 131072K, used 36752K [0x00000000f8000000, 0x0000000100000000, 0x0000000100000000) compacting perm gen total 131072K, used 37649K [0x00000000f8000000, 0x0000000100000000, 0x0000000100000000) compacting perm gen total 131072K, used 37649K [0x00000000f8000000, 0x0000000100000000, 0x0000000100000000)
Reply to this email directly or view it on GitHub: https://github.com/chewiebug/GCViewer/issues/15#issuecomment-48341421
Yes, this is +1!