JDK-8030628 : Update java/lang/management/MemoryMXBean tests to ignore GC setting by jtreg
  • Type: Bug
  • Component: core-svc
  • Sub-Component: java.lang.management
  • Affected Version: 8,8u40
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2013-12-17
  • Updated: 2014-11-27
  • Resolved: 2014-04-16
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9
8u20Fixed 9 b10Fixed
Related Reports
Duplicate :  
Relates :  
Description
The header of the CollectionUsageThreshold.java tests now looks as:

/*
 * @test
 * @bug     4959889 6992968
 * @summary Basic unit test of memory management testing:
 *          1) setCollectionUsageThreshold() and getCollectionUsageThreshold()
 *          2) test notification emitted for two different memory pools.
 *
 * @author  Mandy Chung
 *
 * @build CollectionUsageThreshold MemoryUtil
 * @run main/othervm/timeout=300 -XX:+PrintGCDetails -XX:+UseSerialGC CollectionUsageThreshold
 * @run main/othervm/timeout=300 -XX:+PrintGCDetails -XX:+UseParallelGC CollectionUsageThreshold
 * @run main/othervm/timeout=300 -XX:+PrintGCDetails -XX:+UseG1GC CollectionUsageThreshold
 * @run main/othervm/timeout=300 -XX:+PrintGCDetails -XX:+UseConcMarkSweepGC CollectionUsageThreshold
 */

So this test is no longer applicable for VM SQE testing. Because with each run a GC to use is specified.
As the result this test will always fail with:

Conflicting collector combinations in option list; please refer to the release notes for the combinations allowed
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
result: Failed. Unexpected exit from test [exit code: 1]



Comments
Test still fails in 8u40 http://aurora.ru.oracle.com/functional/faces/RunDetails.xhtml?names=643772.VMSQE.Nightly.resman.rehudson-67#%3Ajdk_svc%20%5B!ignore%5D%20(jtreg)_closed/jdk/management/cmm/MXBeanRequiresCommercialFeatures.java RULE java/lang/management/MemoryMXBean/CollectionUsageThreshold.java Exception java.lang.RuntimeException: Expected to get exit value of [0]
27-11-2014

Release team: Approved for deferral.
20-12-2013

ILW=MHM=P3, Noisy test results, happens most of the time, manual execution as workaround. 8-defer-request-justification: Low priority issue, not enough time.
18-12-2013