You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I believe I've found a bug in memmon plugin.
For a program argument in memmon call, it's said that it's possible to specify group name to avoid ambiguity, with the format group_name:program_name. However, the documentation placed in the code suggests otherwise - process_name:group_name. At last I figured out that the first variant is the correct one.
When I tried to use memmon plugin for my program, I noticed that the following exception had been emmitted to the eventlistener log:
Checking programs app:backend-0=83886080
RSS of app:backend-0 is 79663104
Traceback (most recent call last):
File "/home/vagrant/test-superlance/bin/memmon", line 11, in <module>
sys.exit(main())
File "/home/vagrant/test-superlance/lib/python2.7/site-packages/superlance/memmon.py", line 402, in main
memmon.runforever()
File "/home/vagrant/test-superlance/lib/python2.7/site-packages/superlance/memmon.py", line 169, in runforever
if rss > self.programs[name]:
KeyError: 'backend-0'
As far as I've understood, this is the line of code which throws an error because the program is being looked up without group name.
To reproduce the issue, I've written an extra test:
@aspyatkin Thank you for this fix! Can't believe this is still open after a year :(
I've ended up using your fork instead of official package and it works great!
Hello, I believe I've found a bug in
memmon
plugin.For a
program
argument inmemmon
call, it's said that it's possible to specify group name to avoid ambiguity, with the formatgroup_name:program_name
. However, the documentation placed in the code suggests otherwise -process_name:group_name
. At last I figured out that the first variant is the correct one.When I tried to use
memmon
plugin for my program, I noticed that the following exception had been emmitted to the eventlistener log:As far as I've understood, this is the line of code which throws an error because the program is being looked up without group name.
To reproduce the issue, I've written an extra test:
The fix is quite simple, I can make a pull request, if you like.
The text was updated successfully, but these errors were encountered: