-
Notifications
You must be signed in to change notification settings - Fork 324
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
SSM agent is using loads of memory - "cannot allocate memory" #271
Comments
Thanks for reaching out. We do not support compiling SSM Agent with gccgo at the moment. If you could provide Agent debug log, it may help me to understand the problem slightly better,
|
Thanks for your reply. Using the official Go compiler seems to fix it. What is the reason gccgo is incompatible? |
gccgo compiles this, but unfortunately the binaries malfunction sometimes. golang generates a bug-free binary. aws/amazon-ssm-agent#271 Signed-off-by: Michael Tremer <michael.tremer@ipfire.org> Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
The root cause it still not clear to us. We do not have any plan to support this. However, we will monitor the number of requests for supporting gccgo in the future. |
I am running amazon-ssm-agent on IPFire which was compiled using GCC 9.3.0. I have tried this with various version from 2.3.701.0 - 2.3.930.0 and the problem is always the same.
The process starts and
ssm-cli
is able to execute normally. The daemon forks into background as usual.When a command is being sent to the daemon using AWS CLI, the process fails to fork another process and ultimately logs this:
strace
shows that clone() did not succeed as it could not allocate any memory. The agent process is using a lot of memory when it is being started and maps in about 5GB of "virtual memory". The total RSS memory usage is around 99MB. That is a lot more than on a system with Amazon Linux.Could anyone give me any pointers on how to debug this?
The text was updated successfully, but these errors were encountered: