Measuring the time spent in syncrhonization for a ConcurrentHashMap?


J

John

Hi,
i'd like to know the time spent waiting by 2 threads wich are accessing a ConcurrentHashMap.

Is there an easy way to do this (some counter or trigger featured by the JVM) ?

If not, what can be the best way to get some approximation ?

Have you some good pointers for this specifiec problem (2 readers accessing some Map).

Thanks for any help
 
Ad

Advertisements

K

Krzysiek Zaporowski

Hi,
i'd like to know the time spent waiting by 2 threads wich are accessing a ConcurrentHashMap.

Is there an easy way to do this (some counter or trigger featured by the JVM) ?

If not, what can be the best way to get some approximation ?

Have you some good pointers for this specifiec problem (2 readers accessing some Map).

Thanks for any help

read about java microbenchmarks - there are several helpful articles
by Brian Goetz.
 

Top