Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Lei Li
pluginx
Commits
9affa400
Commit
9affa400
authored
Oct 17, 2024
by
Lei Li
Browse files
fix: mem为0时内存不设限
parent
3651ccc2
Changes
1
Show whitespace changes
Inline
Side-by-side
pluginmgr/plugin_proc_mgr.go
View file @
9affa400
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment