| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| |
| --> |
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr"> |
| <head> |
| <title>Memory Snapshot Comparison</title> |
| <link rel="stylesheet" href="ide.css" title="Oracle BLAFDoc" type="text/css"/> |
| </head> |
| |
| <body> |
| <p><a id="MemoryDiff.HelpCtx" name="MemoryDiff.HelpCtx"></a></p> |
| <div id="NBCSH3379"><!-- infolevel="all" infotype="General" --><a id="sthref424" name="sthref424"></a> |
| <h1>Memory Snapshot Comparison</h1> |
| <a name="BEGIN" id="BEGIN"></a> |
| <p>Use to display a comparison of two memory snapshots. |
| <object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer"> |
| <param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG784"> |
| <param name="text" value="<html><u>How?</u></html>"> |
| <param name="textFontSize" value="medium"> |
| <param name="textColor" value="blue"> |
| </object> |
| </p> |
| <p><b>Sampling Comparison</b></p> |
| <p>If the <b>Quick (Sampled)</b> option was selected for the profiling session, the comparison provides details on the difference between the number of live objects in the two snapshots.</p> |
| |
| <table summary="Description of sampling comparison results in Memory Snapshot Comparison window." dir="ltr" border="1" width="100%" frame="hsides" rules="groups" cellpadding="3" cellspacing="0"> |
| <col width="34%" /> |
| <col width="*" /> |
| <thead> |
| <tr align="left" valign="top"> |
| <th align="left" valign="bottom" id="r1c1-t27">Element</th> |
| <th align="left" valign="bottom" id="r1c2-t27">Description</th> |
| </tr> |
| </thead> |
| <tbody> |
| <tr align="left" valign="top"> |
| <td align="left" id="r2c1-t27" headers="r1c1-t27"> |
| <p>Class Name - Live Objects</p> |
| </td> |
| <td align="left" headers="r2c1-t27 r1c2-t27">Displays the name of the class or live object.</td> |
| </tr> |
| <tr align="left" valign="top"> |
| <td align="left" id="r3c1-t27" headers="r1c1-t27"> |
| <p>Live Bytes [%]</p> |
| </td> |
| <td align="left" headers="r3c1-t27 r1c2-t27">Provides a graphic display of the relative amount of memory currently occupied by the live object.</td> |
| </tr> |
| <tr align="left" valign="top"> |
| <td align="left" id="r4c1-t27" headers="r1c1-t27"> |
| <p>Live Bytes</p> |
| </td> |
| <td align="left" headers="r4c1-t27 r1c2-t27">Displays the memory size in bytes that is currently occupied by the live object.</td> |
| </tr> |
| <tr align="left" valign="top"> |
| <td align="left" id="r5c1-t27" headers="r1c1-t27"> |
| <p>Live Objects</p> |
| </td> |
| <td align="left" headers="r5c1-t27 r1c2-t27">Displays the exact difference between the number of live objects in the two snapshots.</td> |
| </tr> |
| </tbody> |
| </table> |
| <br /> |
| <!-- --> |
| <p><b>Allocations Comparison</b></p> |
| <p>If <b>Record object creation</b> was selected for the profiling session, the comparison provides details on the total number of instances.</p> |
| |
| <table summary="Description of allocations comparison results in Memory Snapshot Comparison window." dir="ltr" border="1" width="100%" frame="hsides" rules="groups" cellpadding="3" cellspacing="0"> |
| <col width="34%" /> |
| <col width="*" /> |
| <thead> |
| <tr align="left" valign="top"> |
| <th align="left" valign="bottom" id="r1c1-t28">Element</th> |
| <th align="left" valign="bottom" id="r1c2-t28">Description</th> |
| </tr> |
| </thead> |
| <tbody> |
| <tr align="left" valign="top"> |
| <td align="left" id="r2c1-t28" headers="r1c1-t28"> |
| <p>Class Name - Allocated Objects</p> |
| </td> |
| <td align="left" headers="r2c1-t28 r1c2-t28">Displays the name of the class or allocated object.</td> |
| </tr> |
| <tr align="left" valign="top"> |
| <td align="left" id="r3c1-t28" headers="r1c1-t28"> |
| <p>Bytes Allocated [%]</p> |
| </td> |
| <td align="left" headers="r3c1-t28 r1c2-t28">Provides a graphic display of the relative amount of memory occupied by instances of the class.</td> |
| </tr> |
| <tr align="left" valign="top"> |
| <td align="left" id="r4c1-t28" headers="r1c1-t28"> |
| <p>Bytes Allocated</p> |
| </td> |
| <td align="left" headers="r4c1-t28 r1c2-t28">Displays the memory size in bytes occupied by the instances of the class.</td> |
| </tr> |
| <tr align="left" valign="top"> |
| <td align="left" id="r5c1-t28" headers="r1c1-t28"> |
| <p>Objects Allocated</p> |
| </td> |
| <td align="left" headers="r5c1-t28 r1c2-t28">Displays the number of all instances of the class.</td> |
| </tr> |
| </tbody> |
| </table> |
| <br /> |
| <!-- --> |
| <p><b>Liveness Comparison</b></p> |
| <p>If <b>Record both object creation and garbage collection</b> was selected for the profiling session, the comparison provides more detailed data on live instances.</p> |
| |
| <table summary="Description of liveness comparison results in Memory Snapshot Comparison window." dir="ltr" border="1" width="100%" frame="hsides" rules="groups" cellpadding="3" cellspacing="0"> |
| <col width="34%" /> |
| <col width="*" /> |
| <thead> |
| <tr align="left" valign="top"> |
| <th align="left" valign="bottom" id="r1c1-t29">Element</th> |
| <th align="left" valign="bottom" id="r1c2-t29">Description</th> |
| </tr> |
| </thead> |
| <tbody> |
| <tr align="left" valign="top"> |
| <td align="left" id="r2c1-t29" headers="r1c1-t29"> |
| <p>Class Name - Allocated Objects</p> |
| </td> |
| <td align="left" headers="r2c1-t29 r1c2-t29">Displays the name of the class or allocated object.</td> |
| </tr> |
| <tr align="left" valign="top"> |
| <td align="left" id="r3c1-t29" headers="r1c1-t29"> |
| <p>Live Bytes [%]</p> |
| </td> |
| <td align="left" headers="r3c1-t29 r1c2-t29">Provides a graphic display of the relative amount of memory occupied by live instances of the class.</td> |
| </tr> |
| <tr align="left" valign="top"> |
| <td align="left" id="r4c1-t29" headers="r1c1-t29"> |
| <p>Live Bytes</p> |
| </td> |
| <td align="left" headers="r4c1-t29 r1c2-t29">Displays the memory size in bytes that is currently occupied by the live instances of the class.</td> |
| </tr> |
| <tr align="left" valign="top"> |
| <td align="left" id="r5c1-t29" headers="r1c1-t29"> |
| <p>Live Objects</p> |
| </td> |
| <td align="left" headers="r5c1-t29 r1c2-t29">Displays the number of current live instances of the class.</td> |
| </tr> |
| <tr align="left" valign="top"> |
| <td align="left" id="r6c1-t29" headers="r1c1-t29"> |
| <p>Allocated Objects</p> |
| </td> |
| <td align="left" headers="r6c1-t29 r1c2-t29">Displays the number of all instances of the class created since the application was started or since the results were last reset.</td> |
| </tr> |
| <tr align="left" valign="top"> |
| <td align="left" id="r7c1-t29" headers="r1c1-t29"> |
| <p>Average Age</p> |
| </td> |
| <td align="left" headers="r7c1-t29 r1c2-t29">Displays the average age in generations of live instances of the class.</td> |
| </tr> |
| <tr align="left" valign="top"> |
| <td align="left" id="r8c1-t29" headers="r1c1-t29"> |
| <p>Generations</p> |
| </td> |
| <td align="left" headers="r8c1-t29 r1c2-t29">Displays the number of different generations (garbage collections survived) of live instances of the class.</td> |
| </tr> |
| </tbody> |
| </table> |
| <br /> |
| <!-- --> |
| <a id="NBCSH3395" name="NBCSH3395"></a> |
| <hr><p><b>Related Topics</b></p> |
| <p><i>Developing Applications with NetBeans IDE</i>, |
| <object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer"> |
| <param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG727"> |
| <param name="text" value="<html><u>"Taking a Snapshot"</u></html>"> |
| <param name="textFontSize" value="medium"> |
| <param name="textColor" value="blue"> |
| </object> |
| </p> |
| <p><i>Developing Applications with NetBeans IDE</i>, |
| <object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer"> |
| <param name="content" value="http://www.oracle.com/pls/topic/lookup?ctx=nb8200&id=NBDAG765"> |
| <param name="text" value="<html><u>"Analyzing Memory Usage"</u></html>"> |
| <param name="textFontSize" value="medium"> |
| <param name="textColor" value="blue"> |
| </object> |
| </p> |
| |
| <!-- --> |
| <!-- Start Footer --> |
| |
| |
| <table summary="" cellspacing="0" cellpadding="0" width="100%"> |
| <tr> |
| <td align="left" width="86%"><a href="legal_notice.htm"> |
| Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements; and to You under the Apache License, Version 2.0.</a> |
| </td> |
| </tr> |
| </table> |
| <!-- --> |
| </body> |
| </html> |