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

  • Home
  • SEARCH
  • 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 5969831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:17:13+00:00 2026-05-22T20:17:13+00:00

I see explicit gc invocations in our gc-log (see below). I am able to

  • 0

I see explicit gc invocations in our gc-log (see below). I am able to remove invocations with -XX:+DisableExplicitGC but I really want to know which code/library is calling System.gc()?

Any hints on how to track it down?

2011-05-30T12:21:48.230+0200: 1.672: [Full GC (System) 1.672: [CMS: 0K->2227K(2868864K), 0.0862299 secs] 62069K->2227K(3118080K), [CMS Perm : 12899K->12893K(409600K)], 0.0863197 secs] [Times: user=0.06 sys=0.03, real=0.09 secs] 
  • 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-22T20:17:14+00:00Added an answer on May 22, 2026 at 8:17 pm

    I created a custom version of the System class which writes to a file a stack trace whenever System.gc() is called. This will allow you to trace all the places it is called.

    This will find calls anywhere in the system including the JDK.

    One place you get calls to System.gc() is in the RMI module to help find discarded remote objects. You can decrease how often it will call a full GC with

    -Dsun.rmi.dgc.server.gcInterval=86400000
    -Dsun.rmi.dgc.client.gcInterval=86400000
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Maybe I'm just blind, but I don't see an explicit set command in Redis
The code has been updated to reference the changes below. This log system create
See the picture below. It's a flash game from a well known website :)
see fiddle I want to drag the mouse on cell and whatever is under
See solution below, I would like some constructive feedback. what is the running time
I'm trying to install couchapp, which uses easy_install - and is quite explicit in
SEE EDIT UPDATES BELOW. Original question has been modified! I have a working window
Sometimes I see chunks of Scala code, with several nested levels of conditionals and
I'm new to CMake. Therefore, I have several questions which I don't want to
When testing for NULL , I see a lot of code that uses !var

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.