Problem Description
Website access is slow.
Problem Analysis
A complete HTTP request includes resolving the domain name, establishing the TCP connection, initiating the request, CVM receiving and processing the request, returning the result, the browser parsing the HTML code, requesting other resources, and rendering the page. These processes involve the local client, network nodes between the client and the server, and the server. A problem with any of them may cause network access latency.
Solutions
Check the local client
2. Based on the test result, check whether the local network has an exception.
For example, the test result is as shown below:
The test result shows the access latency for each domain name and whether the network is normal. If the network has an exception, contact your ISP to locate and solve the problem.
Check the network linkage
1. Ping the server's public IP from the local client to check if there is packet loss or high latency.
If the ping test shows no packet loss or high latency, please execute step 2. 2. Use the dig/nslookup
command
to check whether the problem is caused by DNS resolution.
You can also access the page directly with the public network IP to check whether DNS has caused access latency. If DNS has an exception, check the DNS resolution.
Check the server
2. Click the ID/name of the instance you want to check to enter its details page.
3. Select the Monitoring tab on the details page to view the instance resource usage, as shown below:
Check other problems
Based on instance resource usage, check whether the increase in resource consumption is caused by server load.
If yes, we recommend that you optimize the business processes, change instance configuration, or purchase new servers to reduce the pressure on existing servers. If no, we recommend that you check log files to locate the problem and carry out targeted optimization.
Was this page helpful?