-
-
Notifications
You must be signed in to change notification settings - Fork 270
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
Memory stat seems to be off running in MacOS with docker agent #287
Comments
Thanks for reporting this. Mac and Linux have different methods for calculating memory usage. When you run the binary, it uses the native method for Mac. When you run on Docker / Orbstack on Mac, I'm assuming it uses the Linux method (directly reading From a quick google, Orbstack says it has its own "dynamic memory management" implementation, so it may have something to do with that. Unfortunately I can't troubleshoot because I don't have a MacOS device. It would be helpful to confirm the docker exec -it container-name sh cat /proc/meminfo |
I have run the
|
Thanks, it looks like Orbstack runs containers in a memory-limited environment, and I doubt there's anything we can do on this side to work around it, unfortunately. I'd recommend sticking with the binary for the time being. Or maybe test with Podman to see if the behavior is any different. |
Yeah that makes sense, but I’m having trouble setting the binary to auto start on boot up in MacOS(it needs to be done by using .plist) and my binary agent seems to stop sending telematics after some time sitting idle. Is there a way to debug why? I don’t see any error when running in terminal |
You're not the only one who ran into that. There's another issue here: #248 I don't know why that would happen. Maybe it needs to continuously print output or interact with the filesystem for it to be considered active? Try adding |
I was running the binary which was reporting the correct RAM usage but once I switched to docker agent, the RAM usage seems only reports what docker container/services are using. I'm running MacOS 15.1 with Orbstack+Portainer
The text was updated successfully, but these errors were encountered: