Troubleshooting
Problem
Enabling verboseGC output is often required when diagnosing issues with WebSphere Application Server. Because verboseGC data is critical to troubleshooting memory and performance problems and the overhead is generally very low, you may want to consider proactively enabling it in your environment. The following describes how to enable verboseGC output within WebSphere Application Server.
Resolving The Problem
Select the appropriate version and server type:
Version 9, 8.5, 8.0 and 7.0 - Application Servers
Version 9, 8.5, 8.0, 7.0- Deployment Managers
Version 9, 8.5, 8.0, 7.0- Node Agents
Version 9, 8.5, 8.0, 7.0- Enabling at Runtime
Depending on the operating system in use, the verboseGC output will be written to the following file by default:
AIX, Linux, or Windows: native_stderr.log
Solaris or HP-UX native_stdout.log
Enabling verboseGC on releases of Version 9, 8.5, 8.0 and 7.0 - Application Servers |
- In the Administrative Console, expand Servers, expand Server Types, and then click WebSphere application servers.
- Click on the server that you would like to work with, for example, server1.
- On the Configuration tab, under Server Infrastructure, expand Java and Process Management, and click Process Definition.
- Under the Additional Properties section, click Java Virtual Machine.
- Check the Verbose Garbage Collection check box.
For Solaris or HP-UX, also complete these additional steps.
- Apply and Save the changes.
- Restart the Application Server for the changes to take effect.
Enabling verboseGC on releases of Version 9, 8.5, 8.0, 7.0 - Deployment Managers |
- In the Administrative Console, expand System Administration and then click Deployment Manager.
- On the Configuration tab, under Server Infrastructure, expand Java and Process Management, and click Process Definition.
- Under the Additional Properties section, click Java Virtual Machine.
- Check the Verbose Garbage Collection check box.
For Solaris or HP-UX, also complete these additional steps.
- Apply and Save the changes.
- Restart the Deployment Manager for the changes to take effect.
Enabling verboseGC on releases of Version 9, 8.5, 8.0, 7.0 - Node Agents |
- In the Administrative Console, expand System Administration and then click Node Agents.
- Click on the node agent that you would like to work with.
- On the Configuration tab, under Server Infrastructure, expand Java and Process Management, and click Process Definition.
- Under the Additional Properties section, click Java Virtual Machine.
- Check the Verbose Garbage Collection check box.
For Solaris or HP-UX, also complete these additional steps.
- Apply and Save the changes.
- Restart the Node Agent for the changes to take effect.
Additional Steps for Solaris and HP-UX |
Add the following parameters to the Generic JVM arguments for WebSphere Application 7.0 (Java 6) and later:
-XX:+PrintGCDetails
-XX:+PrintGCDateStamps
-XX:+PrintHeapAtGC
-XX:+PrintGCDetails
-XX:+PrintGCDateStamps
-XX:+PrintHeapAtGC
The instruction for setting generic JVM arguments can be found in Setting generic JVM arguments in WebSphere Application Server page.
Enabling verboseGC at Runtime - Version 9, 8.5, 8.0, 7.0 |
- Using the appropriate instructions above, navigate to the Java Virtual Machine page.
- Click the Runtime tab. This tab will be present if the JVM is running.
- Check the Verbose Garbage Collection check box.
- Click OK.
Note: Verbosegc can be enabled at runtime in Version 9, 8.5, 8.0, 7.0 on all operating systems; however, it will only produce meaningful output on AIX, Linux, and Windows. This is due to the fact that both Solaris and HP-UX require additional Generic JVM arguments to produce meaningful output. These additional arguments cannot be added at runtime.
[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Java SDK","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"9.0;8.5;8.0;7.0","Edition":"Base;Express;Network Deployment","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSNVBF","label":"Runtimes for Java Technology"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Java SDK","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB36","label":"IBM Automation"}},{"Product":{"code":"SS7JFU","label":"WebSphere Application Server - Express"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"J2EE Development and deployment","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"7.0;6.1;6.0.2;6.0.1;6.0;5.1.1;5.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]
Was this topic helpful?
Document Information
Modified date:
02 May 2023
UID
swg21114927