Heap dump analysis tools need a large amount of memory to analyze heap dumps that are very large and sometimes the default heap size isn't large enough. IBM Support Assistant Team Server 5 provides ways to set the maximum heap size for the various editions of its heap dump analysis tools.
Sometimes java.lang.OutOfMemoryError (OOM) exceptions occur when analyzing large heap dumps with the IBM Support Assistant Team Server 5 heap dump analysis tools. They include:
- HeapAnalyzer [Desktop]
- Memory Analyzer [Desktop]
- Memory Analyzer [Report]
- Memory Analyzer [Web]
Often the solution to OOM exceptions is to increase the maximum heap size for these tools. The methods for doing so are different for the various tool editions.
Report and Web tool configuration
Many problem determination tools available for IBM Support Assistant allow customization. These tools include properties files that you can edit to change the default behavior.
For example, follow these steps to increase the maximum heap size for Memory Analyzer [Report].
- Open a command window, shell, or file system browser on the system running IBM Support Assistant Team Server 5.
- Copy <install_dir>/ISA5/ToolBox/com.ibm.java.diagnostics.memory.analyzer/com.ibm.java.diagnostics.memory.analyzer.properties to <install_dir>/ISA5/ToolBox/properties.
- Edit <install_dir>/ISA5/ToolBox/properties/com.ibm.java.diagnostics.memory.analyzer.properties. You will see a property named jvm.args.
- Increase the value of the -Xmx argument. For example, increase the default -Xmx2048M to -Xmx4096M and then save the file.
- If you changed property values for the Web edition of Memory Analyzer, then restart IBM Support Assistant Team Server to load the updated property values.
The next time you analyze a heap dump the new maximum heap size will be used.
Desktop tool configuration
Beginning with IBM Support Assistant Team Server 5.0.1 you can customize the minimum and maximum heap sizes for desktop tools each time you launch them from the Tools tab. Follow these steps:
- Start a session with IBM Support Assistant Team Server.
- Click the Tools tab.
- Select a desktop tool from the list of tools.
- Click the "Launch" button above the tool details. A dialog opens with fields to set the minimum and maximum heap sizes.
- Set the minimum and maximum heap size values in MB.
- Click the "Launch" button on the dialog to start the tool.
Have questions or comments? You can post them to the IBM Support Assistant forum.
Have an idea for a new feature? You can open a Request for Enhancement.
Internal Use Only
These instructions for setting the heap size were removed on March 12, 2014 because the latest Java security enhancements don't allow modifying signed JNLP files. This is the text that was replaced:
Desktop tool configuration
IBM Support Assistant 5 uses Java Web Start technology to support desktop tools. Currently desktop tools do not use tool configuration properties files. To change the heap size for a desktop tool you must edit the JNLP file that downloads to your workstation. These instructions assume that Memory Analyzer [Desktop] is installed.
- Ensure that your browser is configured to ask you what to do when it opens JNLP files.
- Start a session with IBM Support Assistant 5.
- Click the Tools tab to open the list of installed tools.
- Click "Memory Analyzer [Desktop]" in the list of tools to open its details pane.
- Click the Launch button at the top of the details pane. A window will open with information about desktop tools.
- Click the Submit button on the information window. The browser will ask what to do with the JNLP file.
- Click Save to save the JNLP file to your workstation (e.g., memory_analyzer.jnlp).
- Open the JNLP file in an editor.
- Search for the <j2se> element for your workstation's OS.
- Add the max-heap-size attribute and set it to a value large enough for your environment.
- Save the JNLP file and type "javaws memory_analyzer.jnlp" to start Memory Analyzer [Desktop].
For example, set the maximum heap size to 2 GB on Windows.
<j2se version="1.6+" max-heap-size="2048M"/>
17 June 2018