Quantcast
Channel: Lazy Notes Guy » Uncategorized
Viewing all articles
Browse latest Browse all 5

Where’s my memory gone? – peeking inside JVM’s heap, part 1 (installation)

$
0
0

Preparations

You will need the XPages Toolbox installed on server. I will not go into detail about that, the instructions can be found here on OpenNTF.

JRE is a prerequisite here, I have version 1.7 installed. Java SDK is not needed.

Download Eclipse Memory Analyzer Tool from eclipse.org. I downloaded the standalone 1.3.0 release.

Download IBM Diagnostic Tool Framework for Java from IBM Developerworks. (Here’s a direct FTP link.) Save the dtjf-updatesite.zip to a local folder.

Installing Memory analyzer

Unzip the MAT files and run MemoryAnalyzer.exe.
MAT_extracted

Here is the start screen:
MAT_start

Click Help – Install New Software
MAT_install

You will be presented with this screen. click Add and then Archive.
MAT_update_site

In the Add Repository dialog, select the location where you downloaded the IBM DTJF zip file. In the “Name” field you can use any name you want.
MAT_site_selected

In the next dialog, you will have to uncheck the “Group items by category” checkbox to show the “Diagnostic Tool Framework for Java”. Select it and press Next.

There is a licence you’ll have to accept. Also, you might encounter this security warning:

MAT_security_warning

That’s it! Coming up next: how to get a heap dump from XPages JVM.


Viewing all articles
Browse latest Browse all 5