Reprint please be sure to indicate the source: Jiq Technical Blog-JiyichinIntroductionThis article focuses on some common virtual machine memory monitoring means, as well as the JVM runtime data area each part of the memory overflow occurrence and corresponding solution, overall, is a general summary, involving relatively not very deep, the purpose is to let ones
DescriptionThe work consists of two parts of the monitoring side (123) and the monitored end (iv)One, add script in Nrpe.cfgAdd Command index in NRPE.CFGCOMMAND[CHECK_USED_MEM]=/USR/LOCAL/NAGIOS/LIBEXEC/CHECK_USED_MEM.SH 80 90Description: Actual memory usage exceeds 80% warning; more than 90% critical warningsSecond, add the specific scriptReference Script check_
/home/tomcat/tomcat8_1/bin/catalina.sh +97
Insert the following code
Java_opts= "-DJAVA.AWT.HEADLESS=TRUE?-DFILE.ENCODING=UTF-8?-SERVER?-XMS800M?-XMX800M?-XX:NEWSIZE=400M?-XX: maxnewsize=400m?-xx:permsize=400m?-xx:maxpermsize=400m "
Server: Be sure to act as the first parameter in multiple CPU good performance when
-xms : initial heap Memory Heap size, minimum
(OutOfMemoryError: PermGen space) occurs );-When the memory configured in-Xmx +-XX: MaxPermSize exceeds the physical memory available in the system, JVM startup fails;JVM memory Exception error
Thanks for reference: http://blog.csdn.net/thunder0709/article/details/16855195
OutOfMemoryError: Java heap space
Memory ov
four options in total, as shown below:
Click the monitoring item to connect to the system. The ERROR message "RRDTool Says: ERROR: invalid y-grid format" is displayed,
Solution:
Connect to * Edit Graph Template --> Tomcat-Connection Rate --> Unit Grid Value (-- unit/-- y-grid) in the upper-right corner. The default Value is 1, remove and change it to 0.
Similarly, you can leave the 1048576 value blank
Solve the memory overflow problem ---- Tomcat parameter settings, ---- tomcat parameter settings
The default parameters are not suitable for the production environment, so you need to modify some parameters.
1. Modify the memory parameters at startup and specify the JVM Time Zone (eight hours earlier than windows serve
JProfiler monitoring TomcatIntroductionJProfiler is a full-featured Java profiling tool (profiler) dedicated to analyzing J2SE and J2EE applications.JProfiler is a commercial-authorized Java profiling tool developed for Java EE and Java SE applications by J Technology Co., Ltd. It allows two memory profiles to evaluate memory
No matter how careful it is, it is impossible to avoid bad code altogether, and tools are needed to help us check if there is a memory leak in the code. The DDMS in Android tools comes with a very good memory monitoring tool heap (here I use the Eclipse ADT Plugin, and in the case of a real machine, like in the emulator). The steps to use the heap to monitor the
During the past two days, colleagues on the site discovered that the system's tomcat would be suspended due to memory overflow. Colleagues at the scene could not find the problem at the moment. The last trick was to write a script to monitor it.
1. Environment
Operating System: centos 4.8
JDK version: j2sdk1.4.2
Tomcat version:
In the%jboss_home%/bin/run.sh file
java_opts= "$JAVA _opts-dprogram.name= $PROGNAME"
Modified to:
java_opts= "$JAVA _opts-dprogram.name= $PROGNAME-dcom.sun.management.jmxremote.port=9999- Dcom.sun.management.jmxremote.authenticate=false-dcom.sun.management.jmxremote.ssl=false "
#-djava.rmi.server.hostname=192.168.2.2 #this must is added for TOMACAT6
For Tomcat ... find #Execut the requested Command in catalina.sh file.
Remote
Lambdaprobe, designed specifically for Tomcat monitoring, explains its usage here:
1 Download:
Http://www.lambdaprobe.org/downloads/1.7/probe.1.7b.zip
2 decompression, put the Probe.war under the WebApps of Tomcat
3 Set the user as follows, in Tomcat_user.xml
Vi/usr/local/tomcat
Jconsole can monitor the memory usage of Java processes on the remote host. This article explains how to use Jconsole to monitor WebLogic and Tomcat on a remote host.First, the environment1. Native Environment: Windows Xp+jconsole (jdk1.6)2. Remote Environment 1:sunos (Solaris, jdk1.6) +weblogic3, Remote Environment 2:redhat (jdk1.6) +tomcatThis article will desc
Linux monitoring (OS, MySQL, Tomcat, Apache), tomcatapache
My Opinion on gradually moving away from the development position has been approved by the boss. My next major job is "O M + database management". I would like to thank Jie Minmin and Xiao Ma for accepting my harassment and then harassing them. I will also harass Ye Dong, Mr. Xiaogang, zhishen, and pig. Thank you. At the same time, I would like to
, "bytessent")); Store.storeinfo (ServerInfo); }when Server.xml is configured with custom listener, launch Tomcat, you can see the collected data, such as (here for testing, the data collected directly to write the log):Serverinfo:maxthreads:200,currentthreadcount:16,busythreadcount:6,keepalivecount:0,maxtime:6166,requestcount : 57,errorcount:0,processtime:10380,bytesrec:0,bytessend:238874Of course, there are many other information that c
Tags: managing file LAN port mappings default input enabled volume typeObjectiveA few years ago since the house of several cats often problems, because there is no effective monitoring and warning means, so that the problem arises or a long time will be notified. One o'clock in the morning this pot can no one want to back, to this end based on the current situation to build the following a set of monitoring
Javamelody, a good tool for monitoring applications, has been introduced before, and has complete functions.Slightly smaller, specifically designed for Tomcat. The following describes the usage:
1 download:Http://www.lambdaprobe.org/downloads/1.7/probe.1.7b.zip2. After decompression, put probe. War under Tomcat's webapps and set server. xmlContext3. Set the use
1. Create a folder named monitor in the webapps folder.
2 monitor to create a WEB-INF and SRC
3 New web. xml and classes in the WEB-INF
4. Web. XML content
5. The servlet accepted by write processing is shown below. As follows:
Import Java. io. ioexception;
If it is a request sent by curl, the value of the CPU usage is obtained and written to the cpu.txt file. If the user accesses this servlet through a browser, http: // localhost: 8080/monitor/
Zabbix monitoring TomcatFirst, EnvironmentTwo servers, one is zabbix_java_server , the other tomcat-serverFiles needed:Catalina-jmx-remote.jar Cmdline-jmxclient-0.10.3.jarSecond, tomcat-server controlled end configuration # Cd/usr/java/apache-tomcat-8.0.30/bin# vim catalina.shAdd the following content:650) this.width=
Label: style blog HTTP color Io file data sp By using the Tomcat monitor function of jmeter, you can send a GET request to the Tomcat status page to obtain resource usage information and convert it to an intuitive image method, you can monitor the resource usage of the server. However, to use the
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.