[jboss-jira] [JBoss JIRA] (AS7-5945) FreeBSD isThreadCpuTimeSupported

Alexis Yerenkow (JIRA) jira-events at lists.jboss.org
Wed Nov 14 11:07:21 EST 2012


Alexis Yerenkow created AS7-5945:
------------------------------------

             Summary: FreeBSD isThreadCpuTimeSupported
                 Key: AS7-5945
                 URL: https://issues.jboss.org/browse/AS7-5945
             Project: Application Server 7
          Issue Type: Feature Request
         Environment: FreeBSD 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 02:52:29 UTC 2012     root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
openjdk6/openjdk7
            Reporter: Alexis Yerenkow


Platform Tests should be modified, since it's not respecting when isThreadCpuTimeSupported = false (It continues run some test with isThreadCpuTimeSupported, which produces Exceptions, and all test failed);

Simple test:

ThreadMXBean threadMXBean = ManagementFactory.getThreadMXBean();
System.out.println("threadMXBean.isThreadCpuTimeSupported() = " + threadMXBean.isThreadCpuTimeSupported());
System.out.println("threadMXBean.isThreadCpuTimeEnabled() = " + threadMXBean.isThreadCpuTimeEnabled());


Result:

threadMXBean.isThreadCpuTimeSupported() = false
Exception in thread "main" java.lang.UnsupportedOperationException: Thread CPU time measurement is not supported
        at sun.management.ThreadImpl.isThreadCpuTimeEnabled(ThreadImpl.java:98)
        at Test.main(Test.java:19)


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list