Last active
June 26, 2018 14:48
-
-
Save GitSumito/f31756b58f2fba20e24ed93550bfc4c1 to your computer and use it in GitHub Desktop.
Linuxトラブルシュートと原因の特定 ref: https://qiita.com/S-T/items/2b48ce0aecb8788617d2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dstat -tlmnd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ps -ef | |
ps aux |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@cent ~]# ps -ef | |
UID PID PPID C STIME TTY TIME CMD | |
root 25172 25063 20 20:34 pts/1 00:00:01 dd if=/dev/zero of=1G.dummy bs=1 | |
root 25174 25159 0 20:34 pts/0 00:00:00 ps -ef | |
[root@cent ~]# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@cent ~]# ps aux | |
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND | |
root 25180 16.3 0.1 108984 1668 pts/1 R+ 20:37 0:06 dd if=/dev/zero of=1G.dummy bs=1M count=10000 | |
root 25189 0.0 0.0 112676 976 pts/0 R+ 20:38 0:00 grep -E --color=auto dd|RSS | |
[root@cent ~]# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@558aa0d3fa66:/# ps axwf | |
PID TTY STAT TIME COMMAND | |
1 pts/0 Ss 0:00 /usr/bin/python3 -u /sbin/my_init -- bash -l | |
10 pts/0 S 0:00 /usr/sbin/syslog-ng --pidfile /var/run/syslog-ng.pid -F --no-caps | |
16 pts/0 S 0:00 /usr/bin/runsvdir -P /etc/service | |
18 ? Ss 0:00 \_ runsv cron | |
20 ? S 0:00 | \_ /usr/sbin/cron -f | |
19 ? Ss 0:00 \_ runsv sshd | |
17 pts/0 S 0:00 bash -l | |
32 pts/0 R+ 0:00 \_ ps axwf | |
root@558aa0d3fa66:/# | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
netstat -an |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ps aux | awk '{ if(NR>1){p[$1] += $3; n[$1]++} }END{for(i in p) print p[i], n[i], i}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ps aux | awk '{ if(NR>1){p[$1] += $4; n[$1]++} }END{for(i in p) print p[i], n[i], i}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment