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 |
For WebSphere Application Server 7.0 (Java 6) and later:
-XX:+PrintGCDetails
-XX:+PrintGCDateStamps
-XX:+PrintHeapAtGC
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.
 
Was this topic helpful?
Document Information
Modified date:
15 June 2018
UID
swg21114927