Commit 9affa400 authored by Lei Li's avatar Lei Li
Browse files

fix: mem为0时内存不设限

parent 3651ccc2
...@@ -124,7 +124,7 @@ func (mgr *PluginProcessMgr) detection() { ...@@ -124,7 +124,7 @@ func (mgr *PluginProcessMgr) detection() {
l.Infof("plugin process %s memory rss: %d", conf.Name, rss) l.Infof("plugin process %s memory rss: %d", conf.Name, rss)
// 插件进程内存rss达到限制,重启 // 插件进程内存rss达到限制,重启
if rss > conf.Mem { if conf.Mem != 0 && rss > conf.Mem {
l.Warn("plugin process %s memory rss(%d) reach limit(%d), restart", conf.Name, rss, conf.Mem) l.Warn("plugin process %s memory rss(%d) reach limit(%d), restart", conf.Name, rss, conf.Mem)
p.shutdown() p.shutdown()
mgr.registerProcess(conf) mgr.registerProcess(conf)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment