You need to enable JavaScript to run this app.
Elastic Compute Service

Elastic Compute Service

Copy page
Download PDF
Memory issue
Solution for Windows instance lag due to excessive hardware-reserved memory
Copy page
Download PDF
Solution for Windows instance lag due to excessive hardware-reserved memory
This topic describes how to resolve issues of instance lag and slow system response caused by excessive hardware-reserved memory on Windows instances.​
You can log in to the target instance and then view the hardware-reserved memory by selecting "Task Manager > Performance > Memory".​
tip​
  • The copyright of the official Microsoft links cited in this topic belongs to Microsoft. The VolcanoEngine platform assumes no responsibility for the scope of operating systems applicable to this topic, or issues that may arise from Microsoft Windows product iterations or delayed document updates.​
  • This topic may contain information about third-party products. Related information is provided for reference only. The VolcanoEngine platform makes no implication or other form of commitment regarding the performance and reliability of third-party products, or potential impacts that may result from their operation.​
Causes​
Due to abnormalities such as incorrect configurations of the license in the Windows Registry, and abnormal changes to instance specifications (sudden increase or decrease in memory size), an instance may not be activated normally. This causes a large amount of memory to be locked or reserved (excessive hardware-reserved memory), thereby causing high memory load and slow system response or even lag.​
Prerequisites​
We recommend creating a snapshot first to back up instance data. This improves your fault tolerance and ensures data security.​
Procedure​
Fix this issue by resetting the activation status of Key Management Service (KMS).​
  1. Log in to the target instance. For more information, see Login overview.​
  1. Open the Command Prompt (cmd) with an administrator account.​
  1. Clear the activation information of KMS.​
  1. Clear the server address.​
  1. Execute the following command to clear the server address.​
  • ​
    slmgr.vbs /ckms​
    ​
  1. Click the "Confirm" button.​
  1. Detach service key.​
  1. Execute the following command to detach the service key.​
  • ​
    slmgr.vbs -upk​
    ​
  1. Click the "Confirm" button.​
  1. Reset the authorization status of the computer.​
  1. Execute the following command to reset the authorization status of the computer.​
  • ​
    slmgr.vbs -rearm​
    ​
    ​
  1. Click the "Confirm" button.​
  1. Restart the Windows instance to make the changes take effect. For detailed operations, refer to Restarting instances.​
  1. Reactivate the KMS service.​
  1. Query the KMS key corresponding to the operating system version of the instance. About KMS keys.​
  1. Execute the following commands to reactivate KMS.​
warning​
  • Make sure that a legitimate KMS server address is used. Using unauthorized or untrusted KMS server addresses may cause activation failure, system instability, or even legal risks.​
  • For individual users, since personal editions of Windows are typically activated via legitimate methods, such as purchasing genuine keys, we generally do not recommend that they use KMS activation.​
  • ​
    slmgr.vbs /ipk your_kms_key​
    slmgr -skms cloudkms.ivolces.com​
    slmgr.vbs /ato​
    ​
  • Replace "your_kms_key" with the actual KMS key.​
  • Replace "cloudkms.ivolces.com" with the actual address of your KMS server on the VolcanoEngine platform.​
  1. Wait for the system prompt indicating successful product activation, and then restart the instance to complete the system update.​
Last updated: 2026.04.13 16:50:03