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

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

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.3.0, 1.3.1
    • Fix Version/s: 1.4.0
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      beta
    • CPU:
      generic, x86, sparc
    • OS:
      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

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: