Customer site access slow analysis and troubleshooting process

Source: Internet
Author: User

Recently I maintained a customer site is very slow to open, so they follow the previous troubleshooting steps to troubleshoot

1, log on to the server top command to view load IO condition discovery Load is a bit high and there are many PHP processes that make up a lot of resources

2, access the MySQL server to view the database thread, and did not find the lock table condition.

3, open the Web Access log found a lot of Baidu crawler visit. Causing a lot of PHP resources to be ordered

Solution:

1, disable crawler (not conducive to SEO)

Add in nginx config file

if ($http _user_agent ~ baiduspider) {return 503;}
if ($http _user_agent ~ etaospider) {return 503;}
if ($http _user_agent ~ Googlebot) {return 503;}
if ($http _user_agent ~ "Bingbot") {return 503;}

It is said that return 503 is based on SEO considerations

2, through Nginx to determine whether it is Baidu Crawler if it is to access the cache


Seoul Mall
Costume collocation
City of words and things
Dressing and blogging

Costume collocation Blog

Customer site access slow analysis and troubleshooting process

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.