1

最近(我怀疑几天前安装了最新的 Java 更新,但我不确定),我在 Mac OS 10.8.4 下运行 VisualVM 时遇到了一些奇怪的问题。分析器多年来一直运行良好,但现在突然间,CPU 分析不再向我显示我自己的应用程序中的任何方法,而只显示以下四个:

sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run()
sun.awt.AWTAutoShutdown.run()
sun.awt.AppContext$PostShutdownEventRunnable.run()
java.util.concurrent.ThreadPoolExecutor$Worker.run()

我们在同事的 Mac 上进行了尝试(类似的配置,安装了最新更新),他仍然可以正常工作。

任何可能导致问题的提示都受到热烈欢迎。

[编辑] 它是一个命令行程序,没有AWT 应用程序。

4

1 回答 1

0

For some reason your CPU profiling settings are messed up. Please see Profiling VisulVM, especially 'Profiling Performance' section. It will describe the settings.

于 2013-10-26T14:22:29.817 回答