You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* giteaofficial/main:
Fix Ruby package parsing by removed unused email field (go-gitea#20470)
[skip ci] Updated translations via Crowdin
Add repository condition for issue count (go-gitea#20454)
Prepend commit message to template content (go-gitea#20429)
Improve pprof doc (go-gitea#20463)
Improve code diff highlight, fix incorrect rendered diff result (go-gitea#19958)
Add Cache-Control header to html and api responses, add no-transform (go-gitea#20432)
[skip ci] Updated translations via Crowdin
Allow non-semver packages in the Conan package registry (go-gitea#20412)
Use body text color in repository files table links (go-gitea#20386)
Correct code block in installation docs for Snap (go-gitea#20440)
Downgrade golangci-lint to 1.47.0 (go-gitea#20445)
Add eslint-plugin-sonarjs (go-gitea#20431)
Fix: Actor is required to get user repositories (go-gitea#20443)
Add "X-Gitea-Object-Type" header for GET `/raw/` & `/media/` API (go-gitea#20438)
Simplify visibility checks (go-gitea#20406)
// The pprof server is for debug purpose only, it shouldn't be exposed on public network. At the moment it's not worth to introduce a configurable option for it.
151
152
log.Info("Starting pprof server on localhost:6060")
Copy file name to clipboardExpand all lines: docs/content/doc/advanced/config-cheat-sheet.en-us.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -300,7 +300,7 @@ The following configuration set `Content-Type: application/vnd.android.package-a
300
300
-`APP_DATA_PATH`: **data** (**/data/gitea** on docker): Default path for application data.
301
301
-`STATIC_CACHE_TIME`: **6h**: Web browser cache time for static resources on `custom/`, `public/` and all uploaded avatars. Note that this cache is disabled when `RUN_MODE` is "dev".
-`ENABLE_PPROF`: **false**: Application profiling (memory and cpu). For "web" command it listens on localhost:6060. For "serv" command it dumps to disk at `PPROF_DATA_PATH` as `(cpuprofile|memprofile)_<username>_<temporary id>`
303
+
-`ENABLE_PPROF`: **false**: Application profiling (memory and cpu). For "web" command it listens on `localhost:6060`. For "serv" command it dumps to disk at `PPROF_DATA_PATH` as `(cpuprofile|memprofile)_<username>_<temporary id>`
304
304
-`PPROF_DATA_PATH`: **data/tmp/pprof**: `PPROF_DATA_PATH`, use an absolute path when you start Gitea as service
305
305
-`LANDING_PAGE`: **home**: Landing page for unauthenticated users \[home, explore, organizations, login, **custom**\]. Where custom would instead be any URL such as "/org/repo" or even `https://anotherwebsite.com`
Copy file name to clipboardExpand all lines: docs/content/doc/help/seek-help.en-us.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,12 +44,13 @@ menu:
44
44
* This will greatly improve the chance that the root of the issue can be quickly discovered and resolved.
45
45
5. If you meet slow/hanging/deadlock problems, please report the stack trace when the problem occurs:
46
46
1. Enable pprof in `app.ini` and restart Gitea
47
-
```
47
+
```ini
48
48
[server]
49
49
ENABLE_PPROF = true
50
50
```
51
-
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`)
52
-
3. Report the output (the stack trace doesn't contain sensitive data)
51
+
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`).
52
+
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"`.
53
+
4. Report the output (the stack trace doesn't contain sensitive data)
0 commit comments