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

java.lang.Runtime.maxMemory()/availableProcessors()

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 1.4.0
    • 1.3.0, 1.3.1
    • core-libs
    • beta
    • generic, x86, sparc
    • generic, solaris_8, windows_nt

    Description

      Need to have a function which returns the max heap size (ie what is set by -Xmx). This might be in class Runtime and look like:

      public long maxMemory();

      We alse need a function returning the number of processors on the underlying hardware. This could again be in class Runtime and look like:

      public int processorCount();

      Attachments

        Issue Links

          Activity

            People

              mr Mark Reinhold
              stewilso Steve Wilson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: