Version 2

    JBoss provides information on server performance, how much memory is used, the total CPU time each thread has used etc.. This information you can see on jmx-console:

     

    http://localhost:8080/jmx-console/HtmlAdaptor?action=inspectMBean&name=jboss.system:type=ServerInfo

     

    MBean view basic information about the server and contains 3 operations:

    OperationDescriptionURLTwiddle .bat/sh
    listThreadCpuUtilizationview all threads, and the total CPU time for each threadhttp://localhost:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:type=ServerInfo&methodName=listThreadCpuUtilizatiotwiddle.bat -s localhost invoke "jboss.system:type=ServerInfo" listThreadCpuUtilization > index.html

    or

    ./twiddle.sh -s localhost invoke "jboss.system:type=ServerInfo" listThreadCpuUtilization > index.html
    listMemoryPoolsshows the size and current usage of all JVM memory poolshttp://localhost:8080/jmx-console/HtmlAdaptor?action=invokeOp&name=jboss.system:type=ServerInfo&methodIndex=2&arg0=Truetwiddle.bat -s localhost invoke "jboss.system:type=ServerInfo" listMemoryPools "True" > index.html

    or

    ./twiddle.sh -s localhost invoke "jboss.system:type=ServerInfo" listMemoryPools "True" > index.html
    listThreadDumpshows all threads running in the JVM and showing you exactly what code each thread is executinghttp://localhost:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:type=ServerInfo&methodName=listThreadDumptwiddle.bat -s localhost invoke "jboss.system:type=ServerInfo" listThreadDump > index.html

    or

    ./twiddle.sh -s localhost invoke "jboss.system:type=ServerInfo" listThreadDump > index.html