配置jmxremote时无法正常停止tomcat [英] Can't stop tomcat normally when I configure jmxremote

查看:293
本文介绍了配置jmxremote时无法正常停止tomcat的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在catalina.bat中添加了 jmxremote configuraiton:

I added a jmxremote configuraiton in the catalina.bat:

set JAVA_OPTS=-Dcom.sun.management.jmxremote.port=9004 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false

这样我就可以启动jconsole来监控tomcat的性能。

so that I could start jconsole to monitor the tomcat's performance.

但是我得到了一个通过 $ CATALINA_HOME\catalina.bat停止,我无法正常停止tomcat的问题, $ CATALINA_HOME \shutdown.bat

But I got a problem that I couldn't stop tomcat normally through $CATALINA_HOME\catalina.bat stop, neither did $CATALINA_HOME\shutdown.bat

有什么建议吗?

推荐答案

有2个事情:


  • 请看看我的博客文章,我总结了如何正确地做到这一点(过去遇到过这个......)

  • 制作确保只在start命令看到的位置放置定义,而不是关闭拥有。原因是jmx远程创建一个侦听套接字,如果配置不正确,则关闭以侦听相同的端口。

  • Please have a look at my blog post, where I summarized how to do it properly (having encountered this in the past...)
  • Make sure that you put the definitions in a place only the start command sees, but not the shutdown. The reason or this is that the jmx remote create a listening socket, making the shutdown to listen to the same port if not configured properly.

这篇关于配置jmxremote时无法正常停止tomcat的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆