I am using Netbeans and it is a profiler to view thread activity. Graphs show that when a task thread is more than performance, the thread can reside in many states: Running, Waiting, Monitor.
I have written my Java application, so that only the variables should be used to read the threads working in it, without the need for synchronization.
However, when Netbeans Profiler is executed, I can see that often my thread monitor is in position. I think they are waiting to unlock a monitor, but I can think which monitors
So, my question is this: Is there a way to understand who controls any formula?
Thanks
First try to get a thread dump when a monitor There are several ways to do this, including Import it to a thread-dump file However, if you find a lot by reading the file in a plain text editor, then this simple application group threads and monitors, you can browse threads including HyperLink and more. Allows to Look very vague, but works well. If you have difficulties reading stack-marks (this is a very important skill for Java developers), then wait here after waiting bag. jstack , and
kill -3 are included. Apart from this Netbeen may be able to do this for an application that executes it.
Comments
Post a Comment