wood burning stoves 2.0*
The moose likes Performance and the fly likes How to read GC output log ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "How to read GC output log ?" Watch "How to read GC output log ?" New topic
Author

How to read GC output log ?

Francesco Marchioni
author
Ranch Hand

Joined: Sep 22, 2003
Posts: 190
Hi all,
I'm in mess with GC JDK 1.4.x log output. I'd like to read -besides GC information-
how much memory I have left and how much I'm using.

This is a small dump from the GC log:

976.578: [GC 976.578: [Tenured: 18115K->7153K(18116K), 0.3309426 secs] 19523K->7153K(19524K), 0.3459331 secs]
980.544: [GC 980.544: [Tenured: 18115K->8080K(18116K), 0.1734528 secs] 19523K->8080K(19524K), 0.1949907 secs]
982.783: [GC 982.783: [Tenured: 18115K->12388K(18116K), 0.1951404 secs] 19523K->12388K(19524K), 0.2119867 secs]
986.579: [GC 986.579: [Tenured: 20647K->8289K(20648K), 0.1755991 secs] 22311K->8289K(22312K), 0.1924510 secs]

From what I understand I have 8289K free memory and 22312K allocated.

At the meantime my application dumps Runtime.freeMemory() and.Runtime().totalMemory();

and numbers are quite different for free memory:


Free memory: 3'787'672
Total memory: 19'992'576

Free memory: 1'800'240
Total memory: 19'992'576

Free memory: 4'216'928
Total memory: 22'847'488

Free memory: 4'024'792
Total memory: 22'847'488

Does anybody know how to read free/total memory from GC's output ??


WildFly 8 Administration Book - JBoss Tutorials
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to read GC output log ?
 
Similar Threads
Any pointers why my app does so much minor GC?
GC - Young generation promotion can't be guaranteed
about GC Output
Strange garbage collector behaviour
help me to analyz GC log