Help Center/ Elastic Cloud Server/ Troubleshooting/ General Issues/ How Do I Troubleshoot Slow Connections to a Website Hosted on My ECS?
Updated on 2024-08-15 GMT+08:00

How Do I Troubleshoot Slow Connections to a Website Hosted on My ECS?

Symptom

A complete HTTP request includes domain name resolution, TCP connection establishment, request initiation, processing of the request and returning a processing result by the server, parsing of the HTML code and requesting other resources by the browser, and rendering and presentation of the page. The HTTP request goes through a local client of the user, network nodes between the client and the access server, and the access server. An error occurred on any of the preceding nodes will lead to network freezing on the ECS.

Checking DNS Configuration

  1. Open the cmd window and run ipconfig /all to check whether a default Huawei Cloud DNS server address is used.
    You are advised to use the default Huawei Cloud DNS server addresses.
  2. Run the following command to check whether your ECS and the DNS server are reachable to each other:

    ping IP address of the DNS server

  3. Run the following command to check whether domain name resolution is functional:

    nslookup Target website

    For example, nslookup www.example.com

    Visit websites outside Chinese mainland, including those in Hong Kong (China), Macao (China), Taiwan (China), and other countries and regions, to check whether the access issue is resolved.

    If the fault persists, perform the following operations to continue the fault locating.

Checking Network Links

  1. On the local client, ping the public IP address of the server to check whether packet loss or network delay occurs.
  2. Run the dig/nslookup command to check whether the DNS resolution is functional. Alternatively, use the public IP address to access the target web page and check whether the slow access is caused by a DNS fault.

Checking ECS Resource Usage

  1. Log in to the management console.
  2. Click in the upper left corner and select your region and project.
  3. Under Compute, click Elastic Cloud Server.
  4. In the upper right corner of the ECS list, enter an ECS name, IP address, or ID.
  5. Click the name of the target ECS to go to the ECS details page.
  6. Click the Monitoring tab to view the monitoring data.

Check whether any applications running on the ECS are using too many network or CPU resources.