I was using VisualVM to find where all the time was being spent for a particular call. I found that most the time was in a database call, but the profier shows that 85% of the time was java.lang.Object and only 15% in the DB Call.
Am I reading something wrong?
The columns with data are Time, Time (CPU), Invocations.
It looks like most of the time is spend in Object.wait(). The difference between Time and Time(CPU) is described in the tooltip for particular column. Time(CPU) is an approximation of real CPU usage, while Time is wall-clock time. So for Object.wait(), Time(CPU) is always zero, since it only waits and does not use CPU.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With