LiteAgent.exe consumes high memory

0

Hi,

I'm running several C5.Large (Windows 2016) and recently started to encounter severe performance issues with my applications there.
When I started to investigate, I've found that LiteAgent.exe is consuming a lot of the physical memory and also virtual memory.
One of the events in the servers was:
Windows successfully diagnosed a low virtual memory condition. The following programs consumed the most virtual memory: LiteAgent.exe (1836) consumed 14489743360 bytes and svchost.exe (1148) consumed 1381900288 bytes.

The same error is shown on multiple instances and during the same time the Cloudwatch Agent stopped responding and send guest metrics.

The SSM agent version: 2.2.355.0

Tomerl
asked 6 years ago6398 views
2 Answers
1

Hello all,

Thank You for contacting AWS Forums!

The Lite Agent is a component of the AWS PV Driver package which is specifically responsible for handling Shutdown and Restart events from AWS APIs.

However, this agent is not used on Nitro platform based instances (T3/M5/C5/R5, etc.) and as such, can be safely disabled. This is because, Nitro based instances use ACPI signals to perform the Reboot and Shutdown events.

More information can be found here:
https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/xen-drivers-overview.html#xen-driver-awspv

As mentioned in the document linked above, "When running on Nitro generation instances, the AWS PV drivers are not used and the LiteAgent service will self-stop starting with driver version 8.2.4. Updating to the latest AWS PV driver also updates the LiteAgent and improves reliability on all instance generations."

So based on the above information, to resolve the issue here, we have the following two options:

  1. Install the latest version of AWS PV drivers (even if your instance uses ENA driver for networking)
  2. Disable the LiteAgent Service altogether (as long as you are on a Nitro instance type)

Please refer the instructions here to upgrade the Drivers:
https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/Upgrading_PV_drivers.html

In case you want to disable the service, you can run the following commands in powershell:
PS C:>Set-Service AWSLiteAgent -StartupType Disabled
PS C:>Stop-Service AWSLiteAgent

Should you face any memory related issues with the agent even after disabling/updating it, please let us know.

I hope this helps. Please let us know if you have further questions or concerns. We would be happy to help!

AWS
answered 5 years ago
0

I am experiencing the same thing with several m5.large Windows 2016 instances. Killing the process does not seem to do anything so the only way I've been able to solve it is to restart.

Is there a solution for this?

answered 5 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions