jconsole can not display the local start tomcat

In jdk bin directory, we find jconsole.exe execution of the program, double-click operation, the display is as follows: and no local option after the start tomcat.
Here Insert Picture Description
First of all, we need to modify the parameters of a registry.
64-bit operating system corresponding path: HKEY_LOCAL_MACHINE \ SOFTWARE \ Wow6432Node \ Apache Software Foundation \ Procrun 2.0 \ Tomcat7 \ Parameters \ JAVA
Here Insert Picture Descriptiondouble-click to open Options, by appending the information below: wherein, jmxremote.port tomcat modify the corresponding port number.

-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=80
-Dcom.sun.management.jmxremote.ssl="false"
-Dcom.sun.management.jmxremote.authenticate="false" 

After the modification, no need to restart tomcat to take effect.
However, if a program starts execution of .exe tomcat, it is still unable to view. You must use startup.bat way to start to appear.
Here Insert Picture DescriptionIt now appears that the use of startup.bat start, although the function is the same, but in some respects, this approach will be more convenient than the .exe start-up mode, such as jstack command, you can only start in the effective implementation of the way, as well as jconsole here, too.

Published 98 original articles · won praise 13 · views 20000 +

Guess you like

Origin blog.csdn.net/qq_41885819/article/details/104821048