linux下使用httping测试web响应时间
安装httping
yum -y install httping
然后使用:
httping -options
-g url
-h hostname
-p port
-x host:port(如果是测squid,用-x,不要用-h;和curl的不一样,curl -H指定的是发送的hostname,这个-h是指定给DNS解析的hostname)
-c count
-t timeout
-s statuscode
-S 将时间分开成连接和传输两部分显示
-G GET(默认是HEAD)
-b 在使用了GET的前提下显示传输速度KB/s
-B 同-b,不过使用了压缩
-I useragent
-R referer
-C cookie=*
-l SSL
-U username
-P password
-n a,b 提供给nagios监控用的,当平均响应时间>=a时,返回1;>=b,返回2;默认为0
-N c 提供给nagios监控用的,一切正常返回0,否则只要有失败的就返回c
举例如下:
[root@server1 ~]# httping -g http://www.baidu.com -SGbs -c 10
PING www.baidu.com:80 (/):
connected to 220.181.112.244:80 (593 bytes), seq=0 time=375.32+ 5.69+ 6.21+ 19.39+ 0.01=406.62 ms 200 OK 4079KB/s
connected to 220.181.111.188:80 (593 bytes), seq=1 time=385.49+ 5.55+ 6.31+ 23.69+ 0.01=421.05 ms 200 OK 3316KB/s
connected to 220.181.112.244:80 (593 bytes), seq=2 time=368.88+ 5.37+ 5.68+ 13.65+ 0.01=393.58 ms 200 OK 5987KB/s
connected to 220.181.111.188:80 (593 bytes), seq=3 time=371.23+ 5.22+ 5.67+ 24.77+ 0.01=406.88 ms 200 OK 3106KB/s
connected to 220.181.111.188:80 (593 bytes), seq=4 time=378.27+ 5.29+ 5.68+ 14.14+ 0.01=403.38 ms 200 OK 6408KB/s
connected to 220.181.112.244:80 (593 bytes), seq=5 time=381.77+ 5.17+ 5.69+ 18.68+ 0.01=411.32 ms 200 OK 4208KB/s
connected to 220.181.111.188:80 (593 bytes), seq=6 time=386.37+ 5.08+ 5.71+ 21.32+ 0.02=418.48 ms 200 OK 4110KB/s
connected to 220.181.111.188:80 (593 bytes), seq=7 time=389.38+ 5.52+ 5.57+ 18.96+ 0.01=419.44 ms 200 OK 4217KB/s
connected to 220.181.111.188:80 (593 bytes), seq=8 time=403.63+ 5.29+ 5.64+ 24.81+ 0.01=439.37 ms 200 OK 3271KB/s
connected to 220.181.112.244:80 (593 bytes), seq=9 time=389.84+ 5.21+ 5.65+ 19.77+ 0.01=420.46 ms 200 OK 4597KB/s
--- http://www.baidu.com/ ping statistics ---
10 connects, 10 ok, 0.00% failed, time 14142ms
round-trip min/avg/max = 393.6/414.1/439.4 ms
Transfer speed: min/avg/max = 3106.659816/4330.607617/6408.417735 KB
转载于:https://blog.51cto.com/304076020/1562511
linux下使用httping测试web响应时间相关推荐
- linux修改响应时间,linux下使用httping测试web响应时间
安装httping yum -y install httping 然后使用: httping -options -g url -h hostname -p port -x host:port(如果是测 ...
- Linux下使用Speedtest测试网速教程
Linux下使用Speedtest测试网速教程 文章目录: 一.通过Speedtest官网直接测试网络速度 二.通过下载源码,在命令行中测试网速 1.下载安装 2.Speedtest的参数使用: 有时 ...
- 性能测试入门(六)windows及Linux下做压力测试的注册表设置
windows及Linux下做压力测试的注册表设置 from: http://www.cnblogs.com/tianzhiliang/articles/2400176.html TcpTimedWa ...
- 用Prime95来做linux下CPU压力测试
Prime95是用来做linux下CPU压力测试的,由GIMPS (Great Internet Mersenne Prime Search)所提供,主要是透过运算找出梅森质数,质数(Prime nu ...
- linux下code-server离线远程web浏览器调试C++代码
linux下code-server离线远程web浏览器调试C++代码 如需转载请标明出处:http://blog.csdn.net/itas109 QQ技术交流群:129518033 文章目录 lin ...
- linux下网速测试
linux下网速测试 speedtest 是一个知名的网速测试工具,它是用 Python 写成的,可以使用 apt 或 pip 命令来安装. 安装 sudo apt install speedtest ...
- ZedBoard--(5)嵌入式Linux下的DMA测试(Direct Register Mode)(PS + PL)
ZedBorad–(5)嵌入式Linux下的DMA测试(PS+PL) 本文将详细介绍如何在ZedBorad上使用AXI接口的DMA IP核.(文末会给出测试代码的下载链接) DDR控制器.AXI DM ...
- linux下webservice压力测试,pylot压力测试支持linux及windowsWebService性能及扩展性的工具.docx...
pylot压力测试支持linux及windowsWebService性能及扩展性的工具 下载以下软件请加群292501151,群共享有如有不便敬请谅解,执行#后面跟着(linux命令行)!普:Pylo ...
- linux下网站服务器,Linux下使用Apache搭建Web网站服务器(示例代码)
[[email protected] ~]# yum install elinks –y 主配置文件 [[email protected] ~]# ls/etc/httpd/conf/httpd.co ...
- linux下tomcat部署java web项目_在linux下用tomcat部署java web项目的过程与注意事项
在linux下用tomcat部署java web项目的过程与注意事项 一.安装JDK 到http://www.oracle.com/technetwork/java/javase/downloads/ ...
最新文章
- python3.6.5下载-Python
- Linux下仿windows任务管理器,开源任务管理器 Process Hacker (Windows)
- cisco packet tracer路由器配置_【干货】思科交换机路由器怎么配置密码?
- Linux 开机报 or type Control-D to continue
- Struts2 第9part 通过实现ModelDriven来接收参数
- 5.修改本地库/远程仓库的地址
- STM32的位带操作
- modal 弹出层后禁止底层滚动
- 计算机中word2007,Word中2007版在电脑里发现打不开的解决方法
- Arduino UNO测试BME280温湿度气压传感器
- Portainer中文汉化
- android绘制正态分布曲线,Excel表格中如何制作正态分布图和正态曲线模板
- 火影 超神V5笔记本键盘维修
- redis 失效时间单位是秒还是毫秒_经常用Redis,这些坑你知道吗?
- g2plot 水滴图,包含数据更新时渲染问题
- 快给你的对象做一个微信公众号播报吧-java版
- 电磁感应,让你制作独一无二的作品
- 数据可视化之关联分析
- Tensorflow twitter-RNN-评论情感分析(l2正则)
- 如何启用计算机双通道内存的方法,组建双通道内存也要讲究方法,操作方法不正确,装上内存也没用处...
热门文章
- linux timeout 格式,Linux内核API wait_for_completion_timeout
- 植树问题python_《程序员的数学》思考题(一)
- UOS浏览器不支持NPAPI插件,怎么办?
- 为了USB3,吾还是换了电脑
- github每次push时自动输入用户名密码
- LINUX虚拟机安装增强功能时报错: Kernel headers not found for target kernel. Please install them and execute
- VS遍历windows文件夹的代码
- JDK 32位(x86)版本,最新的是JDK8
- c#解析json字符串数组_在C#中解析Json字符串
- cmd 看图片十六进制_Fun Python | 女朋友让我把这网站上的图片都下载下来