Difference between revisions of "Linux"
Jump to navigation
Jump to search
(Created page with '==Finding what process is bound to a port== netstat -tlnp | grep 8080 last column is the pid.') |
|||
Line 3: | Line 3: | ||
last column is the pid. | last column is the pid. | ||
+ | |||
+ | ==Show swap usage== | ||
+ | <pre> | ||
+ | [root@dsdwsprddb02 ~]# ls -al /var/log/sa/ | grep "Jan 20" | ||
+ | -rw-r--r-- 1 root root 303696 Jan 20 14:20 sa20 | ||
+ | [root@dsdwsprddb02 ~]# sar -W -f /var/log/sa/sa20 | ||
+ | Linux 2.6.18-274.el5 (dsdwsprddb02.traderonline.com) 01/20/2012 | ||
+ | |||
+ | 12:00:01 AM pswpin/s pswpout/s | ||
+ | 12:10:01 AM 22.21 0.00 | ||
+ | 12:20:01 AM 2.28 0.00 | ||
+ | 12:30:01 AM 0.30 0.00 | ||
+ | 12:40:01 AM 0.33 0.00 | ||
+ | 12:50:01 AM 3.62 0.00 | ||
+ | 01:00:01 AM 0.40 0.00 | ||
+ | 01:10:01 AM 0.00 0.00 | ||
+ | 01:20:01 AM 0.11 0.00 | ||
+ | 01:30:01 AM 0.35 0.00 | ||
+ | ... |
Revision as of 11:27, 20 January 2012
Finding what process is bound to a port
netstat -tlnp | grep 8080
last column is the pid.
Show swap usage
[root@dsdwsprddb02 ~]# ls -al /var/log/sa/ | grep "Jan 20" -rw-r--r-- 1 root root 303696 Jan 20 14:20 sa20 [root@dsdwsprddb02 ~]# sar -W -f /var/log/sa/sa20 Linux 2.6.18-274.el5 (dsdwsprddb02.traderonline.com) 01/20/2012 12:00:01 AM pswpin/s pswpout/s 12:10:01 AM 22.21 0.00 12:20:01 AM 2.28 0.00 12:30:01 AM 0.30 0.00 12:40:01 AM 0.33 0.00 12:50:01 AM 3.62 0.00 01:00:01 AM 0.40 0.00 01:10:01 AM 0.00 0.00 01:20:01 AM 0.11 0.00 01:30:01 AM 0.35 0.00 ...