JDK-8022393 : java/lang/management/MemoryMXBean/MemoryTest.java fails
  • Type: Bug
  • Component: core-svc
  • Sub-Component: java.lang.management
  • Affected Version: 8
  • Priority: P3
  • Status: Resolved
  • Resolution: Duplicate
  • OS: os_x
  • CPU: x86
  • Submitted: 2013-08-06
  • Updated: 2013-09-12
  • Resolved: 2013-08-15
Related Reports
Duplicate :  
Description
fails with jdk1.80b100_compiler_upgrades and jdk1.8.0b99. Passes with jdk1.7.0_25b15

----------System.out:(0/0)----------
----------System.err:(14/909)----------
java.lang.RuntimeException: TEST FAILED: Number of non-heap pools = 3 but expected <= 1 and >= 1
	at MemoryTest.checkMemoryPools(MemoryTest.java:113)
	at MemoryTest.main(MemoryTest.java:75)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:491)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:724)

JavaTest Message: Test threw exception: java.lang.RuntimeException: TEST FAILED: Number of non-heap pools = 3 but expected <= 1 and >= 1
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: TEST FAILED: Number of non-heap pools = 3 but expected <= 1 and >= 1
result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: TEST FAILED: Number of non-heap pools = 3 but expected <= 1 and >= 1


test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: TEST FAILED: Number of non-heap pools = 3 but expected <= 1 and >= 1
Comments
I believe this is a complete duplicate of JDK-8010734 Please, feel free to reopen if you disagree.
15-08-2013

We believe you are running an old version of jdk/test/java/lang/management/MemoryMXBean/MemoryTest.java The test was recently modified under bug #8010734 "NPG: The test MemoryTest.java needs to be updated to support metaspace"
13-08-2013

It looks like the wrong version of the test is being run in the initial description in this bug. The test was updated on Jul 08 to support the perm gen removal. Make sure the latest version of the test is being used.
13-08-2013