Express (Distributed operating systems), v8.0 > Troubleshoot and support > Analyzing application server Java system dumps with the IBM Monitoring and Diagnostic Tools for Java - Dump Analyzer > Write a new analysis module or script > Write and running a new analysis module
Basic analysis module concepts
Before launching into writing a java analysis module decide which of the two possible types best suits what you want to achieve. As mentioned in the Write a new analysis module or script the two different types of java analyzer are:
- An analyzer that reaches a conclusion about something and reports that conclusion -- for example, Is the JIT active?
- An analyzer that simply reports information it finds in the dump -- for example, the number of address spaces found or the stack information for all threads found.
These two scenarios are expressed in two different interfaces:
IAnalyze
andIReport
, respectively. (For more detailed information about these interfaces see the Dump Analyzer Interfaces section).The final thing know before writing an analysis module is that regardless of the type to write your analyzer must implement one more interface:
IAnalyzerBase
(again, see the Dump Analyzer Interfaces section for more details). This interface provides the functionality common to all analyzers. As part of the Dump Analyzer, we provide an abstractAnalyzerBase
class that contains many useful methods. You should generally extendAnalyzerBase
rather than implementIAnalyzerBase
directly.