The cause analysis of the company's website malfunction
1.17:20 minutes or so some pages appear MySQL error.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/27/64/wKiom1Nyt4ngN_LvAACxlVsRvvE512.jpg "title=" 1.png " alt= "Wkiom1nyt4ngn_lvaacxlvsrvve512.jpg"/>
this bandwidth situation.
2. traffic monitoring shows that 101.66.246.22 consumes a lot of bandwidth, resulting in full bandwidth.
Block the IP traffic down and turn on the IP traffic to rise immediately.
3. Export Nearly 10 minutes the log was found as follows: (Files accessed by this IP)
101.66.246.22--[13/may/2014:17:40:09 +0800] "get/sso_server/uploadfile/avatar/1/10/9041/web.tar.gz
http/1.1 "206 10262311717
4 . Querying the file information
[Email protected] 9041]# ll-h web.tar.gz
-rw-r--r--1 www www 27G May 8 16:38 web.tar.gz
5. Find directories and other compressed files larger than 10M :
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/27/64/wKioL1Nyt2_jRxauAAEOQlHOKSQ359.jpg "title=" 2.png " alt= "Wkiol1nyt2_jrxauaaeoqlhoksq359.jpg"/>
6. Cause: The client requests access to a 24G compressed file, which causes the bandwidth to continue running full without accessing MySQL data.
7. Reason not found: The file creator is www, and the user cannot sshd. Can only be created in the following ways: the first root and bear the WWW user after the creation of the second, root after the creation of the main group and the third FTP upload, the file is too large, the possibility of a small fourth web program creation.
In addition the large files from the developed angle tar are allowed to access the
This article is from the "Elder Don" blog, please be sure to keep this source http://zhanglaotang.blog.51cto.com/3196967/1410838