GCViewer icon indicating copy to clipboard operation
GCViewer copied to clipboard

line indicating perm gen usage

Open chewiebug opened this issue 12 years ago • 7 comments

There should be a line indicating the usage and allocation of the perm gen space if the information is present in the gc log.

chewiebug avatar Jan 31 '12 20:01 chewiebug

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.

frostyandy2k avatar Jun 22 '12 16:06 frostyandy2k

With what setting (besides FullGC) this can be read? +PrintHeap*?

ecki avatar Sep 28 '12 23:09 ecki

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.

frostyandy2k avatar Sep 29 '12 07:09 frostyandy2k

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.

ecki avatar Sep 29 '12 21:09 ecki

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)

adosaiguas avatar Jul 08 '14 14:07 adosaiguas

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

chewiebug avatar Jul 08 '14 16:07 chewiebug

Yes, this is +1!

adosaiguas avatar Jul 08 '14 18:07 adosaiguas