Demand:Monitoring Top life Today, Tomcat process%CPU time accounted for more than 80% times to kill the process, and then restart the pair should be Tomcat, and record the reboot of the Tomcat, as well as the restart time of the log#!/bin/bash# Print tomcatid number #tomcatid= ' Ps-ef |grep tomcat|grep-w ' tomcat ' |grep-v Grep|awk ' {print $ {} ' tomcatid= ' JPS |grep Bootstrap|awk ' {print '} ' datetime=
Top:Top-16:41:04 up 184 days, 2 users, load average: 19.97, 18.38, 18.36Task: 584 total, 1 running, 583 sleeping, 0 stopped, 0 zombieCpu (s): 0.0% us, 0.0% sy, 41.2% ni, 58.7% id, 0.0% wa, 0.0% hi, 0.0% si, 0.0% stMem: 65923008 k total, 34622724 k used, 31300284 k free, 315684 k buffersSwap: 33030136 k total, 0 k used, 33030136 k free, 24200968 k cachedPid user pr ni virt res shr s % CPU % mem time + COMMAND28518 root 20 0 1652 m 62 m 1172 S 2014.5 0.
Cacheasbitmap = 'true' can reduce CPU usage and improve efficiency?
The reason is:
If this parameter is set to true, Flash Player uses the internal bitmap representation of the cached button. This enhances the performance of buttons that contain Complex Vector content.
For buttons with cacheasbitmap set to true, Flash Player stores a bitmap representation for the four buttons.
All vector data with cache
.-au: show more details.-aux: show all other parameters. user's itinerary au (x) output Format: user pid % CPU % mem vsz rss tty stat start time commanduser: Travel owner PID: pid % CPU: occupied CPU usage % MEM: occupied memory usage VSZ: large virtual memory occupied Small
Using the PS command in Linux, you can see which processes are running and running, whether the process is over, if the process has no zombies, which processes are consuming too many resources, and so on. PS commands are most commonly used to monitor the work of background processes.Name: PSUsage rights: All usersHow to use: PS [options] [--help]Description: Show
properly terminate him, causing the state of the zombie (Xinjiang Corpse) programStart: The time that the process was triggered to startTime: The process actually uses the CPU to runCommand: The actual instruction of the programExample: Find PID numbers related to cron and syslog services [[email protected] test6]# PS aux |Egrep ' (cron|syslog) ' root 2682 0.0 0.0 83384 2000?Sl Nov02 0:00/sbin/rsyslogd-i/v
PS commandFunction: Used to display the process dynamic information that is running on the current system.Parameters:-A: List all processes (equivalent to-e)-A: Displays all processes running at the current terminal.E: When listing programs, show each program is the user's environment variableU: Show program status in user-oriented formatx: Show all processes, not the terminal to distinguishL: Long format output-O: Control outputOutput format:User: Us
structure and express the relationship between processes.7) the ps-H tree structure is displayed, indicating the relationship between processes.8) ps-N displays all processes, except the processes under the ps command terminal.9) ps r only displays running processes10) ps d
PS commandFunction: Used to display the process dynamic information that is running on the current system.Parameters:-A: List all processes (equivalent to-e)-A: Displays all processes running at the current terminal.E: When listing programs, show each program is the user's environment variableU: Show program status in user-oriented formatx: Show all processes, not the terminal to distinguishL: Long format output-O: Control outputOutput format:User: Us
PS commandFunction: Used to display the process dynamic information that is running on the current system.Parameters:-A: List all processes (equivalent to-e)-A: Displays all processes running at the current terminal.E: When listing programs, show each program is the user's environment variableU: Show program status in user-oriented formatx: Show all processes, not the terminal to distinguishL: Long format output-O: Control outputOutput format:User: Us
device numberTStart_timeProcess start timeUUIDUIDUUserUser NameVVsizeTotal number of virtual memory (bytes)YPriorityKernel scheduling priority3. Common PS Command ParametersThe parameters described in the previous two sections may make readers feel a little scary. In fact, this is a very easy-to-use command.You need to know some of the most common command parameters.The three most commonly used parameters are u, A, and X. The following uses an exampl
The usage of the ps command in linux indicates that in linux, you can use the ps command to check the running and running statuses of processes, whether the processes are completed, whether the processes are botnets, and which processes are occupying excessive resources. and so on. ps commands are most commonly used to
Tags: Linux grab tcpdump netstat view network status PS System State free memory usage Iostat disk performanceMonitoring IO Disk Performance命令如下:iostat -x 磁盘使用iotop 磁盘使用
%util look at the health of a hard drive,
Installing Iotop[[emailprotected] ~]# yum install -y iotop
Iotop command, mainly to see the io> column, see the performance of the disk
Free to view memory
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.