diff options
author | sumneko <sumneko@hotmail.com> | 2019-04-12 15:30:28 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-04-12 15:30:28 +0800 |
commit | 9297dd189945e8019c4598ad3eb082059ab4a3e7 (patch) | |
tree | 80ad977e95d5af0068db23d2b8016ba6cb444c7e /server/main.lua | |
parent | 2d0a488eb5a871d6f70b3c6288c9c650b6689655 (diff) | |
download | lua-language-server-9297dd189945e8019c4598ad3eb082059ab4a3e7.zip |
统计并回收子线程的内存
Diffstat (limited to 'server/main.lua')
-rw-r--r-- | server/main.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/main.lua b/server/main.lua index dd0c53d3..ac7860c5 100644 --- a/server/main.lua +++ b/server/main.lua @@ -8,6 +8,7 @@ package.path = (ROOT / 'src' / '?.lua'):string() --collectgarbage('generational') collectgarbage("setpause", 100) +collectgarbage("setstepmul", 1000) log = require 'log' log.init(ROOT, ROOT / 'log' / 'service.log') @@ -21,7 +22,7 @@ local function tryDebugger() log.info('Debugger startup, listen port: 11411') end -pcall(tryDebugger) +--pcall(tryDebugger) require 'utility' require 'global_protect' |