Updated on 2024-07-24 GMT+08:00

Why Is My Windows ECS Running Slowly?

If your ECS runs slowly or is inaccessible unexpectedly, the bandwidth or vCPU usage of the ECS may be excessively high. If you have created an alarm rule in Cloud Eye, the system automatically sends an alarm to you when the bandwidth or CPU usage reaches the threshold specified in the rule.

To handle this issue, perform the following operations:

  1. Fault locating:

    Identify the drivers from unknown sources and processes leading to high bandwidth or CPU usage.

    Windows offer multiple tools to locate faults, including Task Manager, Performance Monitor, Resource Monitor, Process Explorer, Xperf (supported by versions later than Windows Server 2008), and full memory dump.

  1. Check whether the processes and drivers are malicious and handle the issue accordingly.
    • If the processes are not malicious, optimize their programs or modify ECS specifications.
    • If the processes are malicious, stop these processes manually or use a third-party tool to stop them automatically.
    • If the drivers are from official sources, there is no need to deal with system built-in drivers. Determine whether to uninstall the third-party software based on your requirements.
    • If the drivers are from unknown sources, you are advised to uninstall them by using commercial antivirus software or third-party security management tools.

Fault Locating

  1. Log in to the ECS using VNC available on the management console.
  2. Start the Run dialog box, and then enter perfmon -res.
    Figure 1 Starting the Resource Monitor
  3. On the Resource Monitor page, click the CPU or Network tab to view the CPU or bandwidth usage.
    Figure 2 Resource Monitor
  4. Obtain the IDs and names of the processes with high CPU or bandwidth usage.
  5. On the remote login page, click Ctrl+Alt+Del to start the Windows Task Manager.

    Alternatively, start the Run dialog box and enter taskmgr to start the Windows Task Manager.

    The following describes how to display PIDs in Windows Task Manager, locate a process, and check whether it is malicious.

    1. Click the Details tab.
    2. Click PID to sort the data.
    3. Right-click the process with high CPU or bandwidth usage and choose Open File Location from the shortcut menu.
    4. Check whether the process is malicious.
      Figure 3 Checking the process
  6. Open the Run dialog box and enter fltmc to view the filter drivers of the system.
    The following figure uses Windows 10 as an example. Different OSs have different built-in drivers. For details, see their official websites. If a third-party driver is installed, it is also displayed in this figure.
    Figure 4 Viewing the system drivers

    The following describes how to view a driver source and check whether the source is unknown.

    1. Go to the C:\Windows\System32\drivers directory on the local PC.
    2. Click the name of the unknown driver and choose Properties to view its details.
    3. Click the Digital Signatures tab to view the driver source.
      Figure 5 Viewing the driver source

Troubleshooting

Before the troubleshooting, check whether the processes or drivers leading to the high CPU or bandwidth usage are normal, and handle the issue accordingly.

Suggestions for non-malicious processes

  1. If your ECS runs Windows Server 2008 or 2012, ensure that the available memory is 2 GiB or larger.
  2. Check whether Windows Update is running.
  3. Check whether the antivirus software is scanning files and programs on the backend.
  4. Check whether any applications requiring high CPU or bandwidth resources are running on the ECS. If yes, modify ECS specifications or increase bandwidth.
  5. If the ECS configuration meets the application requirements, deploy applications separately. For example, deploy the database and applications separately.

Suggestions for malicious processes

If the high CPU or bandwidth usage is caused by viruses or Trojan horses, manually stop the affected processes. You are advised to troubleshoot the issue as follows:

  1. Use the commercial-edition antivirus software or install Microsoft Safety Scanner to scan for viruses in security mode.
  2. Install the latest patches for Windows.
  3. Run MSconfig to disable all drivers that are not delivered with Microsoft and check whether the fault is rectified. For details, see How to perform a clean boot in Windows.

Suggestions for drivers from unknown sources

Some viruses and Trojan horses are loaded through the filter drivers of the system. If you find a driver from an unknown source, you are advised to uninstall it. You can also use commercial antivirus software or third-party security management tools to delete it.

If an unknown driver cannot be deleted, or will appear again after being deleted, it is usually a virus or Trojan horse driver. If the driver cannot be completely deleted using commercial antivirus software or third-party security management tools, you are advised to reinstall the OS and back up data before the reinstallation.