Figure 8-7 Monitoring Metric: Percentage of Time Spent in Garbage Collection

Related Topics

Checking for Proper Heap Sizing (page 43)

Reviewing the Percentage of Time Spent in Garbage Collection (page 41)

Allocated Object Statistics by Class (page 127)

Allocating Method Statistics (page 128)

Identifying Excessive Object Allocation (page 44)

Unfinalized Objects

Shows a measure of the objects that have not been finalized at each garbage collection during the monitoring period.

Guidelines

Escalating numbers of unfinalized objects can indicate that the finalizer queue is growing, with associated objects holding increasing space in the heap.

Details

Some or many of the objects in a finalizer queue may no longer be needed by the program and are waiting to be finalized and then collected.

Check to see if the finalize () method in your application is being called at appropriate times and frequency.

Profiling with –Xeprofwill help you to obtain details about the number of unused finalizers in the heap.

Use the monitoring or profiling thread histogram to check the state of the finalizer thread during the recorded period.

126 Using Visualizer Functions