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

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

XMLWordPrintable

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

      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();

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: