性能学习搭建LAMP、帝国CMS和Jmeter压力测试


      本文主要是在ubuntu14构建LAMP环境,使用帝国的CMS模板搭建测试网站,利用JMETER进行压力测试,使用sysstat命令收集性能信息,从而找到系统的性能瓶颈,提出优化措施,主要是记录一些资源、学习笔记,记录学习笔记。。。

 推荐学习peter老师的性能测试工具课程 如下 http://www.imooc.com/wiki/278

    1、搭建LAMP,参考

    http://blog.csdn.net/callmeback/article/details/8130190

   利用putty使用ssh协议连接ubuntu,winscp使用ssh进行文件的上传、下载

      ubuntu开启ssh

  http://www.cnblogs.com/nodot/archive/2011/06/10/2077595.html

  ubuntu 修改某个文件夹下所有文件权限

   http://blog.chinaunix.net/uid-21880738-id-1813031.html

   一般 chmod -R 777 aa/

  2、帝国CMS部署

 http://bbs.phome.net/showthread-42-328436-0.html

下载后 解压 按照安装说明操作即可

 安装部署完后

查看环境相关命令  如下



部署的CMS



3、jmeter压力测试

  jmter解压即可使用 下载地址  http://jmeter.apache.org/download_jmeter.cgi  最新版2.13

修改jmeter显示英文

apache-jmeter-2.13\bin\jmeter.properties 修改为

  

压力测试有很多种方式

  a:录制、回放测试

    参考: http://blog.csdn.net/aerchi/article/details/7044816

                http://www.educity.cn/se/525511.html

   参数化数据

  http://lijingshou.iteye.com/blog/2047613

css/Jquery提取器

http://blog.csdn.net/kaku21/article/details/42150625

beanshell

http://www.beanshell.org/

jmeter压力测试

http://blog.linuxeye.com/335.html

下面是测试截图


使用top查看cpu、内存信息



查看结果图



使用top查看此时的 性能信息



当服务器cpu用完 怎会出现无服务响应的情况



即可通过相关的错误提示 找到系统瓶颈  找到系统的最大负载


jmeter更多相关的学习资料

jmeter压力测试入门  http://blog.linuxeye.com/335.html

     http://blog.chinaunix.net/uid-26884465-id-3416869.html



foreach逻辑结构 进行测试




java测试

参考 http://m.blog.csdn.net/blog/storm2011/15336161

      http://blog.csdn.net/zjturn/article/details/8928704




当然 在性能统计时 可使用 nmon收集信息




也可使用 sysstat 进行性能收集 、分析

配置sysstat

http://book.51cto.com/art/201405/438590.htm

http://blog.csdn.net/cityeremite/article/details/4531714

主要是查看 CPU、内存、IO、硬盘

--查看cpu
sar -q -f sa08
sar -p -f sa08
--查看mem
sar -r -f sa08
sar -B -f sa08
sar -W -f sa08
--查看io
sar -b -f sa08
sar -d -f sa08
-查看net
sar -n DEV -f sa08
sar -n NFS -f sa08




  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值