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

Popular posts from this blog

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -