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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T04:46:47+00:00 2026-05-24T04:46:47+00:00

How to increase the rate of GC calls in java? Are there any JVM

  • 0

How to increase the rate of GC calls in java? Are there any JVM parameters to tune the rate at which GC gets called?

Thanks!!

  • 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-24T04:46:48+00:00Added an answer on May 24, 2026 at 4:46 am

    If you change the GC pause time, garbage collection should take place more frequently. This may be useful for some time critical apps where you need garbage collections to not take as long as it might, even if there may be more collections. -XpauseTarget should do this as a VM argument. Minimum value here is 10 milliseconds. Don’t call System.gc(). Depending on where you call it, you could make your application hugely inefficient.

    The best idea is to simply optimise your application to use fewer objects. You can use a tool such as JVisualVM which comes with the JDK to inspect your app at runtime and find out where the problem lies, and also to look at the garbage collection info.

    You could also try a different garbage collector. I use the following, and it helps me in some applications where memory usage, say, is more important than CPU time (although there’s a few useless options here — just weed them out):

    -Xincgc
    -XX:+CMSIncrementalPacing
    -XX:+UseAdaptiveSizePolicy
    -XX:+AggressiveOpts
    -XX:+ExplicitGCInvokesConcurrent
    -XX:+UnlockExperimentalVMOptions
    -XX:+UseConcMarkSweepGC
    -XX:UseSSE=3
    -XX:+UseParNewGC
    -XX:SurvivorRatio=2
    -XX:NewRatio=8
    -XX:+DoEscapeAnalysis
    -XX:+UseFastAccessorMethods
    -XX:+ForceTimeHighResolution
    -XX:+UseTLAB
    -XX:+ResizeTLAB
    -XX:MaxGCPauseMillis=10
    -XX:ParallelGCThreads=8
    -XX:+CMSParallelRemarkEnabled
    -XX:+DisableExplicitGC
    -XX:+UseAdaptiveGCBoundary
    -XX:-UseGCOverheadLimit
    -Xnoclassgc
    -server
    -Xss128k
    -Xms1g
    -Xmx1g
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to know if is there any way to increase the sample
On the twitter Rate Limiting page( https://dev.twitter.com/docs/rate-limiting ) it says Unauthenticated calls are permitted
In my project there are 2 classes (this will increase) Post and Product ,
To increase font-size in Xcode is a pain.
I am trying to increase or decrease the displayed texts font. but can only
I want to increase the clickable area of my button (ImageView). But I don't
I would like to increase the value of the cell in the row by
I am trying to increase the speed of some UI Automation operations. I stumbled
how to increase heap size? or how to overcome the problem related to heap
How can I increase django execution time of a view. Some views of my

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.