提交 20f7ce85 作者: Steven Allen

debug: document the debug script

fixes #6457
上级 2198bf37
...@@ -15,6 +15,11 @@ When you see ipfs doing something (using lots of CPU, memory, or otherwise ...@@ -15,6 +15,11 @@ When you see ipfs doing something (using lots of CPU, memory, or otherwise
being weird), the first thing you want to do is gather all the relevant being weird), the first thing you want to do is gather all the relevant
profiling information. profiling information.
There's a script (`bin/collect-profiles.sh`) that will do this for you and
bundle the results up into a tarball, ready to be attached to a bug report.
If you feel intrepid, you can dump this information and investigate it yourself:
- goroutine dump - goroutine dump
- `curl localhost:5001/debug/pprof/goroutine\?debug=2 > ipfs.stacks` - `curl localhost:5001/debug/pprof/goroutine\?debug=2 > ipfs.stacks`
- 30 second cpu profile - 30 second cpu profile
...@@ -26,10 +31,6 @@ profiling information. ...@@ -26,10 +31,6 @@ profiling information.
- system information - system information
- `ipfs diag sys > ipfs.sysinfo` - `ipfs diag sys > ipfs.sysinfo`
Bundle all that up and include a copy of the ipfs binary that you are running
(having the exact same binary is important, it contains debug info).
You can investigate yourself if you feel intrepid:
### Analyzing the stack dump ### Analyzing the stack dump
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论