I am trying to reduce lock conflict on specific code in my application. To identify the code with a high degree of blocking, I connect YourKit to my application and use the “Monitor” tab and see that the locks caused the thread that I am going to block. My ultimate goal is to not have red dots for this thread on the Theme tab in the YK GUI.
Often a statement arises from a read / read lock using the built-in lock, so they can be improved with ReentrantLockinstead of internal locking. Indeed, when I tried this, YourKit reported lower disputes. How reliable is this information? Is your ReitrantLock report using your KitKit correctly?
I am using YourKit 8.0.24 on Solaris 10 with the 32-bit JVM Sun 1.6u18.
source
share