title: Java Garbage Collection Monitoring
body: <p>I have a project in Netbeans that I am profiling (using Java 7). What I am looking for is, upon a garbage collection, how much memory from the Eden space is going into the Survivor spaces, and if there is any memory overflowing into the Tenured space. On top of that, I am looking for how the Tenured space is growing in size over time.</p>
  
  <p>I print GC stats but I only get info like this:</p>
  
  <pre><code>2339.967: [GC 2339.967: [ParNew: 66213K-&gt;4522K(69376K), 0.0161101 secs] 284589K-&gt;223320K(369484K), 0.0161685 secs] [Times: user=0.03 sys=0.00, real=0.02 secs] 
  2344.543: [GC 2344.543: [ParNew: 66218K-&gt;4520K(69376K), 0.0161084 secs] 285016K-&gt;223739K(369484K), 0.0161647 secs] [Times: user=0.03 sys=0.00, real=0.02 secs] 
  2349.118: [GC 2349.118: [ParNew: 66216K-&gt;4519K(69376K), 0.0159046 secs] 285435K-&gt;224159K(369484K), 0.0159587 secs] [Times: user=0.03 sys=0.00, real=0.02 secs] 
  </code></pre>
  
  <p>Anyone know of a way to figure out the information I am looking for?</p>
  
  <p>Thanks!</p>