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

Brian Stansberry (JIRA) jira-events at lists.jboss.org
Mon Apr 15 10:53:54 EDT 2013


    [ https://issues.jboss.org/browse/AS7-5945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12767298#comment-12767298 ] 

Brian Stansberry commented on AS7-5945:
---------------------------------------

Thanks!
                
> FreeBSD isThreadCpuTimeSupported
> --------------------------------
>
>                 Key: AS7-5945
>                 URL: https://issues.jboss.org/browse/AS7-5945
>             Project: Application Server 7
>          Issue Type: Feature Request
>          Components: Domain Management
>         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: Alexander Yerenkow
>             Fix For: 8.0.0.CR1
>
>
> 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