zoukankan      html  css  js  c++  java
  • connect to tomcat with JMX

    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 in )

    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

  • 相关阅读:
    JAVA的HashTable源码分析
    散列表
    JAVA的HashSet源码分析
    Java中HashMap源码分析
    MySQL max_allowed_packet设置及问题
    通过分析 JDK 源代码研究 TreeMap 红黑树算法实
    红黑树详解
    TreeMap源码分析
    Vector的浅析
    web.xml 配置中classpath: 与classpath*:的区别
  • 原文地址:https://www.cnblogs.com/WCFGROUP/p/5893322.html
Copyright © 2011-2022 走看看