Over the past few days my Amazon Workspace keeps freezing up (Session Interrupted). I am not positive but the culprit seems to be skylight which is consuming over 28.5GB of reserved memory and 148.3GB of Virtual memory as well as between 100-300% of CPU (on an 8 vCPU machine). I also see kswapd0 using high level of cpu, but not constantly. The workspace is running Amazon Linux 2.
I have updated every package that I can and rebooted the workspace (multiple times) and still see this high usage with no processes running and all docker containers stopped.
If anyone has had a similar problem and discovered a solution I would be very appreciative.
Yes, i am having this issue also.
systemctl stop skylight-agentdoesn't stop it, cause the restart policy is set to "Always". Which will just restart when you stop orkillit. And if you systemctl disable the service, it'll cause your workspace to be restarted.As a workaround, I have currently limited the CPU and RAM usages via doing the following:
systemctl status skylight-agentLook for "Loaded:" i.e.
Loaded: loaded (/usr/lib/systemd/system/skylight-agent.servicesudo nano /usr/lib/systemd/system/skylight-agent.serviceAdd the following in the file:
Snippet:
MemoryMax and MemoryLimit should be the same, but depending on the version of your instance, one works and the other doesn't. I just both of them in, cause it didn't feel like it respected the MemoryMax.
sudo systemctl daemon-reloadsudo systemctl restart skylight-agent.serviceMemoryHigh, when threshold is hit, it should throttle the service.I had to put the above in place because the agent is halting my workspace. This has helped control the workload. Hope the above helps someone.