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

MemoryPoolMXBean.setUsageThreshold() does not support large heap sizes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • hs14
    • 5.0u12, 6
    • hotspot
    • svc
    • b10
    • generic, x86
    • generic, linux
    • Verified

        FULL PRODUCT VERSION :
        Java HotSpot(TM) Server VM (1.5.0_12-b04) for linux-x86, built on May
        2 2007 02:13:16 by java_re with gcc 3.2.1-7a (J2SE release)

        ADDITIONAL OS VERSION INFORMATION :
        Linux 2.6.9-55.0.2.ELsmp #1 SMP Tue Jun 12 17:58:20 EDT 2007 x86_64
        libc:glibc 2.3.4 NPTL 2.3.4


        A DESCRIPTION OF THE PROBLEM :
        Even though MemoryPoolMXBean.setUsageThreshold() accepts a long argument, attempting to set to a large value (for example a very large heap) on a 64-bit OS but using a 32-bit VM results in:

        java.lang.IllegalArgumentException: Invalid threshold value > max value of size_t
                at sun.management.MemoryPoolImpl.setUsageThreshold0(Native Method)
                at sun.management.MemoryPoolImpl.setUsageThreshold(MemoryPoolImpl.java:122)



        ERROR MESSAGES/STACK TRACES THAT OCCUR :
        ava.lang.IllegalArgumentException: Invalid threshold value > max value of size_t
                at sun.management.MemoryPoolImpl.setUsageThreshold0(Native Method)
                at sun.management.MemoryPoolImpl.setUsageThreshold(MemoryPoolImpl.java:122)

        REPRODUCIBILITY :
        This bug can be reproduced always.

              swamyv Swamy Venkataramanappa
              emcmanus Eamonn McManus
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: