zoukankan      html  css  js  c++  java
  • JDK_jvisualvm访问远程weblogic服务

    1.首先需要在远程的weblogic的域下面,找到/bin/ setDomainEnv.sh ,需要在此文件下加入如下内容:

    -Djava.rmi.server.hostname=10.10.122.236
    -Dcom.sun.management.jmxremote.port=6001
    -Dcom.sun.management.jmxremote.authenticate=false
    -Dcom.sun.management.jmxremote.ssl=false

    参数解释:

    -Djava.rmi.server.hostname=10.10.122.236(jmx绑定远程主机ip)
    -Dcom.sun.management.jmxremote.port=6001(Jmx远程监听端口)
    -Dcom.sun.management.jmxremote.ssl=false(禁止使用ssl) 
    -Dcom.sun.management.jmxremote.authenticate=false(不启用用户认证,启动则改为true)

    具体加入位置为:

    2.重启weblogic服务器。在启动日志中看到刚才配置的参数就说明jmt启动成功了

    3.用jvisualvm远程连接

    出现了上述的界面就表示连接成功了。

    参考博客:

    博客1 https://www.liangzl.com/get-article-detail-29969.html

    博客2 https://segmentfault.com/a/1190000004313468

    备注:刚开始是照着博客1的参数设置的,结果weblogic无法启动,报类型转换异常 com.sun.jmx.mbeanserver.JmxMBeanServer cannot be cast to weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptor,将第四个参数-Djavax.management.builder.initial=weblogic.management.jmx.mbeanserver.WLSMBeanServerBuilder去掉就可以正常启动了,第二次启动后无法建立连接,加上那个-Djava.rmi.server.hostname=10.10.122.236的参数绑定好ip地址就可以了。

  • 相关阅读:
    既然选择了远方,就只顾风雨兼程!
    slots
    面向对象
    模块和作用域
    偏函数
    python中decorator
    返回函数
    filter, sort
    map/reduce
    开发步骤
  • 原文地址:https://www.cnblogs.com/anningkang/p/12111045.html
Copyright © 2011-2022 走看看