aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/doc/help
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2022-07-24 01:33:55 +0800
committerGitHub <noreply@github.com>2022-07-24 01:33:55 +0800
commit91f1c285a10f32f7738dc408d22d3031c4af8500 (patch)
tree2b0692ee4e785e33db835cea37a9a785a9e36b5c /docs/content/doc/help
parent3310dd1d197495fbfa2d7ee490e19e6d08e1d30f (diff)
downloadgitea-91f1c285a10f32f7738dc408d22d3031c4af8500.tar.gz
gitea-91f1c285a10f32f7738dc408d22d3031c4af8500.zip
Improve pprof doc (#20463)
Diffstat (limited to 'docs/content/doc/help')
-rw-r--r--docs/content/doc/help/seek-help.en-us.md7
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/content/doc/help/seek-help.en-us.md b/docs/content/doc/help/seek-help.en-us.md
index 3ee160f431..f1a93eacea 100644
--- a/docs/content/doc/help/seek-help.en-us.md
+++ b/docs/content/doc/help/seek-help.en-us.md
@@ -44,12 +44,13 @@ menu:
* This will greatly improve the chance that the root of the issue can be quickly discovered and resolved.
5. If you meet slow/hanging/deadlock problems, please report the stack trace when the problem occurs:
1. Enable pprof in `app.ini` and restart Gitea
- ```
+ ```ini
[server]
ENABLE_PPROF = true
```
- 2. Trigger the bug, when Gitea gets stuck, use curl or browser to visit: `http://127.0.0.1:6060/debug/pprof/goroutine?debug=1` (IP is `127.0.0.1` and port is `6060`)
- 3. Report the output (the stack trace doesn't contain sensitive data)
+ 2. Trigger the bug, when Gitea gets stuck, use curl or browser to visit: `http://127.0.0.1:6060/debug/pprof/goroutine?debug=1` (IP must be `127.0.0.1` and port must be `6060`).
+ 3. If you are using Docker, please use `docker exec -it <container-name> curl "http://127.0.0.1:6060/debug/pprof/goroutine?debug=1"`.
+ 4. Report the output (the stack trace doesn't contain sensitive data)
## Bugs