<

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

Published on
10,751 Points
4,451 Views
3 Endorsements
Last Modified:
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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Join & Write a Comment

This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month