Posts tagged: test

多个jmeter命令行实例需要注意的

如果用jmeter通过命令行(无图形界面)执行测试脚本,可参见jmeter最简单使用,并且启动多个jmeter实例,肯定会报地址端口已占用: Waiting for possible shutdown message on port 4445 java.net.BindException: Address already in use         at java.net.PlainDatagramSocketImpl.bind0(Native Method)   这个配置在jmeter的bin目录下,找到jmeter.properties这部分: # If running non-GUI, then JMeter listens on the following port for a shutdown message. # To disable, set the port to 0. #jmeterengine.nongui.port=4445   是用于监听shutdown message的,如果不需要,可以直接设置为0即可。    发送文章为PDF   

星期四 八月 19th, 2010 in , , , | No Comments »

使用jmeter做http post文件上传

目前需要测试一下文件上传业务模块的性能情况。用jmeter做测试。如果需要了解jmeter的简单使用,见jmeter最简单使用。 首先要确定要模拟的http post请求的链接和相关参数。比如,打开一个测试文件: 可以确定url是: http://your_ip:port/context_path/your_action_path/uploadfile.do 然后,上传的文件参数名为files。    发送文章为PDF   

星期二 八月 17th, 2010 in , , , | No Comments »

jmeter最简单使用

jmeter是apache jakarta项目下的测试工具,见: http://jakarta.apache.org/jmeter/ 可以用来做功能测试,负载测试和压力测试。是服务器端开发必备的测试工具。以前写过比较完整的文档,没有放在博客上,早就遗失了。最近做测试,要写多个日志记录基本的使用。 下载jmeter: http://jakarta.apache.org/site/downloads/downloads_jmeter.cgi 安装很简单,解压缩即可。jmeter是java编写的,因此要在运行jmeter之前确保已经安装jre。 运行jmeter,可以有图形方式和命令行方式。先说图形方式。在windows下: 双击jmeterw.cmd即可。 日志引用多个jmeter命令行实例需要注意的使用jmeter做http post文件上传    发送文章为PDF   

星期二 八月 17th, 2010 in , , , , | No Comments »

使用dd做磁盘读写的基准测试

今天使用dd对公司的服务器和家里的小服务器做了磁盘的基准测试,对比一下。 家里服务器是5400转的160GB笔记本硬盘: 读取速度:38.1 MB/秒 写入速度:33.9 MB/秒 公司服务器,10000转的SCSI,做的RAID1: 读取速度:288 MB/秒 写入速度:65.7 MB/秒    发送文章为PDF   

星期一 八月 3rd, 2009 in , , , | No Comments »