将visualvm连接到websphere 7

use*_*858 22 java websphere visualvm

我想让visualvm和websphere 7在我的本地Windows桌面上一起工作.我尝试通过JMX连接,但没有运气.有没有人设法让visialvm和websphere 7工作,你做了吗?

关心FF

use*_*858 36

我在Praha的VisualVM团队的帮助下工作(感谢Tomas!):

1)在管理控制台上(单击服务器 - > 服务器类型 - > WebSphere应用程序服务器 - > server1 - > Java和进程管理 - > 进程定义 - > Java虚拟机),将以下行添加到
通用JVM参数字段中(请注意,第一个系统属性等于零,
第二个系统属性没有等号):

-Djavax.management.builder.initial= -Dcom.sun.management.jmxremote
Run Code Online (Sandbox Code Playgroud)

2)在文件/ opt/IBM/WebSphere/AppServer/java/jre/lib/management/management.properties(或/ lib/management/management.properties)中添加或取消注释以下三行:

com.sun.management.jmxremote.port=3333
com.sun.management.jmxremote.authenticate=false
com.sun.management.jmxremote.ssl=false
com.sun.management.jmxremote.local.only=false
Run Code Online (Sandbox Code Playgroud)

3)连接VisualVM!