Enabling diagnostic logging for Java dumps
You can enable diagnostic logging for Java dumps.
Procedure
- Go to Manage > Configuration > Diagnostic logging.
- On the Built-in topics tab, select the Show all check box.
- Select the JAVA_DUMP topic.
- Click the More icon
and then select Download topic. - Create a customized JAVA_DUMP.json file:
- Open the downloaded JAVA_DUMP.json in a text editor.
- Edit the sections Logger definitions and dumpDescription, as required, to customize the information that you want to capture.
- Save your changes.
- Enable your custom JAVA_DUMP.json file for your Cognos Analytics
environment.
- In the Diagnostic logging panel, Select the Custom topics tab.
- Click the Upload topic icon
. - Navigate to the JAVA_DUMP.json file that you modified and then
click Open.
The file is uploaded to Cognos Analytics and JAVA_DUMP appears in the Custom topics list.
- Click Apply.
This message appears:
Successfully enabled topic JAVA_DUMP.
- Go to
installation_location/configuration/data/logging and open
the file dump_rules.properties in a text editor and view the content. Tip: This file was created when you enabled your customized JAVA_DUMP file and contains the customizations that you set.Note: When a Java dump occurs, it can take a few minutes. After it finishes, two files are produced:
- installation_location/bin64/core.core_id.dmp
- installation_location/bin64/heapdump.heapdump_id.phd
- Analyze the .dmp and .phd files that were generated by a core dump, as necessary.
- When you are done, restore the JAVA_DUMP.json file used by Cognos
Analytics to its default version:
- Select the Built-in topics tab and then select AAA.
- Click Reset.
- Select AAA again and then click Apply.
- To remove your custom JAVA_DUMP topic, follow these steps:
- Select the Custom topics tab and then select JAVA_DUMP.
- Click the More icon
and click Delete. - Click OK to confirm the deletion and click Apply.