【问题标题】:VisualVM Memory sampling: Not available with websphereVisualVM 内存采样:不适用于 websphere
【发布时间】:2014-09-22 10:11:17
【问题描述】:

当我在同一服务器和同一用户“管理员”上运行可视 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)

【问题讨论】:

    标签: java websphere visualvm


    【解决方案1】:

    将以下内容添加到您的 JVM 启动参数中:

    -agentlib:JPIBootLoader=JPIAgent:server=controlled;CGProf
    

    在 WebSphere 中,这应该可以使用 WebSphere Application Server 管理控制台(也称为“IBM 集成解决方案控制台”)进行编辑。

    您需要确保分析器库环境变量设置正确:

    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 的指南:

    Profile on server fails with JVMJ9TI001E error

    【讨论】:

    • 在我们尝试之后我发现了以下异常: JVMJ9TI001E 代理库 JPIBootLoader 无法打开(找不到指定的模块。) JVMJ9VM015W 库 j9jvmti24(-3) 的初始化错误:JVMJ9VM009E J9VMDllMain 失败
    • 您需要确保profiler库环境变量设置正确:pic.dhe.ibm.com/infocenter/radhelp/v7r5/…
    猜你喜欢
    • 2012-02-06
    • 2013-06-30
    • 1970-01-01
    • 1970-01-01
    • 2012-02-06
    • 1970-01-01
    • 2021-01-20
    • 1970-01-01
    • 2010-12-17
    相关资源
    最近更新 更多