当我在同一服务器和同一用户"管理员"
上运行visual VM和webSphere 7时我收到此错误: 记忆采样: 无法使用。无法连接到目标应用程序。确保应用程序在受支持的Java 6,Java 7或Java 8上运行。
环境:
JVM 1.3.8
- JVM: Java HotSpot(TM) Client VM (24.65-b04, mixed mode, sharing)
Webspher 7
- JVM: IBM J9 VM (2.4, JRE 1.6.0 IBM J9 2.4 Windows 7 x86-32 jvmwi3260sr15-20131016_170922 (JITenabled, AOT enabled)
J9VM - 20131016_170922
JIT - r9_20130920_46510ifx2
GC - GA24_Java6_SR15_20131016_1337_B170922)
答案 0 :(得分:0)
将以下内容添加到JVM启动参数中:
-agentlib:JPIBootLoader=JPIAgent:server=controlled;CGProf
在WebSphere中,这应该可以使用WebSphere Application Server管理控制台(也称为“IBM Integrated Solutions Console”)进行编辑。
您需要确保正确设置了探查器库环境变量:
Setting up environment variables to profile a (WebSphere) server
<强>更新强>
如果您收到此错误:
JVMJ9TI001E Agent library JPIBootLoader could not be opened. (The specified module could not be found.)
JVMJ9VM015W Initialization error for library j9jvmti24(-3): JVMJ9VM009E J9VMDllMain failed
遵循IBM的本指南: