Requires JDK to be installed under the NTFS file system
First, configure the startup statement
In the case of a bin/catalina.bat (Linux for catalina.sh) under the Tomcat,window version, the annotation section on the header (. Bat is REM,. SH is #) followed by
Set java_opts=%java_opts%-dcom.sun.management.jmxremote-dcom.sun.management.jmxremote.port=8999- Dcom.sun.management.jmxremote.authenticate=false-dcom.sun.management.jmxremote.ssl=false
If you ar
--enable-java to enable monitoring Tomcat through JMX support, Zabbix server installation see the corresponding document in the station
./configure --prefix=/usr/local/zabbix --enable-server --enable-agent --with-mysql --
Tomcat: JMX is used to supervise Tomcat in several ways.
Tomcat uses the JMX management method. The built-in Application manager of Tomcat uses the JMX method to manage
Test environment: centos6.4 x64First, Zabbbix server configuration1, Zabbix Server installation needs to add--enable-java2, Zabbix Server installation JDK3, find Zabbix_java, modify the following:vi/usr/local/zabbix/zabbix_java_gateway/sbin/zabbix_java/settings.shlisten_ip= "0.0.0.0"listen_port=10052Start_pollers=54. Add the following files in Zabbix_serverVi/usr/local/zabbix/etc/zabbix_server.confjavagateway=127.0.0.1javagatewayport=10052Startjavapol
1 Basic Information
Summary: This article describes how to view, use the JMX services of Tomcat, and invoke Tomcat's JMX to stop and start the Web App.Author: Chen Guangyao2 Body
Tomcat 5.5.20 can use the JMX service for administrative operations. Here's how to see what
First, JMX simple introduction
Tomcat introduced JMX from version 5.0, trying to make JMX a future version of the management tool and platform for Tomcat. First, let's make a simple understanding of JMX.
Zabbix Monitoring Tomcat Scheme1) The version of Zabbix is 2.4You need to add a parameter when compiling Zabbix--enable-java2) server-side configuration2.1 Confirm that the JDK is installed[Email protected] zabbix]# java-versionJava Version "1.7.0_79"Java (TM) SE Runtime Environment (build 1.7.0_79-b15)Java HotSpot (TM) 64-bit Server VM (build 24.79-b02, Mixed mode)2.2 Installing Zabbix-java-gatewayPackages
I recently looked at the JDK command line tool. Using Java visualvm and jconsole tools can both monitor the running status of Java programs (including usage of CPU and memory, and running status of threads)
In the Java visualvm tool, you can directly view the running status of the locally running Java program (such as Eclipse ).
To monitor the running status of Web applications running in Tomcat, you must enable
JMX (java Management Extensions), a management interface provided by Java, typically uses JMX to monitor the running state of the system or some aspects of the management system, such as emptying the cache, reloading the configuration file, and so on.
Baidu Encyclopedia Introduction: JMX
Zabbix monitoring machine: OS-------cent6.5 x64
Zabbix------2.4.6, installed
Wiki uses JMX for survival monitoringcat/opt/wiki/work/bin/setenv.sh | grep jmxremoteCatalina_opts= "-dcom.sun.management.jmxremote-dcom.sun.management.jmxremote.port=8410- dcom.sun.management.jmxremote.ssl=false-dcom.sun.management.jmxremote.authenticate=false-duser.timezone=asia/ Shanghai ${catalina_opts} "For information on how to enabling JMX Remote, refer to the following:Http://tomcat.apache.org/
========================================================================================Tomcat side Configuration1. First configure the Tomcat environment, refer to here, note the control side and the server side of the JDK version to be consistenthttp://duanyexuanmu.blog.51cto.com/1010786/1755443http://duanyexuanmu.blog.51cto.com/1010786/1751156 2. Download the Catalina-
server.CATALINA_OPTS = "-Dcom. sun. management. jmxremote-Dcom. sun. management. jmxremote. authenticate = false-Dcom. sun. management. jmxremote. ssl = false-Djava. rmi. server. hostname = Local IP Address"
[Root @ web02 ~] # Vim/usr/local/tomcat-7.0.67Html/conf/server. xml -- expose a port to zabbix to get data[Root @ web02 ~] #/Usr/local/tomcat-7.0.67/bin/shutdown. sh -- disable the
1. During the tomcat boot process, turn on the corresponding parameter configuration:
1234
-Dcom.sun.management.jmxremote-Dcom.sun.management.jmxremote.port=9999-Dcom.sun.management.jmxremote.ssl=false-Dcom.sun.management.jmxremote.authenticate=false
Where: Com.sun.management.jmxremote.port is the JMX port which is important to use when using Jconsole to connect
Tags: form extras information stop port false pre SSL REMAuthor remote server operating system CentOS 7.0, Tomcat version 7.01. Linux Tomcat Configuration 1.1 catalina_opt ConfigurationYou can add the following configuration in the catalina.sh filecatalina_home=/usr/local/tomcat_fd02_mcjava_opts="$JAVA _opts-djava.rmi.server.hostname= xxx.xxx.xxx.xxx \-dcom.sun.management.jmxremote.ssl=false- Dcom.sun.manag
Tested on Tomcat, theoretically tried on any Java process, and any program that implements the JMX specification.
Modify the $catalina_home/bin/catalina.sh file and add the following JVM parameters
-DCOM.SUN.MANAGEMENT.JMXREMOTE.PORT=18100//Specify JMX connection ports
-dcom.sun.management.jmxremote.authenticate=false//this configuration is insecure. Any remote
Take TOMCAT7 as an example:1. Tomcat launched as a Windows service, double-click the Tomcat installation directory under Tomcat7w.exe, and under Java-java options, add configuration parameters:-dcom.sun.management.jmxremote-dcom.sun.management.jmxremote.port=9000-dcom.sun.management.jmxremote.ssl=false-dcom.sun.management.jmxremote.authenticate=falseTo start the Tomcat
The previous two JMX remote monitoring Tomcat server is not configured with a password, the following describes the user password configuration when Tomcat monitoring.Specific Tomcat address: Http://tomcat.apache.org/tomcat-6.0-doc/monitoring.html#Enabling_JMX_RemoteNote: Th
server address)
Go to the JDK installation directory, under the/jre/lib/management directory, to view the files. and modify the Jmxremote.access file, the last two lines of the file display "Monitorrole and controlrole" comment cancellation, where monitorrole is only the role of read-only permissions, Controlrole have higher permissions: Read-write, and so on. After editing is complete, save.
By default, the Jmxremote.password file does not exist in this directory, we can rename the Jmxremo
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.