Jump to Content
  Previous Next
Content starts here

Getting Familiar with the Memory Leak Detector Interface

When you have started the Memory Leak Detector, it starts in the Trend tab with the Trend Analysis activated, see Figure 3-1.

Figure 3-1 The Main Window of the Memory Leak Detector

The Main Window of the Memory Leak Detector

  1. Toolbar where you control the updating of the analysis, how to view the different graphs when drilling down to find the memory leaks, etc.
  2. Trend Analysis table that lists all types that consume memory. It lists the types in descending order with the type that leaks the most listed at the top.
  3. Applies filter to find a type.
  4. Tabs that indicate work flow for finding your memory leak.
  5. Menu to open types, allocation instances, and other functions.

Toolbar Explained

The Memory Leak Detector tool bar, see Figure 3-2, contains, for example, buttons to connect to the JRockit instance. See Table 3-1 for an explanation of the different tools in the toolbar.

Figure 3-2 The Toolbar in the Memory Leak Detector

The Toolbar in the Memory Leak Detector

Table 3-1 Toolbar Icons Explained
Button
Description

The Tabs in the Memory Leak Detector (Indicates Work Flow)

Export and Print graphs. This button allows you to export the displayed graph to a jpg or gif image.

The Tabs in the Memory Leak Detector (Indicates Work Flow)

Start, Pause, and Stop monitoring your Java application.

The Tabs in the Memory Leak Detector (Indicates Work Flow)

Performs garbage collection on the server.

The Tabs in the Memory Leak Detector (Indicates Work Flow)

Refreshes the current view.

The Tabs in the Memory Leak Detector (Indicates Work Flow)

Re-layouts the graph. This button allows you to re-layout the graph and have the selected

The Tabs in the Memory Leak Detector (Indicates Work Flow)

Restarts the graph. This button allows you to restart, i.e. expand, the node that is currently selected.

The Tabs in the Memory Leak Detector (Indicates Work Flow)

Zooms in and out on a type or an instance. These tools help you navigate in the graph.???

The Tabs in the Memory Leak Detector (Indicates Work Flow)

Zoom in on the selected node and resize the graph to 100%.

The Tabs in the Memory Leak Detector (Indicates Work Flow)

Fills the viewing area with the current graph.

The Tabs in the Memory Leak Detector (Indicates Work Flow)

Lets you view the graph in bird's eye view. You can easily pan and re-center the graph from this view.

Tabs Explained

The main window of the Memory Leak Detector contains four tabs as shown in Figure 3-3. Table 3-2 explains what you can do under the different tabs.

Figure 3-3 The Tabs in the Memory Leak Detector (Indicates Work Flow)

The Tabs in the Memory Leak Detector (Indicates Work Flow)

Table 3-2 Memory Leak Detector Tabs Explained
Tab
Description
Trend
From the Trend tab you view a trend analysis of the object types on the Java heap. You will see a list of all types that occupy more than 0.1% of the heap (this number can be changed in File > Preferences > Trend). The object type with the highest growth rate will be listed first.
Types
From the Types tab you view a type graph that shows how different types point to each other.
Instances
From the Instances tab you view an instance graph that shows how different instances point to each other.
Allocation Stack Traces
From the Allocation Stack Traces tab you view where a certain type is allocated in the code.

  Previous Next