tomcat 配置 jmx

1.在tomcat/bin/catalina.sh中这句改为:

if [ -r "$CATALINA_HOME"/conf/logging.properties ]; then
  JAVA_OPTS="$JAVA_OPTS "-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager" "-Dcom.sun.management.jmxremote.port=16688" "-Dcom.sun.management.jmxremote.authenticate=false" "-Dcom.sun.management.jmxremote.ssl=false" "-Dcom.sun.management.jmxremote.password.file=/usr/local/tomcat-6.0.10/conf/jmxremote.password" "-Dcom.sun.management.jmxremote.access.file=/usr/local/tomcat-6.0.10/conf/jmxremote.access" "-Djava.util.logging.config.file="$CATALINA_BASE/conf/logging.properties"
fi

2.hostname -i如果是127.0.0.1的话,修改/etc/hostname,增加一句 真实IP 机器名

3.运行jconsole,用远程连接,IP/port

4.  shutdown时提示端口Error: Exception thrown by the agent : java.rmi.server.ExportException: Port already in use: 16688; nested exception is:
        java.net.BindException: Address already in use

5.com.sun.management.jmxremote.authenticate=true,或者Dcom.sun.management.jmxremote.ssl=true还没有研究,用过的兄弟可以补充一下。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值