the monitoring information and rush to their homes. To put it bluntly, this method is a permanent cure.
Later, a buddy said to check the resource usage:
Detected during monitoring, wait for a period of time
Please remember this command: PS-Ef | grep Java
[MECs @ SC _boss01] JBoss/Server/engine> PS-Ef | grep Java602 31846 1 0 2009? 00:44:30/opt/aspire/product
Eden area that has been used for idle usageCapacity = 5357305856 (5109.125 MB)Used = 1647437208 (1571.118553161621 MB)Free = 3709868648 (3538.006446838379 MB)30.751225565270396% usedFrom space: # one of them has VOR (s? R? VA? V? R) the total memory distribution in the zone has used the idle usage ratio.Capacity = 5898240 (5.625 MB)Used = 2375696 (2.2656402587890625 MB)Free = 3522544 (3.3593597412109375 MB
This article mainly introduces some examples of a memory monitoring program using the Flask framework of Python combined with MySQL, and can display the results in a simple graphical way, for more information about how to monitor memory usage, see the following demo program.
I. create databases and tables
Create a fal
The shell monitors cpu,memory,load average, logs to log, and notifies the administrator when the load is under pressure.Implementation principle:1. Get the value of Cpu,memory,load average2. Determine if the value exceeds the custom range, for example (Cpu>90%,memory3. If the value exceeds the range, send an email to notify the administrator. It is sent at a time interval and is sent only once per hour.4. W
. Environmental Preparation and DescriptionWin7Jdk1.6.0_31Tomcat6Linux CentOSLocal VISUALVM to connect to the remote JVM, the configuration needs to be made, and VISUALVM is mainly remotely connected through JMX and jstatd two ways.JMX connections can look at System information, CPU usage, how many timelines the thread is on, manually perform garbage collection, and more at the system-level level.The jstatd connection method provides JVM
This article mainly introduces some examples of a memory monitoring program using the Flask framework of Python combined with MySQL, and can display the results in a simple graphical way, for more information about how to monitor memory usage, see the following demo program.
I. create databases and tables
Create a fal
This article mainly introduces some examples of a memory monitoring program using the Flask framework of Python combined with MySQL, and can display the results in a simple graphical way, for more information about how to monitor memory usage, see the following demo program.
I. create databases and tables
Create a fal
From: http://blog.sina.com.cn/s/blog_4f9e8fa70100g4o5.html
Keywords: Tomcat Performance Tuning middleware server
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 Server 2008 ):
Run the J2EE project on TomcatCodeMemory overflow ofte
then compresses and collates the memory space.
Reference site: http://blog.csdn.net/lifetragedy/article/details/7708724
2, restart Tomcat after modifying the parameters to see if the parameters are valid
Jmap-heap javapid View JVM Memory Allocations
Jstat-gcutil Javapid 1000 30 View JVM Memory Recycle
The above mod
space stands for permanent generation space, which is the permanent storage area of the memory,This memory is mainly used by JVM to store class and meta information. When the class is loaded, it will be placed in permgen space,Unlike the heap region of the storage instance, GC (garbage collection) does notPermgen space is cleaned up. Therefore, if your application contains many classes, the permgen space e
Log tools for monitoring CPU and memory
Linux Tools:
Download Address: Get_cpu_mem_info_sh.rar
How to use:
Download the file and upload it to the/tmp directory after decompression.
Run CD switch to/tmp directory.
Perform:
Nohup Bash get_cpu_mem_info.sh
The tool generates a log file in the/tmp directory that records the CPU and memory
Tomcat itself is a good server container. It is free of charge and powerful. It is quietly supported by many powerful companies and organizations behind it, creating a position that can compete with Weblogic and other charged containers, however, Tomcat still has some defects.
At the beginning of Tomcat's design, considering the performance of the customer's servers and preventing virtual
First, network monitoring tools
1. Linux various ways to view network card traffic: http://jasonyong.blog.51cto.com/47753/174197
2. NetPerf: Network Throughput/Latency: Http://www.ibm.com/developerworks/cn/linux/l-netperf/index.html?ca=drs
3. netstat:http://www.cnblogs.com/ggjucheng/archive/2012/01/08/2316661.html
Second, disk monitoring tools
1. Linux disk read and write performance
Recently, a project was designed to obtain information about the cpu usage and so on. At first, I thought it was necessary to use a dynamic link library, but later I found that I could do the following without calling jni, this saves a lot of time for reading new technologies...
In Java, you can obtain information such as the total physical memory, the remaining physical
number, you can use JPS to get this ID number.The output is too much, not listed here, you can try this command yourself.Jstack of JVM Monitoring tools (unique under Linux)You can observe the current status of all threads in the JVM and the current state of the threadjstack2083The output reads as follows:The jmap of the JVM monitoring tools (Linux-specific, also a very common command)Observe the physical
Original: http://blog.csdn.net/timchen525/article/details/76474017Problem Scenario:Develop the shell script to determine the size of the system's remaining memory, if less than 100MB, the message to the system administrator, and the script into the system scheduled tasks, that is, every 3 minutes to perform a check.In two steps:First step: scriptingThe script memory_mon.sh is as follows:[Plain]View PlainCopy
#!/bin/bash
Freemem= ' Free-m
Article Title: Use mtrace in Linux for memory monitoring. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, some basic categories such as embedded systems and open-source systems may cause memory overflow and other problems when you write complex programs with many pointers. Debugging i
In Linux, mtrace is used for memory monitoring-Linux general technology-Linux programming and kernel information. The following is a detailed description. You may encounter problems such as memory overflow when writing complex programs with many pointers. Debugging is also quite tiring. In fact, there is a tool in Linux that can be used for debugging. This is Mtr
preparation and descriptionWin7Jdk1.6.0_31Tomcat6Linux CentOSLocal VISUALVM to connect to a remote JVM, which requires a related configuration, VISUALVM is connected remotely via JMX and JSTATD in two different ways.A JMX connection can look at System information, CPU usage, how many times the thread is threaded, manually perform garbage collection, and more at the system level.The jstatd connection can provide JVM
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.