Nicstat is a powerful tool for monitoring network IO 1. View network card information 2. Check the network card interval 2 seconds, 2 times
Time column: Represents the response times for the current sample.
Lo and eth0: the NIC name.
RKB/S: The number of kilobytes per second received.
WKB/S: The number of kilobytes written per second.
RPK/S: The number of packets received per se
location.Stdout_logfile_maxbytes: When the standard output log file is reached, it is automatically rotated, in kilobytes, MB, GB. If set to 0, it means that the log file size is not limitedStdout_logfile_backups: The number of standard output log rotation backups, default is 10, if set to 0, do not back upStdout_capture_maxbytes: When the process is in stderr capture mode, the maximum bytes value of the FIFO queue can be written in
, but there are also security issues.
Forbidden Method:
Apache, will be access.conf in the "Options includes execcgi" This line of code deleted;
In IIS, to disable the #exec command, you can modify the SSIExecDisable metabase;
#config
Function: Specifies the format of the error message, date, and file size returned to the client browser.
Grammar:
Parameters:
ErrMsg Custom SSI Executes the error message, which can be any way you like.
SIZEFMT file size display, default to
Purpose: insert the output of an external program to the page. The input of a CGI program or a general application can be inserted, depending on whether the parameter is cmd or CGI.
Syntax:
Parameters:
CMD common applicationCGI script program
Example:
Note: As shown in the preceding example, this command is quite convenient, but there are also security problems.
Method prohibited:
Apache: Delete the "options except des execcgi" line of code in access. conf;To disable the # EXEC command in IIS
= parameters with-xmanagement (-xmanagement: class =, classpath =) You can specify a management class and its classpath. this option loads the class and causes its empty constructor to be called early in JVM startup. from the constructor, a new thread is then started, from which your management client is run.Bea jrockit Management Console-XMSSets the initial size of the heap. you shoshould set the initial heap size (-XMS) to the same size as the maximum heap size. this value can be specified in
1 TB = 1024 GB 1 GB = 1024 MB 1 MB = 1024kb 1kb = 1024 byte note: byte means B, that is, byte KB is a kilobytes of MB, that is, GB is a Gigabit, that is, a gigabit. Generally, they can be viewed as a kilobytes of data, the accuracy is that 1024 is the 10th power of 2. In the unit of storage capacity, bytes are the most basic unit, that is, what we usually call B (bytes). It has several expansion units, name
is restarted every two hours.● 50 7 ***/sbin/service sshd start means to enable the ssh service at every day● 50 22 ***/sbin/service sshd stop means to close the ssh service at every day● 0 0 ** fsck/home check/home disk on the 1st and 15th of each month● 1 ***/home/bruce/backup: Execute the file/home/bruce/backup at the first point of every hour.● 00 03 ** 1-5 find/home "*. xxx "-mtime + 4-exec rm {}\; every Monday to Friday three o'clock, in the directory/home, find the file name *. xxx file,
Time Format controller:
HH24: MI: SS AM
HH12: MI: SS PM
"" Is used to control the format of special characters.
SELECT TO_CHAR (SYSDATE, 'fmyyyy "year" mm "month" dd "day" ') from dual;
DDSPTH
~~
DD is the format controller.
TH is the ordinal word, which converts a date into an English ordinal word spelling.
SP is a base number word that converts a date into a base number spelling in English.
TO_CHAR (NUM [, 'format _ model' [, nlsparams]) to convert numbers
Convert the NUMBER type parameter NU
0.00 0.00 0.00 0.00 0.00 0.0006:19:49 eth0 0.02 0.12 0.33 0.33 66.00 354.0 0.00 0.00Time column: the response Time of the current sample.Lo and eth0: Nic name.RKB/s: Number of kilobytes received per second.WKB/s: Number of kilobytes written per second.RPk/s: the number of packets received per second.WPk/s: number of data packets written per second.RAvs: Average size of
having to write to the swap area.The content shown below isOrdinal column name meaning apid process IDB PPID Parent Process Idcruserreal User ide of the usernamedUID process owner USER the user name of the process owner fgroup the group name of the process owner g TTY the terminal name of the startup process. Processes that are not started from the terminal are displayed as ?hPR priority i The ninice value. Negative values indicate high priority, positive values indicate low priority jp last
owner
5
USER
User name of the process owner
6
GROUP
Group Name of Process owner
7
Tty
The terminal name of the startup process. A process that is not started from the terminal is displayed as?
8
PR
Priority level
9
NI
Nice value. Negative values indicate high priority, positive number indicates low priority
10
P
Last CPU used, only meaningful in multi-C
Specifies the process number displayTop-n 3 cycles displayed, updated to show 3 times after stopThe following is a description of the result information for top:PID Process IDPPID Parent Process IDRuser Real User NameUser ID of the UID process ownerUsername of user Process OwnerGroup Process Owner's namePR-PriorityNI nice value. Negative values indicate high priority, positive values indicate low priority%cpu percentage of CPU time that was last updated to currentThe total CPU time, in seconds,
Performance analysisVmstatVirtual Memory StatisticsUsage
Usage:
Vmstat [Options] [delay [count]]
Options:
-A,--active active/inactive memory
-F,--forks number of forks since boot
-M,--slabs Slabinfo
-N,--one-header do not redisplay header
-S,--stats event counter statistics
-D,--disk disk statistics
-D,--disk-sum summarize disk statistics
-P,--partition
-S,--unit
-W,--wide wide output
-T,--timestamp show timestamp
-H,--help display this help and exit
-V,
Performance AnalysisVmstatVirtual Memory StatisticsUsage
Usage:
Vmstat [Options] [delay [count]]
Options:
-A,--active active/inactive memory
-F,--forks number of forks since boot
-M,--slabs Slabinfo
-N,--one-header do not redisplay header
-S,--stats event counter statistics
-D,--disk disk statistics
-D,--disk-sum summarize disk statistics
-P,--partition
-S,--unit
-W,--wide wide output
-T,--timestamp show timestamp
-H,--help display this help and exit
-V,
:1913084133835.000.00157202841571689696.26 mmmm15:08:201308435807.000.00158635041584975697.07 mmmm15:0 8:211308419273.870.00159490401579294496.72 MMMMThe output of the above columns has the following meanings:MINFLT/S: Number of page faults per second (minor page faults), the number of times page faults means that the virtual memory address is mapped to the physical memory address generated by the page fault number majflt/s: Number of main faults per second (Major page faults), When the virtu
activity. He is a statistical analysis of the overall situation of the system, and the disadvantage is that a process cannot be analyzed in depth. Usually use Vmstat 5 5 (which means to generate data every 5 seconds and generate 5 data) command tests. Will get a summary of the data he can reflect the real system situation.#vmstat 5 5procs-----------Memory-------------Swap-------io------System------CPU----R b swpd free buff cache si so bi bo in CS US sy ID WA1 0 62792 3460 9116 88092 6 30 189 89
the overall situation of the system statistics, the disadvantage is that a process can not be in-depth analysis. Typically, Vmstat 5 5 (for 5 sampling in 5 seconds) is used to test the command. Will get a summary of the data he can reflect the real system situation.#vmstat 5 5procs-----------Memory-------------Swap-------io------System------CPU----R b swpd free buff cache si so bi bo in CS US sy ID WA1 0 62792 3460 9116 88092 6 30 189 89 1061 569 17 28-54 20 0 62792 3400, 9124 88092 0 00 14 884
ownerPR-----Priority of processesNI------Nice value, negative indicates higher priority, positive values indicate low priorityVirt---The total amount of virtual memory used by the process in kilobytes. of which Virt=swap RESThe size, in kilobytes, of the physical memory used by the RES----process, which is not swapped out. Res=code DATASHR---The size, in kilobytes
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.