We are pleased to provide two new command-line utilities that were developed for the next version of JProbe.
The new JProbe dumpreport tool allows you to obtain a basic object report from JVM memory dumps. The report is provided in HTML format. It gives instance counts and memory usage for each class discovered in the memory dump. You can create a report sorted by instance count or by memory usage. You can filter the output based on package, and you can restrict the output to show only the top classes by count or by memory used, or you can report on all classes found in the heap.
This tool is available as a free download from ToadWorld's Freeware section and will also be included automatically with future JProbe releases.
The tool works standalone with HPROF text and binary memory dumps and with IBM JVM text memory dumps. Coupled with JProbe 8.2, the tool can also report on IBM’s PHD format memory dumps -- you’ll need to place dumpreport.jar file in the JProbe /lib directory for this to work.
JProbe is not required to use this tool (except for processing PHD dumps, as noted above) but it may be also be beneficial to JProbe customers working with very large memory dumps. dumpreport can produce the basic report using significantly less memory than the JProbe Console requires to load and convert a very large memory dump.
A second new utility, the JProbe control tool, allows you basic control JProbe analysis session from a command line interface. It is suitable for controlling a JProbe Analysis Engine in a headless environment or for scripting actions.
Of course, this requires a copy of JProbe, and you’ll need to place control.jar in the JProbe /lib directory for it to work. You can use this utility to change data recording levels in the JProbe analysis engine, to take JProbe snapshots, and to request garbage collection.
This tool is available from the Inside JProbe download area, along with an explanation of the command syntax. This tool will also be included automatically with future JProbe releases.