Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 286531
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:38:41+00:00 2026-05-12T05:38:41+00:00

How do I redirect verbose garbage collection output to a file? Sun’s website shows

  • 0

How do I redirect verbose garbage collection output to a file? Sun’s website shows an example for Unix but it doesn’t work for Windows.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T05:38:41+00:00Added an answer on May 12, 2026 at 5:38 am

    From the output of java -X:

        -Xloggc:<file>    log GC status to a file with time stamps
    

    Documented here:

    -Xloggc:filename

    Sets the file to which verbose GC events information should be redirected for logging. The information written to this file is similar to the output of -verbose:gc with the time elapsed since the first GC event preceding each logged event. The -Xloggc option overrides -verbose:gc if both are given with the same java command.

    Example:

        -Xloggc:garbage-collection.log

    So the output looks something like this:

    0.590: [GC 896K->278K(5056K), 0.0096650 secs]
    0.906: [GC 1174K->774K(5056K), 0.0106856 secs]
    1.320: [GC 1670K->1009K(5056K), 0.0101132 secs]
    1.459: [GC 1902K->1055K(5056K), 0.0030196 secs]
    1.600: [GC 1951K->1161K(5056K), 0.0032375 secs]
    1.686: [GC 1805K->1238K(5056K), 0.0034732 secs]
    1.690: [Full GC 1238K->1238K(5056K), 0.0631661 secs]
    1.874: [GC 62133K->61257K(65060K), 0.0014464 secs]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to redirect the output from manage.py to a text file, but only
I want to redirect the output of some Windows program directly to gvim basically
I want to redirect a IE7 user, but window.location.href does not seen to work
To redirect standard output to a truncated file in Bash, I know to use:
To redirect (and append) stdout and stderr to a file, while also displaying it
I want to 301 redirect from: www.olddomain.com to the root of newdomain.com but I
When redirect to my home page I have an infinite loop. For example is
It is possible to redirect the output of one program to the input of
How to redirect / to /home.html (i.e. the home page of website in Cpanel)
I want to redirect all incoming requests to a subdirectory, but can't figure out

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.