From b1bc08e2686e2aa73aaf2108fdc50d9e700def38 Mon Sep 17 00:00:00 2001 From: Jerry Jacobs Date: Tue, 7 Aug 2018 20:49:18 +0200 Subject: cmd/serve: pprof cpu and memory profile dumps to disk (#4560) --- custom/conf/app.ini.sample | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'custom/conf') diff --git a/custom/conf/app.ini.sample b/custom/conf/app.ini.sample index a705981be0..682a03b8bf 100644 --- a/custom/conf/app.ini.sample +++ b/custom/conf/app.ini.sample @@ -187,6 +187,12 @@ STATIC_ROOT_PATH = APP_DATA_PATH = data ; Application level GZIP support ENABLE_GZIP = false +; Application profiling (memory and cpu) +; For "web" command it listens on localhost:6060 +; For "serve" command it dumps to disk at PPROF_DATA_PATH as (cpuprofile|memprofile)__ +ENABLE_PPROF = false +; PPROF_DATA_PATH, use an absolute path when you start gitea as service +PPROF_DATA_PATH = data/tmp/pprof ; Landing page, can be "home", "explore", or "organizations" LANDING_PAGE = home ; Enables git-lfs support. true or false, default is false. @@ -215,7 +221,7 @@ USER = root PASSWD = ; For "postgres" only, either "disable", "require" or "verify-full" SSL_MODE = disable -; For "sqlite3" and "tidb", use absolute path when you start gitea as service +; For "sqlite3" and "tidb", use an absolute path when you start gitea as service PATH = data/gitea.db ; For "sqlite3" only. Query timeout SQLITE_TIMEOUT = 500 -- cgit v1.2.3