WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Garbage collection

    Posted 08/11/10 10:37 AM
    Garbage collection

    --------------------------------

    How to enable GC in websphere and where does logging messages goes in.

    What is the difference between GC and Verbose GC

    --------------------------------

    Posted By: chandoo.ws at Aug 10 2009 9:53AM


  • 2.  Garbage collection

    Posted 08/11/10 10:45 AM
    u can enable it through admin console. by going into the servers-processdeffinition - jvm settings. there u can check the box to enable it.
    garbage collection is the internal process of java. which will run automatically to free up the unreferenced objects. and by enabling verbose gc option u can get the details in nativestdout.log

    --------------------------------

    Posted By: hari at Aug 10 2009 12:46PM


  • 3.  Garbage collection

    Posted 08/11/10 10:56 AM
    garba

    --------------------------------

    u can enable it through admin console. by going into the servers-processdeffinition - jvm settings. there u can check the box to enable it.
    garbage collection is the internal process of java. which will run automatically to free up the unreferenced objects. and by enabling verbose gc option u can get the details in nativestdout.log

    --------------------------------

    Posted By: hari at Aug 10 2009 12:49PM


  • 4.  Garbage collection

    Posted 08/11/10 10:56 AM
    GC, or garbage collection, is a basic part of the JVM. This is the method by which the heap is maintained. Objects are allocated onto the heap until there is not enough contiguous space to satisfy the request. You then have an allocation failure and a garbage collection cycle to free up space in an attempt to satisfy the request.

    Verbosegc is simply a trace of garbage collection activity. You can turn this on in the admin console. Instructions can be found at:

    www-01.ibm.com/support/docview.wss?&uid=...

    By default, the verbosegc output goes to native_stderr.log when using the IBM SDK and native_stdout.log when running on Solaris

    --------------------------------

    Posted By: cathy at Aug 11 2009 11:55PM


  • 5.  Garbage collection

    Posted 08/11/10 11:02 AM
    Thanks cathy for the message VGC will be written to native_stdout.log in SOLARIS.

    But on AIX into which log file wil that be written.

    --------------------------------

    Posted By: chandoo.ws at Aug 21 2009 10:59AM


  • 6.  Garbage collection

    Posted 08/11/10 11:04 AM
    On AIX, you are using the IBM SDK so the output will go to native_stderr.log by default.

    You can redirect this to a separate file, but typically it is better to just let it go to native_stderr.log

    --------------------------------

    Posted By: cathy at Aug 21 2009 9:41PM


  • 7.  Garbage collection

    Posted 08/11/10 11:04 AM
    Once you get verbosegc data, you may want to check out this tool for analyzing:

    www.alphaworks.ibm.com/tech/pmat

    --------------------------------

    Posted By: cathy at Aug 21 2009 9:43PM