Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FreeBSD issue finding processes #135

Open
DejarW opened this issue Aug 24, 2024 · 1 comment
Open

FreeBSD issue finding processes #135

DejarW opened this issue Aug 24, 2024 · 1 comment

Comments

@DejarW
Copy link

DejarW commented Aug 24, 2024

memmon was not able to find defined process on FreeBSD 13/14
I changed superlance/memmon.py self.pstreecommand to use multiply -o

I believe this will work also on Linux
freebsd.patch

@DejarW DejarW changed the title FreeBSD issue finding process FreeBSD issue finding processes Aug 24, 2024
@mnaberez
Copy link
Member

freebsd.patch

index 8be2478..04771b3 100644
--- a/superlance/memmon.py
+++ b/superlance/memmon.py
@@ -114,7 +114,7 @@ class Memmon:
         self.stdout = sys.stdout
         self.stderr = sys.stderr
         self.pscommand = 'ps -orss= -p %s'
-        self.pstreecommand = 'ps ax -o "pid= ppid= rss="'
+        self.pstreecommand = 'ps ax -o "pid=" -o "ppid=" -o "rss="'
         self.mailed = False # for unit tests

     def runforever(self, test=False):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants