This topic describes how to resolve the issue that a Windows Elastic Compute Service (ECS) instance stutters due to excessive memory reserved for hardware.
Problem description
A Windows ECS instance stutters or slowly responds.
Causes
An abnormal license configuration in the Windows registry or changes to the instance type, such as a sudden increase or decrease in memory size, can prevent the instance from activating correctly. This can cause a large amount of memory to be locked or reserved for hardware. As a result, the memory load increases, and the system responds slowly or even stutters.
To view the memory usage of the Windows ECS instance, including the amount of memory reserved for hardware, you can open Task Manager on the instance, click the Performance tab, and then click Memory in the navigation pane on the left.
Solution
You can reset the activation status of Key Management Service (KMS) to troubleshoot the issue. Follow these steps:
Before you perform high-risk operations, such as modifying the configurations or data of an ECS instance, make sure that the instance has disaster recovery and fault tolerance capabilities. To ensure data security, we recommend that you create snapshots for disks attached to the ECS instance to back up data. For more information, see Create a snapshot manually.
-
You can remotely connect to the ECS instance.
For more information, see Choose an ECS remote connection method.
-
Open a command prompt window as an administrator.
-
Clear KMS activation settings.
-
Run the following command to clear the KMS server settings:
slmgr.vbs /ckms -
Run the following command to uninstall the service key.
slmgr.vbs -upk -
Run the following command to reset the computer's authorization.
slmgr.vbs -rearmThe system displays the following prompt. A system restart is required to apply the changes.

-
Restart the Windows ECS instance for the changes to take effect.
For more information, see Restart an instance.
-
-
Reactivate KMS.
-
Identify the correct KMS client product key for the Windows operating system version of the ECS instance.
For information about KMS client product keys, see Key Management Services (KMS) client activation and product keys.
-
Run the following commands to reactivate KMS:
slmgr.vbs /ipk your_kms_key # Replace your_kms_key with the KMS client product key that you obtained in Step 4.a. slmgr -skms kms.cloud.aliyuncs.com # Change the KMS server domain name to the Alibaba Cloud KMS server domain name. slmgr.vbs /atoThe following figure shows that the product is successfully activated.
-
-
Restart the Windows ECS instance for the changes to take effect.
For more information, see Restart an instance.