DX Application Performance Management

Expand all | Collapse all

How Can I Measure CPU and Memory Usage by Thread

Jump to Best Answer
  • 1.  How Can I Measure CPU and Memory Usage by Thread

    Posted 04-07-2016 05:09 PM

    With Websphere and Introscope, how can I measure cpu and memory usage by thread?  We can measure the heap in a JVM and cpu usage by the java process, but I'd like to get more granular than that without the penalty of a thread dump.



  • 2.  Re: How Can I Measure CPU and Memory Usage by Thread

    Broadcom Employee
    Posted 04-08-2016 09:45 AM

    Hi John,

    There is a standard of getting per thread info via JMX, see JSR 174, you might want to discuss this with application team.

    Also, CPU timer tracers can help towards this, it measures the CPU time on the thread when the request starts and takes the end cpu time once the request has finished. To measure the CPU time per Thread you will need the thread start point. On most J2EE applications this should be the Servlet service method. Keep in mind that you will get the CPU Time only at finishTrace of a method.

    I hope this helps,

    Regards,

    Sergio



  • 3.  Re: How Can I Measure CPU and Memory Usage by Thread

    Posted 04-08-2016 11:35 AM

    So, are you saying it is not possible to monitor cpu and memory usage by thread with Websphere and Introscope, that a custom solution is required?



  • 4.  Re: How Can I Measure CPU and Memory Usage by Thread
    Best Answer

    Broadcom Employee
    Posted 04-11-2016 08:14 AM

    Yes, that is correct.



  • 5.  Re: How Can I Measure CPU and Memory Usage by Thread

    Broadcom Employee
    Posted 04-08-2016 09:48 AM

    Hi John:

    Was this answer helpful or do you have additional questions

    Thanks

    Hal German