Visual VM:如何解释 Self Time 与 Self Time (CPU)
Visual VM: how to interpret Self Time vs Self Time (CPU)
我已经阅读了VisualVM and Self Time
但是我还是不懂怎么解读。这是我的案例:
Self Time : 500000ms
Self Time (CPU) : 72000ms
我知道该方法花费了 72 秒的 CPU 执行时间(没有调用子方法的实际工作)。
我可以解释线程在 500-72=428 秒期间由于某种原因在此方法中被阻塞了吗?
这意味着我可以开始搜索并发访问等...?
上下文 : Tomcat
下的网络应用
Can I interpret that Threads have been blocked in this method for some reason during 500-72=428s ?
这是最有可能的解释。也可以想象线程被线程调度程序取消调度让其他线程运行.
Which would mean I can begin to search concurrent access etc... ?
同步(例如争用锁或等待通知)是一种可能的解释。另一个将等待阻塞 I/O 操作完成。
我已经阅读了VisualVM and Self Time
但是我还是不懂怎么解读。这是我的案例:
Self Time : 500000ms
Self Time (CPU) : 72000ms
我知道该方法花费了 72 秒的 CPU 执行时间(没有调用子方法的实际工作)。
我可以解释线程在 500-72=428 秒期间由于某种原因在此方法中被阻塞了吗?
这意味着我可以开始搜索并发访问等...?
上下文 : Tomcat
下的网络应用Can I interpret that Threads have been blocked in this method for some reason during 500-72=428s ?
这是最有可能的解释。也可以想象线程被线程调度程序取消调度让其他线程运行.
Which would mean I can begin to search concurrent access etc... ?
同步(例如争用锁或等待通知)是一种可能的解释。另一个将等待阻塞 I/O 操作完成。