Live Results Window - Memory Usage

Use to displays data on object allocation and liveness. The profiling results displayed depend on which of the following options you choose.

Record Object Creation Only

The Live Results window displays a list of classes (including array classes), with the total size and number of instances that have been allocated since you issued the instrumentation command. All classes currently loaded by the target JVM (and each new class as it is loaded) are instrumented.

Element Description

Bytes Allocated [%]

Displays a graphical representation of the percentage of bytes allocated.

Bytes Allocated

Displays the actual number of bytes allocated and the percentage of total bytes.

Objects Allocated

Displays the number of live objects and the percentage of the total number of objects.


Right-click a class name to access the following context menu commands.

Element Description

Go To Source

Opens the source .java file for the selected class in the Source Editor.

Log Class History

Displays the history for the selected instance.


Record Both Object Allocation and Garbage Collection

The Live Results window displays both object allocation and garbage collection data.

Element Description

Live bytes [%]

Displays graphical representation of live bytes.

Live byte

Displays the actual number of live bytes.

Live Objects

Displays the size and number of live tracked objects for the given class at the moment.

You can set the proportion of objects that are tracked when you configure the profiling session.

Allocated objects

Displays the total number of tracked objects that have been allocated.

Average object age

Displays the average age for the live tracked objects of this class, measured as the number of garbage collections that the object has survived.

The IDE does not distinguish between partial (young generation) and full garbage collections if a generational garbage collector is used.

Generations

Displays the number of survived generations and represents the total number of different object ages for objects of this class.

Total number of allocated objects

Displays the total number of allocated objects for this class.


Right-click a class name for the following context menu commands:

Element Description

Go To Source

Opens the source .java file for the selected class in the Source Editor.

Log Class History

Displays the history for the selected instance.

Stop Profiling this Class

Stops profiling the selected class.

Stop Profiling Classes Below this Line

Stops profiling classes below the selected line.

Take Snapshot and Show Allocation Stack Traces.

Takes a snapshot of the current profiling session and displays the memory allocation stack trace.

This command available only if you selected the Record stack trace for allocations option in the Analyze Memory pane of the Profiler window.


Note: Limiting the profiled classes to only those you are interested in can help reduce the profiling overhead.


Related Topics

Developing Applications with NetBeans IDE,

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.