add ps tips
This commit is contained in:
parent
f0918bf18c
commit
0fd05de295
1 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
```ps``` with long user fields (here 20).
|
||||
|
||||
```
|
||||
ps axo user:20,pid,pcpu,pmem,vsz,rss,tty,stat,start,time,comm
|
||||
```
|
||||
|
||||
WTF is happening in apache (or other)? Let's strace all apache processes.
|
||||
```
|
||||
# strace -p $(ps auwwwx | grep apache | tr -s '\t' ' ' | cut -d' ' -f2 | tr '\n' ' ' | sed 's/ / -p /g') -p 9999
|
||||
|
|
Loading…
Reference in a new issue