【问题标题】:"No unprofiled JVMs found" on AIX Server - JProfilerAIX 服务器上的“未找到未分析的 JVM” - JProfiler
【发布时间】:2018-01-10 06:46:44
【问题描述】:

我正在尝试运行 JProfiler,以便将它连接到在 AIX 服务器上运行的正在运行的 Apache Tomcat。我抓起 AIX 的 tar 球并将其放在服务器上,然后将其解压缩。当我在 bin 目录中运行 jpenable 时,出现以下错误:

No unprofiled JVMs found.

If the target JVM is running as a different user, restart as 
    sudo -u [user] jpenable

我认为它可能与环境有关,所以为了安全起见,我还尝试使用命令行标志运行它以启动它:

jpenable --pid=5505272 --gui --port=1234

但是,这给了我以下错误:

No JVM with PID 5505272 found that is running as the same user.

If the target JVM is running as a different user, restart as
sudo -u [user] jpenable

我做了一个ps -ef | grep tomcat 并验证它确实以root身份运行,并且我以root身份登录,但是JProfiler仍然找不到正在运行的JVM。


来自 JProfiler 手册:This only works with a Java VM of version 1.6 or higher。看到后,我验证了我的 java 版本,并且运行 tomcat 的版本是 1.8,所以这应该不是问题?

有人对为什么无法连接有任何想法吗?

【问题讨论】:

    标签: java tomcat aix jprofiler


    【解决方案1】:

    从 JProfiler 10.0 开始,附加功能仅适用于 HotSpot JVM,不适用于 IBM J9 JVM。

    【讨论】:

    • 确实,需要在启动脚本中添加“-agentpath”VM参数来进行profiling。
    猜你喜欢
    • 1970-01-01
    • 2011-12-08
    • 1970-01-01
    • 2014-11-28
    • 2019-03-01
    • 1970-01-01
    • 2014-09-03
    • 2014-11-09
    • 1970-01-01
    相关资源
    最近更新 更多