occupied. Free can also add some parameters- m and- g(respectively, MB and GB units display) print memory usage, and even support- h optionPS commandviewing system processes using the PS command
[[Email protected] ~]# PS aux
There is a ps-elf command In addition to the PS aux command, but commonly used as PS aux commandPID: Indicates the ID of the
DB2 data executes SQL statements on the command line, you can use theDB2 [email protected]-VF File.sqlThis command, but in file.sql the SQL statement in this file if there are spaces after the end of the line semicolon will result in unsuccessful execution, you need to delete the end of the line, preferably in the add-comment. So the problem is solved.This articl
state of the process).STAT (Status of the process) is:D cannot be interrupted.R (run) running process (CPU is used within a time period).The S (sleep) process may be paused and will be activatedT paused process (CTRL + Z paused process)+ Foreground ProcessZ Zombie ProcessN Low-priorityMemory is locked in memory pagingS master ProcessL Multithreading ProcessPS aux usage: see if a process is running (it has been used once) to see if top is runningps au
+data
Shr
Shared memory size, in kilobytes
S
Process Status: d= non-disruptive sleep state, r= run, s= sleep, t= track/Stop, z= zombie process
%cpu
CPU time consumption percentage last updated to current
%MEM
Percentage of physical memory used by the process
time+
Total CPU time used by the process, Unit 1/100 sec
, buffer (buff) inside the memory.
Formula: Total=used + Free + buff/cache
The avaliable contains the free and Buffer/cache remaining portions.
PS command
PS aux
Static display of all processes
PS aux |grep nginx
View a process
[[emailprotected] ~]# ps aux |grep nginxroot 2757 0.0 0.0 112664 968 pts/0 R+ 20:57
PID: Process ID, used to kill a process, kill 2757
Tags: monitoring io performance FREE Command PS command View network status Linux under Grab BagMonitoring IO PerformanceIntroductionThe Iostat is primarily used to monitor the IO load on the system device, iostat the statistics from the start of the system startup when the first run, and then running Iostat displays statistics from the last time the
; Win64; x64) applewebkit/537.36 (Khtml,Like Gecko) chrome/64.0.3282.140 safari/537.36 "
1.1 Processing with awkWhere $7 is the file name, $ $ is the size. $[$7]+=$10 indicates that the same file name size accumulates. The awk array can also be understood as a Python dictionary.++B[$7] The number of files with the same name is cumulative.
[emailprotected]:/var/log/nginx# awk ‘{a[$7]+=$10;++b[$7];total+=$10}END{for(x in a)print b[x],x,a[x]}‘ access.log 1 /png 2082 /a.jpg 4
It is often necessary to monitor the running status of memcached on the server, such as the number of cache queries and hit rate. ButThe memcached-tool is written in Perl in Linux, and I have never tried whether it can be used in windows. Later I found a simple method.You can do this by using telnet.First, log on to the server, and then typeTelnet fig 11211127.0.0.1 is the server address (here it is the local machine), and 11211 is the port number bou
]} 'LISTEN 3Established 3
Tcpdump
Install Yum install-y tcpdumpGrab Bag tool: tcpdumpUsage: TCPDUMP-NNThe first n indicates the IP display, and if you do not add N, the host name will be displayed.Listening for specified NICTcpdump-nn-i eth0[Email protected] ~]# tcpdump-nn-i eth0Listening on the specified portListening to the web port[[email protected] ~]# TCPDUMP-NN Port 80Monitor NIC Eth0 Port 80[Email protected] ~]# tcpdump-nn-i eth0 Port 80Do not listen on port 22Tcpdump-nn-i E
added nDo not add nnTcpdump-nn-c 10-w 1.cap only catch 10 packets and save to 1.cap file, 1.cap is not cat'sIf you want to view 1.cap to use the commandTcpdump-r/tmp/1.capTshark needs to be installedRemember this command, check the network card capture specific information, you can clearly see what time there is what IP visited the site, access to the site of what linksTshark-n-T a-r http.request-t fields-e "Frame.time"-E "ip.src"-E "http.host"-E "Ht
:? SQL30081SQL Help (Description of SQL statement syntax)Help statementFor example, the Help SELECTSQLSTATE help (stating the status and category Code of SQL)SQLState or? Class-code41. Change the password associated with the "Management Server"Db2admin setid username Password42. Create a SAMPLE databaseDb2samplDb2sampl F: (Specify installation disk)43. Using Operating system commands! Dir44. Convert data type (CAST)SELECT EMPNO, CAST (RESUME as VARCHA
1. Connect Remote DB2 ServerGraphical Interface: Control CenterNote: The default installation DB2 service name is DB2C_DB2Port 50000 when connecting using the TCP/IP protocolCommand:Uncatalog node TestCatalog TCPIP node TEST REMOTE toone-1eb06fba5 SERVER db2c_db2 remote_instanceDB2 SYSTEM Toone-1eb06fba5 OSType WINTEST node NameTOONE-1EB06FBA5 Remote server nameDB2C_DB2 as service nameDB2 Instance Name2. St
Query DB2 database, old encounter select * from XXX with ur, curious what role of Ur (rpm)DB2, there are four isolation levels: RS,RR,CS,UR,DB2 provides these 4 different levels of protection to isolate data. Isolation level is an important part of the locking strategy, it directly affects the lock range and the duration of the lock. Two applications, even if the
When there is a recovery pending problem, no matter what I do in the control center is useless, but the command line directly to restore the OK, or command powerful
C:\USERS\ADMINISTRATOR>DB2 Rollforward DB FMS to end of logs
sql1119n cannot connect or activate the database "FMS" because the previous restoration is incomplete or still in progress.
sql
Original link: http://codingstandards.iteye.com/blog/836625 (reproduced please specify the source)Description of UseThe exit command exits the current shell and can terminate the current script execution in a shell script.Common parametersFormat: Exit nExit. Set the exit code to N. (cause the Shell to exit with a status of N.)Format: ExitExit. The exit code is unchanged, which is the exit code for the last
Linux provides a special variable $ to save the exit status code of the last executed command. For commands that need to be checked, you must view or use the $? variable immediately after it has been run. Its value becomes the exit status code of the last command executed by the shell: Date: +----echo $? 0By convention
----------------------------------common commands in your work to determine if the server status is normal-------------------------------------The top command is real-time actual server current CPU, memory, load, process and other informationFirst line:00:09:14-Current system time1days, 13:14-the system has been running for 1 days, 13 hours, 14 minutes (not restarted during this period)1 users-currently has
Linux Scripts:Scripts are typically text files, and running a script actually runs a bash process, which is responsible for reading an execution logic from the script file, and then the bash process is responsible for parsing and running the logic;Startup script:(1) # Bash/path/to/script_file(2) A permission to execute,#./path/to/script_file[Email protected] ~]# VI date.sh [[email protected] ~]# sh date.sh #第一种执行方法Thu, Sep 12:43:37 +0800[[email Protec Ted] ~]# lltotal 4-rw-r--r--1 root root (SEP
Linux View System Status commandIostatThe Iostat command shows the storage subsystem in detail. You typically use Iostat to monitor the overall health of the storage subsystem, and to detect slow input/output problems before the user notices that the server is running slowly. Believe me, you should find these problems before users find them!Meminfo and freeMeminfo shows you the memory situation in detail. Y
Problems encountered when using Python to perform ant build:When using Os.system () to invoke ant build, the command line always exits normally, regardless of build success or failure (build Successful/build FAILED)To resolve the issue:The first thought is to get the return value of the ant command, depending on the return value to determine the command line exit
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.