, 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
How to view machine configuration under Linux? cpu/Memory/HDDDmesgDisplays the boot information. The kernel will store the boot information in the ring buffer. If you are too late to view the information, you can use DMESG to view it. The boot information is also saved in the/var/log directory, in a file named DMESGDmesg|grep HDHard diskDmesg|grep CPUCpuDMESG|GREP procMemoryDmesg|grep RedhatOperating systemDmesg|moreMore informationUname-aOperating sy
View multi-core CPU commandsMpstat-p All and sar-p allDescription: Sar-p all > Aaa.txt redirect output to file Aaa.txtTop commandOften used to monitor Linux system conditions, such as CPU, memory usage, the programmer basically know this command, but it is strange to use it very few people, such as the top monitor view of memory value of the meaning of a lot of d
" fuquanjun@xxx.com
Fi
# chmod a+x/scripts/cpu-warning.sh
Monitor system memory using free command:
1, use the free command to view the Linux system memory usage: (in m)
Copy Code code as follows:
# free-m
Total used free shared buffers Cached
mem:3952 3414 538 0 168 484
-/+ buffers/cache:2760 1191
SWAP:8191 86 8105
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
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 CPU status in
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
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
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
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 CPU s
~/.TOPRC file. This is the recommended way to write top configuration files.As you can see, the top command is a very powerful tool for monitoring systems and is especially important for system administrators. However, its disadvantage is that it consumes a lot of system resources.Application examplesYou can use the top command to monitor a specified user, and the default is to monitor processes for all users. If you want to view the situation of the
multiple users to the system, the number of users here will also be the number of terminals;
"Load average" is the average value of the current system load. The following three values are the average number of processes 1 minute ago, 5 minutes ago, and 15 minutes ago, respectively, generally, when this value exceeds the number of CPUs, the CPU will be overloaded with the processes contained in the current system;
Line 2 (tasks ):
"59 total" indicates the total number of processes in the current
tool for monitoring the system, especially for system administrators. However, it consumes a lot of system resources.
Application InstanceThe top command can be used 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 running interface of the specified user
): Used for monitoring.
Audit BufferAudit_buf_sz): Used for the db2audit utility.
Fast Communication buffersFcm_num_buffers): Used for inter-node communication between partitions. Only applicable to partitioned instances.
Instance_memoryThe parameter specifies the amount of memory reserved for instance management. The default value isAUTOMATIC. This means that DB2 will calculate the number of instance
Q: I want to monitor the memory usage of the Linux system, what views or command-line tools are available under Linux?
Physical memory is one of the most important aspects of Linux system optimization. Naturally, Linux also provides a number of ways to monitor the use of valuable memory resources. The following list d
Q: I want to monitor the memory usage of the Linux system and what views or command-line tools are available under Linux.
Physical memory is one of the most important aspects of Linux system optimization. Naturally, Linux also provides a number of ways to monitor the use of valuable memory resources. The following list
How to correctly view the memory usage of Linux machinesBackground?? As long as the work on the Linux machine, there will basically be a need to see the memory usage, but how to look right? Previous use of the top command, there has been a misunderstanding. Why does the top command look at
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.