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
(Turn around, source address: http://www.jmatrix.org/notes/1067.html)
A recent whim, to see if you can continue to collect the performance information of the Tomcat server itself by adding a tomcat extension, such as the data of the thread pool, the number of requests, and so on, so that the monitoring of the business side can be more convenient analysis and adj
class and the jvm gc will not clean up the pemgen space, exceeding the default JVM size (4 MB), leading to memory overflow.
Suggestion: Move the same third-party jar files to the tomcat/shared/lib directory to reduce the memory usage of jar files.
This is generally solved by increasing-XX: permsize-XX: maxpermsize.
-X
How to view memory usage in Linux and how to view memory usage in linux
In Linux, view CPU and memory usage:
During Linux system optimization, physical memory is the most important aspe
the Java VISUALVM to successfully connect to the remote server, the server side should set the native address to the IP address of the native in the/etc/hosts file.Use the Hostname-i command to view, if the display is 127.0.0.1 or inconsistent with the native IP, you need to change the corresponding address in the/etc/hosts file to the native real IP.Modify the/etc/hosts file: Add a row to the next line in 127.0.0.1, native IP domain name/hostname alias3. Then start the RMI service with the fol
Tomcat Memory leak SolutionThis kind of problem is often encountered in the development, see the experience of the predecessorsReasons for Tomcat Memory overflowIn a production environment, Tomcat memory settings are not good enou
Tags: nbsp Monitoring windows specifies creating virtual memory pops including TPS documentsThe resources used by SQL Server are dispatched by the operating system, while SQL Server implements a set of scheduling algorithms internally to manage the resources obtained from the operating system, primarily the scheduling of memory and CPU resources. A good database
Tag: blank product appears disk io kernel parameter inheritance div build iceLinux Monitoring platform Build-memoryThe previous article says hard disk. Just write it. Something more important. Above the phone is RAM. The machine is memory. Memory is addressed in bytes. Each address of the storage unit can hold 8bit of data, the CPU through the
Because of the need to monitor company-specific services, writing scripts to get the information that each process consumes system resources, using Zabbix to capture that data for the underlying monitoring of a particular process.My main need to monitor the program is as follows:Nginx Redis MySQL Tomcat Sentinel MongoDB openfire Kafka zookeeper Twemproxy MycatFirst, write the
-dcom.sun.management.jmxremote.authenticate=false \-dcom.sun.management.jmxremote.ssl=false \-jar/tmp/notepad.jarRestarting a Java application#监控Tomcat程序Place the following jar under the/usr/local/tomcat/libCmdline-jmxclient-0.10.3.jarHead-5/usr/local/tomcat/bin/catalina.sh#!/bin/bashcatalina_opts= "-dcom.sun.management.jmxremote \-dcom.sun.management.jmxremote.p
Label:The resources used by SQL Server are dispatched by the operating system, while SQL Server implements a set of scheduling algorithms internally to manage the resources obtained from the operating system, primarily the scheduling of memory and CPU resources. A good database system must cache enough information in memory to reduce the number of times the data is read from the physical hard disk, and SQL
. Jvmms and jvmmx are displayed. jvmms sets the minimum memory usage parameters and jvmmx sets the maximum memory usage parameters. Set the values of jvmms and jvmmx, and restart the Tomcat server.
Suggestion: Move the same third-party jar files to the
abilityIt should be noted that the Startjavapollers 4. Start Zabbix-java-gatewayExecute/usr/local/zabbix/sbin/zabbix_java/startup.sh ScriptSecond, Zabbix client configuration1. Download the Catalina-jmx-remote.jar and put it in Tomcat's Lib directorywget Http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.8/bin/extras/catalina-jmx-remote.jarMV catalina-jmx-remote.jar/usr/local/
1. Performance monitoringMode 1:/usr/local/tomcat7/conf/tomcat-users.xml Add the following:role rolename="Manager-gui"/> role rolename="Manager-script"/> role rolename="manager-jmx"/> role rolename="Manager-status"/> user username="admin" password= "admin" roles=" Manager-gui "/> user username="tomcat" password="Tomcat" roles ="Manager-gui,manager-s
memory consumed are also printed.-F coercion. Use the-dump or-histo parameter when the PID is not appropriate. In this mode, the live sub-argument is invalid.-H|-HELP Printing Auxiliary Information-j Pass parameters to Jmap-initiated JVM.The Java process ID that the PID needs to be printed with the phase informationEnterprise Case: Java process consumes too much CPU
JPS gets the PID of the Java process.
Jstack PID >> java.txt Export CPU
: Sort According to CPU usage size.
T: Sorted by Time, cumulative time.
Q: Exit Top command.
M: Toggle display memory information.
T: Toggles the display of process and CPU state information.
C: Toggle display command name and full command line.
M: Sort based on the size of memory used.
W: Writes the current settings to the ~/.TOPRC file. This is the recommended
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.