【发布时间】: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,所以这应该不是问题?
有人对为什么无法连接有任何想法吗?
【问题讨论】: