添加Memcached支持后,以250并发对Carbon Forum首页进行压力测试

添加Memcached支持后,以250并发对Carbon Forum首页进行压力测试

By lincanbin at 2015-03-27
0人收藏 • 2540人看过

blob.png

250并发,已完成请求8320个,此时服务器负载情况:

在0.10到0.15间波动,服务器是DigitalOcean的$5/Month VPS 

top - 08:27:17 up 110 days,  6:36,  1 user,  load average: 0.14, 0.15, 0.10
Tasks:  84 total,   1 running,  83 sleeping,   0 stopped,   0 zombie
Cpu(s):  1.7%us,  0.7%sy,  0.0%ni, 97.3%id,  0.0%wa,  0.0%hi,  0.3%si,  0.0%st
Mem:    510884k total,   504052k used,     6832k free,     2464k buffers
Swap:        0k total,        0k used,        0k free,   266372k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                
 3203 www       20   0 97180  13m 4380 S  0.3  2.7   0:18.95 httpd                                                                   
 3259 www       20   0  8880 2828  716 S  0.3  0.6   0:19.31 nginx                                                                   
 3260 www       20   0  8916 2928  716 S  0.3  0.6   0:20.02 nginx                                                                   
 3261 www       20   0  8848 2856  716 S  0.3  0.6   0:20.74 nginx                                                                   
14234 mysql     20   0  432m 145m 2836 S  0.3 29.1 231:01.14 mysqld                                                                  
    1 root      20   0  2896  416  220 S  0.0  0.1   1:31.44 init                                                                    
    2 root      20   0     0    0    0 S  0.0  0.0   0:00.00 kthreadd                                                                
    3 root      RT   0     0    0    0 S  0.0  0.0   0:00.00 migration/0                                                             
    4 root      20   0     0    0    0 S  0.0  0.0   0:52.46 ksoftirqd/0                                                             
    5 root      RT   0     0    0    0 S  0.0  0.0   0:00.00 migration/0                                                             
    6 root      RT   0     0    0    0 S  0.0  0.0   1:03.32 watchdog/0                                                              
    7 root      20   0     0    0    0 S  0.0  0.0  10:16.35 events/0                                                                
    8 root      20   0     0    0    0 S  0.0  0.0   0:00.00 cgroup                                                                  
    9 root      20   0     0    0    0 S  0.0  0.0   0:00.00 khelper                                                                 
   10 root      20   0     0    0    0 S  0.0  0.0   0:00.00 netns                                                                   
   11 root      20   0     0    0    0 S  0.0  0.0   0:00.00 async/mgr                                                               
   12 root      20   0     0    0    0 S  0.0  0.0   0:00.00 pm                                                                      
   13 root      20   0     0    0    0 S  0.0  0.0   0:43.89 sync_supers                                                             
   14 root      20   0     0    0    0 S  0.0  0.0   0:45.69 bdi-default                                                             
   15 root      20   0     0    0    0 S  0.0  0.0   0:00.00 kintegrityd/0                                                           
   16 root      20   0     0    0    0 S  0.0  0.0 179:26.92 kblockd/0                                                               
   17 root      20   0     0    0    0 S  0.0  0.0   0:00.00 kacpid

5 个回复 | 最后更新于 2015-04-06
lincanbin
2015-03-27
#1

blob.png

并发执行结果

remenbo
2015-03-30
#2

还没测试过 目前用的 RDS ,如果附件能够上阿里云 OSS 也是可以的,主站再cdn 可以扛不少

lincanbin
2015-03-31
#3

回复#2 @remenbo :现在这个网站一天这么点PV考虑这些还太遥远了,目前的架构单个VPS支撑一天几百万的访问量是没问题的。

搞这些得等日访问量有那么几十万了再说。

remenbo
2015-04-06
#4

回复#3 @lincanbin :我一个wp博客  日IP只有6k 天天满负荷,现在只有cdn才缓解了

lincanbin
2015-04-06
#5

回复#4 @remenbo :WordPress就这鸟样,单页渲染时间很容易就破100ms。

之前我一个 512M的VPS装了WordPress,没几个流量,但是天天内存溢出挤掉mysqld或者httpd。


登 录


现在注册

QQ  登 录    Weibo  登 录    GitHub  登 录