JDK-6804470 : JvmstatCountersTest.java test times out on slower machines
  • Type: Bug
  • Component: core-svc
  • Sub-Component: java.lang.management
  • Affected Version: 7
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2009-02-11
  • Updated: 2014-04-07
  • Resolved: 2013-10-15
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
8 b113Fixed
Related Reports
Relates :  
Description
Here is an entry from my nightly analysis report:

Unexpected Timeouts
-------------------

MM_REGRESSION
    sun/management/jmxremote/bootstrap/JvmstatCountersTest.java
        2009.02.06 Solaris SPARC-64 Server VM -Xcomp (machine naboovm)
        2009.02.05 Solaris SPARC Client VM -Xmixed (machine vm-t2000-01a)
        2009.02.04 Solaris SPARC-64 Server VM -Xcomp (machine vm-v100-01)
        2009.02.03 Solaris SPARC-64 Server VM -Xcomp (machine vm-b1600s-1)
        2009.02.02 Solaris SPARC-64 Server VM -Xcomp (machine carrot)
        2009.01.28 Solaris SPARC-64 Server VM -Xcomp (machine vm-ultra80-02)
        2009.01.23 Solaris SPARC Server VM -Xcomp (machine sb150-002)
        2009.01.22 Solaris SPARC-64 Server VM -Xcomp (machine sb150-002)
        2009.01.21 Solaris SPARC Server VM -Xcomp (machine denab)
        2009.01.21 Solaris SPARC-64 Server VM -Xcomp (machine vm-e420r-4)
        2009.01.20 Solaris SPARC-64 Server VM -Xcomp (machine jtg-s129)
        2009.01.08 Solaris SPARC-64 Server VM -Xcomp (machine vm-b1600s-3)
        2009.01.07 Win32 Server VM -Xcomp (machine colfax005)
        2009.01.05 Solaris SPARC Server VM -Xcomp (machine toasteroven)
        2009.01.05 Solaris SPARC-64 Server VM -Xcomp (machine jtg-s130)
        2008.06.22 Solaris SPARC Server VM (machine vm-b1600s-4)
        2008.06.22 Solaris SPARC-64 Server VM (machine vm-v100-01)
        2008.06.22 Win32 Server VM (machine vmnightly2)

This timeout happens on older/slower machines; mostly Solaris SPARC
machines, but some Win* machines.

Comments
I was able to reproduce this problem on my linux-amd64 NB with the fastdebug build. Getting the Jvmstat counters is much slower and it could easily lead to timeout with the default 2 minutes. I would propose increasing the timeout to 10 minutes - hopefully this will leave enough time for the test to finish even on slower machines.
14-10-2013