昨晚和今天又测试,访问速度刚刚的。所以,这个问题作废。至于监控相关内容,我也在学习,以后另外发帖补充。谢谢!
为了加快访问速度,同时也为了能使用更多的国内服务,我把我的“‘地瓜哥’博客网”搬到了阿里云上。
备案今天审核完成。然后就把网站给搭起来了。
But,访问速度超慢。测试站点:地瓜哥测试站点。还不如我原来在美国的虚拟主机上快。
请问:如何检测并定位一个网站的速度瓶颈?监控这块一直比较薄弱,希望大家给指条路!
补充:
还是上面的测试站点,中午访问巨慢。刚刚试了一下,速度还可以。 莫非阿里云表现不稳定,故意特马耍我?
Wordpress 4.0(刚刚的测试站点)
$ mysql -V
mysql Ver 14.14 Distrib 5.6.20-68.0, for debian-linux-gnu (x86_64) using EditLine wrapper
# 登录后,提示如下:
Server version: 5.6.20-68.0 Percona Server (GPL), Release 68.0, Revision 656
可能好多人没有见过Percona Server
,简单介绍一下,它是一个类 MySQL 数据库,在 MySQL 的基础上做了大量的优化,据说性能提升很多。大家可以看他们公司人员和别人合著的一本书: 高性能 MySQL (豆瓣)。
$ nginx -v
nginx version: nginx/1.6.2
$ php -v
PHP 5.5.17-2+deb.sury.org~trusty+1 (cli) (built: Sep 25 2014 09:06:49)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies
$ uname -a
Linux iZ250j5jy9cZ 3.13.0-36-generic #63-Ubuntu SMP Wed Sep 3 21:30:07 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty
66.175.221.233 - - [26/Sep/2014:18:17:43 +0800] "GET / HTTP/1.1" 200 3117 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
66.175.221.233 - - [26/Sep/2014:18:18:05 +0800] "GET / HTTP/1.1" 200 3117 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
66.175.221.233 - - [26/Sep/2014:18:18:08 +0800] "GET /wp-content/themes/twentyfourteen/genericons/genericons.css?ver=3.0.3 HTTP/1.1" 304 0 "http://test.diguage.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
66.175.221.233 - - [26/Sep/2014:18:18:08 +0800] "GET /wp-includes/js/jquery/jquery.js?ver=1.11.1 HTTP/1.1" 304 0 "http://test.diguage.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
66.175.221.233 - - [26/Sep/2014:18:18:08 +0800] "GET /wp-content/themes/twentyfourteen/js/functions.js?ver=20140616 HTTP/1.1" 304 0 "http://test.diguage.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
66.175.221.233 - - [26/Sep/2014:18:18:08 +0800] "GET /wp-includes/js/jquery/jquery-migrate.min.js?ver=1.2.1 HTTP/1.1" 304 0 "http://test.diguage.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
66.175.221.233 - - [26/Sep/2014:18:18:08 +0800] "GET /wp-content/themes/twentyfourteen/style.css?ver=4.0 HTTP/1.1" 304 0 "http://test.diguage.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
66.175.221.233 - - [26/Sep/2014:18:18:15 +0800] "GET /archives/4.html HTTP/1.1" 200 3872 "http://test.diguage.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
66.175.221.233 - - [26/Sep/2014:18:18:18 +0800] "GET /archives/1.html HTTP/1.1" 200 4445 "http://test.diguage.com/archives/4.html" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
66.175.221.233 - - [26/Sep/2014:18:18:27 +0800] "GET /archives/category/%e6%b5%8b%e8%af%95%e5%88%86%e7%b1%bb HTTP/1.1" 200 2964 "http://test.diguage.com/archives/1.html" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
66.175.221.233 - - [26/Sep/2014:18:18:31 +0800] "GET /archives/date/2014/09 HTTP/1.1" 200 3155 "http://test.diguage.com/archives/category/%e6%b5%8b%e8%af%95%e5%88%86%e7%b1%bb" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"
这里只贴出来 Nginx 的访问日志,如果还需要什么?请留言告知,我再补充。
另外,这是第一次配置 Nginx 的访问日志。如果有什么好的建议?也请留言提示,谢谢!!