Hi,
I've been a YourKit user in the past and I'm currently with a new company that does not own the product. It the product can help us resolve our current issue I feel assured we would make a purchase. My question is the following:
We have a Java call path that has multiple contentions points (multiple synchronized methods) and our currently solution only show the top contention point and the associated time. Can your product see all the contention points in a Java call path and attribute the blocking time to each of the encountered blocking points?
Thanks,
Rich
tracking multiple contention points
-
- Posts: 6172
- Joined: Wed Aug 11, 2004 8:37 am
Re: tracking multiple contention points
Hello Rich
Do you mean Monitor profiling?
https://www.yourkit.com/docs/java/help/ ... filing.jsp
Monitor profiling shows points of contention, but it's not possible to automatically find any relation between different contention points without knowing the profiled application's semantics.
If you mean anything else, could you please explain in more detail.
Best regards,
Anton
Do you mean Monitor profiling?
https://www.yourkit.com/docs/java/help/ ... filing.jsp
Monitor profiling shows points of contention, but it's not possible to automatically find any relation between different contention points without knowing the profiled application's semantics.
If you mean anything else, could you please explain in more detail.
Best regards,
Anton
-
- Posts: 3
- Joined: Tue Mar 22, 2016 8:22 pm
Re: tracking multiple contention points
Hi Anton,
Below is our basic scenario. Where we get a connection to a pool of objects and then add an object to the pool. In this scenario (one thread) will the tool show the contention (or monitor profile information) time for each of these synchronization points?
public final Object getConnection(.........
Pool apool = null;
synchronized (apool = getPool())
.....................
protected final synchronized Pool getPool()
.......
return this.pool
public synchronized void add(T object)
Below is our basic scenario. Where we get a connection to a pool of objects and then add an object to the pool. In this scenario (one thread) will the tool show the contention (or monitor profile information) time for each of these synchronization points?
public final Object getConnection(.........
Pool apool = null;
synchronized (apool = getPool())
.....................
protected final synchronized Pool getPool()
.......
return this.pool
public synchronized void add(T object)
-
- Posts: 6172
- Joined: Wed Aug 11, 2004 8:37 am
Re: tracking multiple contention points
Yes, monitor profiling should show you all monitor contention points in your code.