summaryrefslogtreecommitdiff
path: root/doc/administration
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-04-13 03:09:42 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-04-13 03:09:42 +0000
commit01ff651394ec2df7df5ed0282c96fb8133980cb9 (patch)
treee4b0b3b6200fed4d08c356daedda5017d5fe3eb1 /doc/administration
parentcdf9ef52fe13899be29068992a9858f8b0e72457 (diff)
downloadgitlab-ce-01ff651394ec2df7df5ed0282c96fb8133980cb9.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/administration')
-rw-r--r--doc/administration/troubleshooting/linux_cheat_sheet.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/administration/troubleshooting/linux_cheat_sheet.md b/doc/administration/troubleshooting/linux_cheat_sheet.md
index a03b8d1868e..7af4219caa3 100644
--- a/doc/administration/troubleshooting/linux_cheat_sheet.md
+++ b/doc/administration/troubleshooting/linux_cheat_sheet.md
@@ -159,7 +159,7 @@ top -o %CPU
```shell
# strace a process
-strace -tt -T -f -y -s 1024 -p <pid>
+strace -tt -T -f -y -yy -s 1024 -p <pid>
# -tt print timestamps with microsecond accuracy
@@ -169,12 +169,14 @@ strace -tt -T -f -y -s 1024 -p <pid>
# -y print the path associated with file handles
+# -yy print socket and device file handle details
+
# -s max string length to print for an event
# -o output file
# run strace on all unicorn processes
-ps auwx | grep unicorn | awk '{ print " -p " $2}' | xargs strace -tt -T -f -y -s 1024 -o /tmp/unicorn.txt
+ps auwx | grep unicorn | awk '{ print " -p " $2}' | xargs strace -tt -T -f -y -yy -s 1024 -o /tmp/unicorn.txt
```
See the [strace zine](https://wizardzines.com/zines/strace/) for a quick walkthrough.