Databases Reference
In-Depth Information
How to do it...
To enable the PROD_Server01 Managed Server to log the GC times in the standard output
log, follow these steps:
1. Access the Administration Console by pointing your web browser
to http://adminhost.domain.local:7001/console .
2. Click on the Lock & Edit button to start a new edit session.
3. Expand the Environment tree on the left and then click on Servers.
4. Click on the PROD_Server01 link and then click on the Server Start tab.
5. Add the following to the Arguments field and click on the Save button:
-Xverbose:memory,gc -XverboseTimeStamp
6. Click on the Activate Changes button.
7. Restart PROD_Server01 .
How it works...
The -Xverbose:memory,gc argument enables the verbose GC and heap memory logging.
The -XverboseTimeStamp attribute adds the timestamp of each entry.
The verbose GC is logged to the PROD_Server01 standard output logfile PROD_Server01.
out under $DOMAIN_HOME/servers/PROD_Server01/logs .
Each entry has the following format:
[memory ][<date>][<collection type - YC or OC> #<collection counter>]
<start>-<end>: <type> <used heap before>KB-><used heap after>KB (<heap
total>KB), <time> s, sum of pauses <pause time> ms, longest pause
<pause time> ms.
In this troubleshooting scenario, the verbose GC log has to be analyzed to find out if the heap
was an issue during a period when the CPU and load of the host machine were very high.
 
Search WWH ::




Custom Search