How do I troubleshoot a slow Web site opening?

Source: Internet
Author: User
Tags database issues

Interview question: As a Linux operation, the customer reflects that opening your Web server is slow, how to debug (operation)?

(a) The user case, or all

Oneself as the user to test. If there is no problem, from the customer's point of view to think, if you test the same problem, follow the following ideas to troubleshoot.

1. The question of whether the road is to pass

A. Ping the Www.baidu.com motorway has not been repaired

If the ping is a pass, do not drop the packet. HTTP Server issues (service outage, service overloaded)

If the ping is pass, packet loss, the room bandwidth is not stable, each line is unstable.

If the ping does not work, the ping qq.com machine room is down, or the HTTP service problem (service outage, service overload)

b.tracert-d www.baidu.com High-speed of the various sections have been repaired, from the client to the server between the various lines, so that the computer room with inspection.

2. Is the machine room business OK

C.telnet www.baidu.com 80 Check if the server Web service is turned on and the firewall is blocked.

Nmap Www.baidu.com-p 80

Curl www.baidu.com or wget www.baidu.com is equivalent to browser access.

D. Whether the server is overloaded with server and service connections, high load, high CPU, high IO.

3. External issues

E. The bandwidth of the website purchase is full and is viewed through the traffic monitoring service.

F. Chain outside chain (call external website URL has a problem)

Essential Debugging Tools for Web front end

Debug Web site based on site URL

    1. Google Chrome Direct F12

    2. 2. Transfer Firebug,yslow

    3. IE HttpWatch


4. Other issues

Individual customer problems, such as line of carrier and website bandwidth, do not match.

5. Cluster architecture (service provided by a number of servers)

G.web Service issues.

H. Database issues, log in to the database, see if there are slow query statements show proceslist, adjust MySQL, optimize SQL statements.

I. Storage and so on, is not the storage server, such as NFS,MFS load and disk IO high?

Change how to troubleshoot a more complex network environment, as the architect says.


This article is from the "Sandshell" blog, make sure to keep this source http://sandshell.blog.51cto.com/9055959/1949116

How do I troubleshoot a slow Web site opening?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.