diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-03-22 17:33:46 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-03-22 17:33:46 +0800 |
commit | 2bdca100e37eef6a5fcaacd1cf7157352afb0777 (patch) | |
tree | 39ebe9d75fe263594e57b28bf023734f7261397f /server/src | |
parent | a59a69a0a44f93c97cd0e990c550c99b9ad61cbd (diff) | |
download | lua-language-server-2bdca100e37eef6a5fcaacd1cf7157352afb0777.zip |
降低一下上限
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/service.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/service.lua b/server/src/service.lua index f0cf6489..d8c79a8a 100644 --- a/server/src/service.lua +++ b/server/src/service.lua @@ -592,10 +592,10 @@ function mt:_testMemory() )) -- 内存过高时暴力结束服务释放内存 - if mem > 1500000 then + if mem > 1300000 then collectgarbage() mem = collectgarbage 'count' - if mem > 1500000 then + if mem > 1300000 then rpc:requestWait('window/showMessageRequest', { type = 3, message = lang.script('DEBUG_MEMORY_LEAK', '[Lua]'), |