http://blog.csdn.net/chenhaotong/article/details/51991786
1. Top command to view CPU and memory usage
Top carriage, then press 1
Discovery process PID 35163 CPU and memory usage is high
top-06:13:47 up 5:31, 1 user, load average:2.11, 2.07, 2.06tasks:189 Total, 1 running, 188 sleeping, 0 stopped, 0 zombieCpu0:22.3%us,
The system in the long run, the available memory will gradually become less, if there is no mechanism to do monitoring and regularly clean up the characters, the server will have a lot of hidden dangers, the following operations to manually check and clean up: Check the basic situation of the server to see memory usage
Sysstat is a handy tool with a multitude of system resource monitoring tools for monitoring system performance and usage. A significant portion of the tools we use on a daily basis are from the Sysstat Toolkit. It also provides a collection plan that uses CRON expressions to develop performance and activity data.The following table is a tool that is included in t
Tomcat server appears Java.lang.OutOfMemoryError:Java heap space exception
1, may be a program error, such as: The program into a dead loop
2, heap memory is too smallIn general, Java-created objects are collected by GC after they are not used for a period of timeIf the amount of data processed at the same time is large: such as larger query results or open large files, there may be a heap of
Linux traffic monitoring tool usage Summary-iftop allows you to use top in Unix-like systems to view system resources, processes, memory usage, and other information. To view the network status, you can use tools such as netstat and nmap. To view real-time network traffic and monitor TCP/IP connections, you can use ift
P-process list in the order of CPU usageM-sort the process list in the order of memory usage
During system maintenance, you may need to check the CPU usage at any time and analyze the system status based on the relevant information. In centos, you can use the top command to view CPU usage. After running the TOP Com
"Turn" original source: ? tecmint-kuldeep Sharma??? Translation Source: Linux story- cold weather ??? Welcome to share the original to Bó Lè headlines in terms of monitoring system resources, system performance, and usage activity, Sysstat is indeed a handy tool. Sysstat packages are used more or less in our everyday basic tools . It also provides a tool that can be scheduled to run with Cron to colle
Environmental description of this articleOperating system: Redhat6.8.Kernel version: 2.6.32-642.el6.x86_64.
Top of SYSTEM commandsYou can monitor the CPU and other resources of the Linux system by entering the top command directly at the command line, as shown in. 650) this.width=650; "title=" qq20170717162654.jpg "alt=" wkiol1lsdoydi1b4aaeny3tpr_i421.jpg-wh_50 "src=" https:// S4.51cto.com/wyfs02/m02/9c/20/wkiol1lsdoydi1b4aaeny3tpr_i421.jpg-wh_500x0-wm_3-wmp_4-s_4251343636.jpg "/>Press CTRL +
Cases of high CPU usage and memory usage in MySQL
Faults:At about seven o'clock, I received a complaint from the playback center that the video was playing slowly and could not be loaded for a long time. At first, he thought it was the tomcat service that went down again. View the output logs of catalina. out on the
1. Create a monitoring scriptFirst, create an empty document in. Sh format under the folder.Enter a command under the root permission of the terminal to open the. Sh file and edit it.Sudo Vim /*/*...... /**. Sh // press the I key when editing the input in Vim. After editing, Press ESC to exit the edit option. Then, enter WQ IN THE uneditable state to save and exit.
// Shell scriptPID = 'pidof processname' // The quotation mark is not a single quotatio
# extract the IP address of the server IP = 'ifconfigeth0 | grep "inetaddr" | cut-f2-d ": "| cut-f1-d" "'# Take the percentage of the current idle cpu (only integer) cpu_idle = 'top-b-n1 | grepCpu | awk' {print $5} '| cut-f1-d ". "'# Set the alarm value of idle cpu to 20%. if the current cpu usage exceeds 80% (that is, the remaining cpu usage is less than 20%), send an email to send an alarm if ($ cpu_idle
, you can also use some interactive commands to complete the functionality of other parameters. These commands are started by using shortcut keys.Space: Refresh now.P: Sort According to CPU usage size.T: Sort by time, cumulative time.Q: Exit the top command.M: Toggles display memory information.T: Toggles display of process and CPU status information.C: Toggle display command name and full command line.M: S
the current sort.==============================While the top command is in use, you can also use some interactive commands to complete the functionality of other parameters. These commands are started by using shortcut keys.Space: Refresh now.P: Sort According to CPU usage size.T: Sort by time, cumulative time.Q: Exit the top command.M: Toggles display memory information.T: Toggles display of process and C
some interactive commands to complete the functionality of other parameters. These commands are started by using shortcut keys.Space: Refresh now.P: Sort According to CPU usage size.T: Sort by time, cumulative time.Q: Exit the top command.M: Toggles display memory information.T: Toggles display of process and CPU status information.C: Toggle display command name and full command line.M: Sorts according to
, you can also use some interactive commands to complete the functionality of other parameters. These commands are started by using shortcut keys.Space: Refresh now.P: Sort According to CPU usage size.T: Sort by time, cumulative time.Q: Exit the top command.M: Toggles display memory information.T: Toggles display of process and CPU status information.C: Toggle display command name and full command line.M: S
Tags: ack c in load Java Stack Monitor Linux inter htop chargereproduced the top after the use of detailed parameters, the notes were not found, reproduced, as a reference for future use:Original address: http://blog.csdn.net/linghao00/article/details/8059244Linux top command view memory and multi-core CPU usage tell me about the multi-core CPU command mpstat-p All and sar-p all description: Sar-p all > Aaa
interactive commands to complete the functionality of other parameters. These commands are started by using shortcut keys.Space: Refresh now.P: Sort According to CPU usage size.T: Sort by time, cumulative time.Q: Exit the top command.M: Toggles display memory information.T: Toggles display of process and CPU status information.C: Toggle display command name and full command line.M: Sorts according to the s
see, the top command is a powerful tool for monitoring the system, especially for system administrators. However, it consumes a lot of system resources. The application instance can use the top command to monitor the process of a specified user. by default, the process of all users is monitored. If you want to view the situation of a specified user, press the "U" key in the terminal and enter the user name, the system will switch to the process runni
some interactive commands to complete the functionality of other parameters. These commands are started by using shortcut keys.Space: Refresh now.P: Sort According to CPU usage size.T: Sort by time, cumulative time.Q: Exit the top command.M: Toggles display memory information.T: Toggles display of process and CPU status information.C: Toggle display command name and full command line.M: Sorts according to
some interactive commands to complete the functionality of other parameters. These commands are started by using shortcut keys.Space: Refresh now.P: Sort According to CPU usage size.T: Sort by time, cumulative time.Q: Exit the top command.M: Toggles display memory information.T: Toggles display of process and CPU status information.C: Toggle display command name and full command line.M: Sorts according to
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.