<

Redirecting verbose GC logs of WAS 6.1 to user specified file for Windows

Published on
10,902 Points
4,602 Views
3 Endorsements
Last Modified:
Approved
Verbose logging is used to diagnose garbage collector problems.
By default, -verbose:gc output is written to either native_stderr.log or native_stdout.log.   It is also possible to redirect the logs to a user-specified file.

This article will describe the steps to redirect the verbose gc logs to user specified file for the Windows platform.

By default, -verbose:gc output is written to stderr.  The  -Xverbosegclog command can be used to redirect the verbosegc output to user specified file other than the native stdout/stderr file.

   -Xverbosegclog:<file>[,<X>,<Y>]

...causes -verbose:gc output to be written to the specified file.  If the file cannot be found, -verbose:gc tries to create the file, and then continues as normal if it is successful.  If it cannot create the file (for example, if an invalid filename is passed into the command), it will redirect the output to stderr.  If you specify <X> and <Y> the -verbose:gc output is redirected to <X> files, each containing <Y> GC cycles.  (Refer IBM 1.5.0 Java diag guide ).
                                                     
Here are the steps to redirect the verbosegc output to user specified file:          
                                                       
1)  In WAS Administrative Console, expand Servers and then click on Application Servers.                                                    
2)  Click on the server that is encountering the "OutOfMemory" condition.
3)  On the Configuration tab, under Server Infrastructure,
       expand "Java  and Process Management", and click "Process Definition".
4)  Under the Additional Properties section, click Java Virtual Machine.  
5)  Provide -Xverbosegclog:c:\verboseoutput.log command under Generic JVM Arguments.                                                              
6)  Restart your server.                                                  

Now, verboseoutput.log would have been created and the verbosegc output will get redirected to "verboseoutput.log" file.                        
3
Comment
Author:AdminRAM
1 Comment
 
LVL 8

Author Comment

by:AdminRAM
It is tutorial how to setup....

not the  problem or resolution

detail steps required more than 300 words
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Join & Write a Comment

Hi, this video explains a free download that you can incorporate into your Access databases, or use stand-alone for contact management. Contacts -- Names, Addresses, Phone Numbers, eMail Addresses, Websites, Lists, Projects, Notes, Attachments…
From store locators to asset tracking and route optimization, learn how leading companies are using Google Maps APIs throughout the customer journey to increase checkout conversions, boost user engagement, and optimize order fulfillment. Powered …

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month