VisualVM Not showing ANY methods called for CPU Performance Profiling

落爺英雄遲暮 提交于 2019-12-08 17:12:12

问题


I'm running a Java 1.6_21 SDK build app. Its been build in Eclipse, and i'm using the VistualVM eclipse plugin to launch VisualVM when the app starts.

When I go to the Profile tab and click CPU profiling, It only shows the THREADS that are running, but it doesn't show any METHOD calls. Quite litterally, none. I've googled a whole bunch of things, but nothing seems to fit. has ANYONE seen this problem? Is there a solution??

Environment: Windows XP 32-bit "Classic" Eclipse SDK 3.7.0 VisualVM from SDK 1.6_21

It doesn't make any sense to me. I can get memory heap information, but zero member-calling information.

Any help is extremely appreciated.


回答1:


have you tried setting classes to be profiled.

select the Settings checkbox in the top right cornet of the window & set the packages which needs to be profiled.




回答2:


See Profiling With VisualVM, Part 1 and Profiling With VisualVM, Part 2 to find out how to set CPU settings.




回答3:


I noticed Visual VM reporting incorrect method call sample counts (I believe those mean the number of times a method was called).



来源:https://stackoverflow.com/questions/6619610/visualvm-not-showing-any-methods-called-for-cpu-performance-profiling

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!