multithreading - How to measure resources are consumptioned by thread in Java -
i need track running thread execution measure it's performance memory usage,cpu usage , global cache misses etc... have able measured cup usage consumed running thread using java.lang.management.threadmxbean
get cpu time thread
threadmxbean tmxb = managementfactory.getthreadmxbean(); long cputime = tmxb.getthreadcputime(athreadid);
but couldn't other values.so question that,is there api available measure thread performance or how using native way.
there's jconsole executable in bin folder of jdk. execute it, connect process , list managed beans.
the java.lang folder 1 you're looking for.
Comments
Post a Comment