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

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -