Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4653434

RFE: Add a System.optionalGC() or similar method.

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P3
    • Resolution: Won't Fix
    • Affects Version/s: 1.4.0
    • Fix Version/s: None
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      gc
    • CPU:
      sparc
    • OS:
      solaris_2.6, solaris_8

      Description

      It is requested that some method be added to the JVM so that a FullGC can be carried out at some time *other* than when the system has reached 100% memory utilisation. When a system is at 100% utilisation, it tends to mean it is under heavy load just then, and so this is in fact the *least* helpful time to pause for a while to clean up.

      What the customers requesting this would prefer is to be able to set other heuristics for this, like for instance to allow a FullGC when memory is over 80% but CPU utilisation is currently quite low. Or to add a method, as suggested in the synopsis, so that if the application becomes aware that memory is an issue (through a Runtime.freeMemory() and Runtime.totalMemory()) and knows that it's going to be idle for a short while, it can suggest a GC sweep now rather than later, at a less opportune moment.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              pbk Peter Kessler
              Reporter:
              mbowyer Mark Bowyer (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: