S
Shachar
Hi,
I'm trying to monitor threads locking locks using the 'synchronized'
keyword and JVMPI. JVMPI provides three contention events for a Java
monitor (ENTER, ENTERED and EXITED). It means I get an event only when
there's a contention, i.e. another thread is involved.
What if I want to know about a single thread entering, leaving or
holding a lock? How can I do it using JVMPI and receive an event about
it?
I saw there is a monitor dump, but that is a specific request that I
have to make, whether I would like to be notified about it.
If there is no good answer, is there a way, while getting notified by
the three mentioned events, to know from the object received which
thread is locking it?
Thank you,
Shachar
I'm trying to monitor threads locking locks using the 'synchronized'
keyword and JVMPI. JVMPI provides three contention events for a Java
monitor (ENTER, ENTERED and EXITED). It means I get an event only when
there's a contention, i.e. another thread is involved.
What if I want to know about a single thread entering, leaving or
holding a lock? How can I do it using JVMPI and receive an event about
it?
I saw there is a monitor dump, but that is a specific request that I
have to make, whether I would like to be notified about it.
If there is no good answer, is there a way, while getting notified by
the three mentioned events, to know from the object received which
thread is locking it?
Thank you,
Shachar