JDK-8130636 : sun/tools/jcmd/TestJcmdSanity.java sun.jvmstat.monitor.MonitorException failure
  • Type: Bug
  • Component: core-svc
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Cannot Reproduce
  • OS: solaris
  • CPU: sparc
  • Submitted: 2015-07-06
  • Updated: 2015-07-08
  • Resolved: 2015-07-08
Related Reports
Relates :  
Relates :  
Description
sun/tools/jcmd/TestJcmdSanity.java

[/export/local/aurora/CommonData/JDK_DIR/bin/jcmd -J-d64 -J-XX:+UsePerfData 7410 PerfCounter.print]
7410:
sun.jvmstat.monitor.MonitorException: 7410 not found
	at sun.jvmstat.perfdata.monitor.protocol.local.PerfDataBuffer.<init>(PerfDataBuffer.java:84)
	at sun.jvmstat.perfdata.monitor.protocol.local.LocalMonitoredVm.<init>(LocalMonitoredVm.java:68)
	at sun.jvmstat.perfdata.monitor.protocol.local.MonitoredHostProvider.getMonitoredVm(MonitoredHostProvider.java:77)
	at sun.tools.jcmd.JCmd.listCounters(JCmd.java:189)
	at sun.tools.jcmd.JCmd.main(JCmd.java:128)
Caused by: java.lang.IllegalArgumentException: Could not map vmid to user Name
	at sun.misc.Perf.attach(Native Method)
	at sun.misc.Perf.attachImpl(Perf.java:269)
	at sun.misc.Perf.attach(Perf.java:199)
	at sun.jvmstat.perfdata.monitor.protocol.local.PerfDataBuffer.<init>(PerfDataBuffer.java:64)
	... 4 more

----------System.err:(20/1464)*----------
java.lang.RuntimeException: The line/pattern '(\\w|\\.)*\\=.*' from where the output should match can not be found: expected -1 > -1
	at jdk.testlibrary.Asserts.fail(Asserts.java:536)
	at jdk.testlibrary.Asserts.assertGreaterThan(Asserts.java:343)
	at jdk.testlibrary.OutputAnalyzer.shouldMatchByLine(OutputAnalyzer.java:512)
	at jdk.testlibrary.OutputAnalyzer.shouldMatchByLine(OutputAnalyzer.java:484)
	at jdk.testlibrary.OutputAnalyzer.shouldMatchByLineFrom(OutputAnalyzer.java:458)
	at TestJcmdSanity.matchPerfCounters(TestJcmdSanity.java:160)
	at TestJcmdSanity.testJcmdPidPerfCounterPrint(TestJcmdSanity.java:98)
	at TestJcmdSanity.main(TestJcmdSanity.java:61)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:502)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
	at java.lang.Thread.run(Thread.java:745)

JavaTest Message: Test threw exception: java.lang.RuntimeException: The line/pattern '(\\w|\\.)*\\=.*' from where the output should match can not be found: expected -1 > -1
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: The line/pattern '(\\w|\\.)*\\=.*' from where the output should match can not be found: expected -1 > -1

log: http://aurora.ru.oracle.com/slot-gw/986534.JAVASE.NIGHTLY.VM.RT_Baseline.2015-07-03-240/results/workDir/sun/tools/jcmd/TestJcmdSanity.jtr

http://aurora.ru.oracle.com/functional/faces/RunDetails.xhtml?names=986534.JAVASE.NIGHTLY.VM.RT_Baseline.2015-07-03-240
Comments
The failure mode is identical to JDK-8062938. It appears the test encounters a JVM that it can't access - which suggests an environment issue.
07-07-2015