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

Event for estimating the live set

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 14
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Subcomponent:
      gc

      Description

      We need an event for estimating the live set reasonably well, without causing a rather long and unpleasant safe pointing VM operation. This would open up all kind of neat applications, like figuring out when we're getting closer to OOME.

      It would also be nice to be able to get an estimate of the class histogram (number of instances and (and possibly space) occupied by class), but that could be an optional event (using the same mechanism).

      Perhaps one way of accomplishing this would be to simply do a concurrent mark, and collect some statistics whilst marking (skip re-marks etc), and report what we ended up with.

      The event could happen once in a blue moon (once every N minutes) and still be very useful.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            hirt Marcus Hirt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: