博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
connect to tomcat with JMX
阅读量:4710 次
发布时间:2019-06-10

本文共 1159 字,大约阅读时间需要 3 分钟。

Answering my own question; turned out to be easier than i thought.

Following needs to be done, for enabling JMX access for Tomcat installed as a Windows service, that has a name "ApacheTomcatWindowsServer" for example:

  • Install Tomcat as Windows service, either using the command (first cd into \bin\ )

service.bat install

or your custom scripts.

  • Enable Apache Service Manager for the installed service using the following command:

tomcat7w.exe //MS//ApacheTomcatWindowsServer

This should start Apache Service Monitor program on your system tray. Click on its icon. select 'Configure', click on the 'Java' tab and append the following on the 'Java Options' text box, one option per line:

-Dcom.sun.management.jmxremote.port=8080

-Dcom.sun.management.jmxremote.authenticate=false

-Dcom.sun.management.jmxremote.ssl=false

Save and exit and restart the service.

  • To connect to the JMX console, fire jconsole from your JDK installation, click 'New Connection', specify 'Remote Process' and enter hostname:8090.

https://visualvm.java.net/jmx_connections.html

http://tomcat.apache.org/tomcat-7.0-doc/monitoring.html

转载于:https://www.cnblogs.com/WCFGROUP/p/5893322.html

你可能感兴趣的文章
稳定排序
查看>>
libev & libevent简介
查看>>
ProtoBuffer优势
查看>>
@Repository、@Service、@Controller 和 @Component
查看>>
bootstrap-wysihtml5设置值
查看>>
Windows常用快捷键与常用命令
查看>>
290. Word Pattern 单词匹配模式
查看>>
project1
查看>>
const char*, char const*, char*const的区别
查看>>
vue踩坑记-在项目中安装依赖模块npm install报错
查看>>
mySQL优化, my.ini 配置说明
查看>>
mysql系统数据库
查看>>
alwayson监控
查看>>
浅谈 js 函数调用
查看>>
进程与线程
查看>>
python面试题
查看>>
MySQL 数据备份与还原
查看>>
Android Camera2 参数调节关键字翻译集合,常用关键字解析
查看>>
NSMutableString 常用操作
查看>>
php-Mysql示例1
查看>>