)
JavaScript for managing the Xmlhttprequest-/-repaint cycle
Client Description (main.jsp)
The assembled JSP. Ajax launches the page based on the Mbean property
HTML adapter wrapper (Starthtmladaptor.java)
Start a htmladaptorserver on listening port +100 to enable HTTP access to Mbeans
Table 1 Schema elements
(i) JMX notification model
This model contains two compon
Issues to be addressed:Want to develop a JMX client to configure a local Java program. The specific requirements are as follows:Please do not recommend the use of jconsole! Jconsole is inappropriate because jconsole is a generic JMX client that has a negative impact on the performance of the main program.There is an example on the Oracle website that uses Rmiconnector and "host:
-dcom.sun.management.jmxremote.port
Numerical
Monitoring port number for remote access
-dcom.sun.management.jmxremote.authenticate
Boolean
If you need to turn on user authentication, turn on by default
-dcom.sun.management.jmxremote.ssl
Boolean
If SSL encryption is turned on for the connection, it is turned on by default
-dcom.sun.management.jmxremote.access.fil
java_opts and Catalina_home variable settings (especially the heap memory parameter settings) Online article said there is a direct setting java_opts but this setting will be thrown when the stop is abnormal While not affecting the use of(Parameter meaning is:-dcom.sun.management.jmxremote Enable JMX remote monitoring-dcom.sun.management.jmxremote.port=9004 using port 9004 (can be arbitrarily specified as
-djava.class.path= "C:\Program Files (x86) \java\jdk1.7.0_10\bin\jboss-client.jar; C:\Program Files (x86) \java\jdk1.7.0_10\lib\jconsole.jar; C:\Program Files (x86) \java\jdk1.7.0_10\lib\tools.jar "Enter the remote Call service, for example: service:jmx:http-remoting-jmx://10.19.xx.xx:8080, to fill in the user name and password created before650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-c
:///jndi/rmi://localhost:8999/jmxrmi"; Jmxserviceurl serviceurl = new Jmxserviceurl (address); MAP
Because HTTP adapters are also available, you can try to manage the same methods and properties using MX4J (a browser connection to port 8080). If you have the client code running at the same time, you will also see notifications for these actions.
Concluding remarks
In this article, I showed you how to extend Spring's
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 Tomcat
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 JMX services Tomcat provides and how to use them.
Author: Sheng
The Web application system was developed, and then how to make it easy for customers (Web application administrators) to manage a bunch of my configuration files, or how to dynamically modify the system run properties, while allowing customers to implement these management without having to be too knowledgeable about the contents of the configuration file. This is a problem that many of the system analysts who have just ended the development of Web application systems need to face.
following:(This step has been tested, can not write)-----The port here is consistent with the ZABBIX server-defined monitoring JMX port3. Modify the Tomcat/bin directory under catalina.shFind the #-----Execute the requested Command-----------------------------------------Add the following content:Catalina_opts= "-dcom.sun.management.jmxremote-dcom.sun.management.jmxremote.authenticate=false- Dcom.sun.manag
.
Tomcat_ip is the IP address of the machine where Tomcat is located and 9999 is the port set above.
Method 2: Use Ant build. xml
For more information, see: http://tomcat.apache.org/tomcat-6.0-doc/monitoring.html#JMXAccessorGetTask:__get_attribute_value_Ant_task
Same principle.
Method 3: Use Ant Task in Java code
GetTask task=new GetTask();task.setURL("http://tomcat_ip:9999/manager");task.setUser("xxx");task.setPassword("xxx");Project pro=new Projec
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
Notification notice, can also be understood as a message, there is a notice, there must be a broadcast of the notification, JMX here using a way of subscribing, similar to the Observer mode, register an observer to the broadcast, when there is notification, broadcast by calling the Observer, the notice.
Here's a simple example of server configuration, first defining our Mbean interface:
Java codePackageCom.haitao.jmx.mbeans.server; /** * * Server C
PremiseJVISUALVM is a performance analysis tool provided by Sun, which comes in later versions of Jdk6.0 and is installed separately if used with Jdk1.5 or previous versions."1" remote machine needs to turn on JMXTo enable JMX on the server before using JVISUALVM, you need to configure the Jmxremote in the tomcat_home/bin/catalina.sh file of the pressure measurement application;
Add the Jmxremote configuration to the catalina.sh file:-
Author: Sheng
The Web application system has finally developed, how to let customers (Web Application system administrators) easily manage my pile of configuration files, or how to dynamically modify the system run properties, but also so that customers do not need too much understanding of the contents of the configuration file can achieve these management. This is the problem that many system analysts who have just completed the early development of Web application systems need to face. Or tha
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. JMX is the acronym for Java Management Extension, which translates in
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.management.jmxremote.authenticate=false"Configurin
Web Web Application System finally developed, how to let customers (Web Application system administrators) easily manage my pile of configuration files, or how to dynamically modify the system run properties, but also so that customers do not need too much understanding of the contents of the configuration file can achieve these management? This is the problem that many system analysts who have just completed the early development of Web application systems need to face. Or that I want to have a
The Spring framework minimizes architectural dependencies and materializes the components in the application, but the application is still managed. Fortunately, Spring 1.2 includes advanced JMX integration support, and JMX provides a practical management infrastructure for applications. In this article, Claude Duguay further from Spring JMX, showing you how to tr
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.