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 6118991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:30:02+00:00 2026-05-23T15:30:02+00:00

Below is a jstat output from a JVM running with the following parameters -Xmx10240m

  • 0

Below is a jstat output from a JVM running with the following parameters

-Xmx10240m -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode 

The jstat output is with the parameters

jstat -gcutil <pid> 10s

The section is snippet over a period of 80 seconds and according to the statistics nearly 70 seconds of this is spend in GC. They are all full GCs that are being triggered.

Timestamp   S0  S1  E       O       P       YGC     YGCT        FGC     FGCT        GCT         Diff
1040430.2   0   0   23.69   24.58   95.03   168048  22187.057   3672    4483.931    26670.988   8.175
1040440.2   0   0   0.1     24.58   95.02   168048  22187.057   3674    4495.551    26682.608   11.62
1040450.2   0   0   4.19    24.59   95.03   168048  22187.057   3677    4506.731    26693.788   11.18
1040460.2   0   0   0.01    24.45   95.02   168048  22187.057   3679    4517.391    26704.448   10.66
1040470.2   0   0   0.33    24.45   95.03   168048  22187.057   3681    4522.213    26709.27    4.822
1040480.2   0   0   0       24.43   95.02   168048  22187.057   3684    4534.816    26721.874   12.604

The PermGen space is running at almost full but I didn’t think that the Sun GC mechanism will attempt to collect here and I can see a reason for collected based on the Eden or Old space.

Anyone able to give me some pointers are to what might be occuring?

  • 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-23T15:30:03+00:00Added an answer on May 23, 2026 at 3:30 pm

    Why is the JVM doing so many garbage collections.

    This is most likely because the permanent generation occupancy is quite high. When using the CMS algorithm, a major collection kicks in only when the old or permanent generations occupancy exceeds a defined threshold. The default occupancy threshold for the old generation is 68% unless I am mistaken, and this can be changed using the -XX:CMSInitiatingOccupancyFraction=n flag. However, in the context of the data presented, this value appears to be immaterial as the occupancy of the old generation appears to be under 25% when the statistics were taken (this does not mean that the old generation did not fill up in the interim, but it is unlikely when the permanent generation itself is exhibiting higher occupancy).

    Note that the CMS collector does not claim objects from the permanent generation by default. This would require switching on the CMSClassUnloading flag. If the behavior does not improve, then it is likely that the permanent generation is not sized correctly, and it would have to be given more memory, for it would be apparent that only few of the objects in the permanent generation are eligible for collection on every major collection cycle.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Below is an exception I encountered while running the immediately following code: The source
Below is the code from internalRegister method of GCMRegistrar class static void internalRegister(Context context,
below is the code to download a txt file from internet approx 9000 lines
Below is the code from a plugin I use for sitemaps. I would like
Below is the plugin code that i have tried to reuse from an old
Below is the code I use in Chrome extension which gets a url from
Below is excerpt from Google Developer Console typeof Object // type of Object is
//below In my application i have a button select image from sdcard and on
Below, in CreateTest, uponsuccessful, I want to redirect to Tests from CreateTest. I want
Below creates an image from hbitmap: IntPtr hbitmap = IntPtr.Zero; ... ... Image img

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.