add ps tips

This commit is contained in:
benoit 2016-03-15 16:20:43 +01:00
parent f0918bf18c
commit 0fd05de295
1 changed files with 6 additions and 0 deletions

View File

@ -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