summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-03-22 17:33:46 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-03-22 17:33:46 +0800
commit2bdca100e37eef6a5fcaacd1cf7157352afb0777 (patch)
tree39ebe9d75fe263594e57b28bf023734f7261397f /server
parenta59a69a0a44f93c97cd0e990c550c99b9ad61cbd (diff)
downloadlua-language-server-2bdca100e37eef6a5fcaacd1cf7157352afb0777.zip
降低一下上限
Diffstat (limited to 'server')
-rw-r--r--server/src/service.lua4
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]'),