最大响应时间跟什么有关 runloaderrun

loadrunner响应时间及Apache 并发数的优化_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
loadrunner响应时间及Apache 并发数的优化
上传于|0|0|暂无简介
阅读已结束,如果下载本文需要使用2下载券
想免费下载本文?
定制HR最喜欢的简历
下载文档到电脑,查找使用更方便
还剩33页未读,继续阅读
定制HR最喜欢的简历
你可能喜欢novell常见维护实例_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
novell常见维护实例
上传于|0|0|文档简介
你可能喜欢我个人认为一个优秀的软件工程师必须掌握一定的测试技能。可能有的开发工程师认为测试是测试工程师的事情,不是开发工程师的事情。这种开发工程师是缺一条腿的,离开了测试工程师,你如何证明你的程序没有问题。 下面是我这两天搜集的性能测试工具,如果大家知道别的工具,可以在回复中分享出来。
Web Bench is very simple tool for benchmarking WWW or proxy servers. Uses
for simulating multiple clients and can use HTTP/0.9-HTTP/1.1 requests. This benchmark is not very realistic, but it can test if your HTTPD can realy handle that many clients at once (try to run some CGIs) without taking your machine down. Displays pages/min and bytes/sec. Can be used in more aggressive mode with -f switch. Web Bench是一个简单的web或者web代理服务的基准测试工具。(它)使用fork()模拟多个客户端并且可以发起HTTP/0/9-HTTP/1.1的请求。这个基准测试不是非常符合实际情况,但是可以测试出你的HTTP服务是否可以处理多个客户同时访问而不会把你的机器弄挂掉。这个工具可以获得服务的两个指标:每分钟响应请求数量(pages/min)和每秒钟传输数据量(bytes/sec)。使用-f选项可以运行在主动模式下(不等待服务器响应直接发送下一个请求)。 安装方法参考: 命令参数:
使用webbench测试elong,taobao,baidu的结果(可能受电脑性能、网络的因素影响):
ab is a tool for benchmarking your Apache Hypertext Transfer Protocol (HTTP) server. It is designed to give you an impression of how your current Apache installation performs. This especially shows you how many requests per second your Apache installation is capable of serving. ab命令会创建很多的并发访问线程,模拟多个访问者同时对某一URL地址进行访问。它的测试目标是基于URL的,因此,既可以用来测试Apache的负载压力,也可以测试nginx、lighthttp、tomcat、IIS等其它Web服务器的压力。ab命令对发出负载的计算机要求很低,既不会占用很高CPU,也不会占用很多内存,但却会给目标服务器造成巨大的负载,其原理类似。自己测试使用也须注意,否则一次上太多的负载,可能造成目标服务器因资源耗完,严重时甚至导致死机。
网上有些文章说安装apache2后一般情况下在Apache的bin目录下。我在Ubunut 14.04上测试,并不是这样。要在Ubuntu上使用ab,需要apache2-utils。
ab的用法参考:,
Siege is an http load testing and benchmarking utility. It was designed to let web developers measure their code under duress, to see how it will stand up to load on the internet. Siege supports basic authentication, cookies, HTTP and HTTPS protocols. It lets its user hit a web server with a configurable number of simulated web browsers. Those browsers place the server “under siege.” Siege(英文意思是围攻)是一个压力测试和评测工具,设计用于WEB开发这评估应用在压力下的承受能力:可以根据配置对一个WEB站点进行多用户的并发访问,记录每个用户所有请求过程的相应时间,并在一定数量的并发访问下重复进行。 Siege 支持基本的认证,cookies, HTTP 和 HTTPS 协议。 Siege的安装和用法可以参考:,,, 我的Ubuntu 14.04上的使用如下:
测试本地的tomcat的测试结果:
Apache JMeter是一个专门为运行和服务器装载测试而设计的、100%的纯Java桌面运行程序。原先它是为Web/HTTP测试而设计的,但是它已经扩展以支持各种各样的测试模块。它和用于HTTP和SQL数据库(使用JDBC)的模块一起运送。它可以用来测试静止资料库或者活动资料库中的服务器的运行情况,可以用来模拟对服务器或者网络系统加以重负荷以测试它的抵抗力,或者用来分析不同负荷类型下的所有运行情况。它也提供了一个可替换的界面用来定制数据显示,测试同步及测试的创建和执行。 JMeter的工作原理:JMeter可以作为Web服务器与浏览器之间的代理网关,以便捕获浏览器的请求和Web服务器的响应,这样就很容易地生成性能测试脚本,有了性能测试脚本,JMeter就可以通过线程组来模拟真实用户对Web服务器的访问压力,这与LoadRunner的工作原理基本一致。
下面是JMeter的官方简介:
The Apache JMeter(TM) desktop application is open source software, a 100% pure Java application designed to load test functional behavior and measure performance. It was originally designed for testing Web Applications but has since expanded to other test functions.
What can I do with it?
Apache JMeter may be used to test performance both on static and dynamic resources (Files, Web dynamic languages - PHP, Java, ASP.NET, etc. -, Java Objects, Data Bases and Queries, FTP Servers and more). It can be used to simulate a heavy load on a server, group of servers, network or object to test its strength or to analyze overall performance under different load types. You can use it to make a graphical analysis of performance or to test your server/script/object behavior under heavy concurrent load.
What does it do?
Apache JMeter features include:
Ability to load and performance test many different server/protocol types:
Web - HTTP, HTTPS
Database via JDBC
Message-oriented middleware (MOM) via JMS
Mail - SMTP(S), POP3(S) and IMAP(S)
MongoDB (NoSQL)
Native commands or shell scripts
TCP Complete portability and 100% Java purity .
Full multithreading framework allows concurrent sampling by many threads and simultaneous sampling of different functions by separate thread groups.
Careful GUI design allows faster Test Plan building and debugging.
Caching and offline analysis/replaying of test results.
Highly Extensible core:
Pluggable Samplers allow unlimited testing capabilities.
Several load statistics may be choosen with pluggable timers .
Data analysis and visualization plugins allow great extensibility as well as personalization.
Functions can be used to provide dynamic input to a test or provide data manipulation.
Scriptable Samplers (BeanShell, BSF-compatible languages and JSR223-compatible languages) JMeter的用户手册:
推荐一本书籍:
JMeter的脚本录制工具:
Web Polygraph这个软件也是一个用于测试WEB性能的工具,这个工具是很多公司的标准测试工具,包括微软在分析其软件性能的时候,也是使用这个工具做为基准工具的。很多招聘测试员的广告中都注明需要熟练掌握这个测试工具。 Web Polygraph is a freely available performance testing tool for caching proxies, origin server accelerators, L4/7 switches, content filters, and other Web intermediaries. Polygraph's features include:
high-performance HTTP clients and servers
realistic HTTP, FTP and SSL traffic generation
HTTP and SOCKS5 proxy support, with chaining
HTTP Basic, NTLM, and Negotiate proxy authentication
LDAP-friendly generation of user credentials
flexible content simulation
ready-to-use standard workloads for benchmarking
powerful domain-specific configuration language
portable open-source implementation
friendly commercial support
Although the real live flow is important for the test of Internet server applications, it is hard to simulate it as online environments are too complex. To support more realistic testing of Internet server applications, we propose a live flow reproduction tool – TCPCopy, which could generate the test workload that is similar to the production workload. TCPCopy consists of two components: the TCPCopy Client (tcpcopy) and the TCPCopy Server (intercept). The TCPCopy Client (tcpcopy) is deployed on the production system and it copies live flow data, does necessary modifications and sends them to the test system in real-time. The TCPCopy Server (intercept) is deployed on the test system and it returns necessary response information to the TCPCopy Client (tcpcopy). To the test server, the reproduced workload is just from end-users. Currently, TCPCopy has been widely used by companies in China.
TCPCopy has little influence on the production system except occupying additional CPU, memory and bandwidth. Moreover, the reproduced workload is similar to the production workload in request diversity, network latency and resource occupation.
Traditional architecture
Advanced architecture
Tsung is an open-source multi-protocol distributed load testing tool
It can be used to stress HTTP, WebDAV, SOAP, PostgreSQL, MySQL, LDAP and Jabber/XMPP servers. Tsung is a
released under the license.
The purpose of Tsung is to simulate users in order to test the scalability and performance of IP based client/server applications. You can use it to do load and stress testing of your servers. Many protocols have been implemented and tested, and it can be easily extended.
It can be distributed on several client machines and is able to simulate hundreds of thousands of virtual users concurrently (or even millions if you have enough hardware ...).
Tsung is developed in , an open-source language made by Ericsson for building robust fault-tolerant distributed applications.
curl-loader (also known as "omes-nik" and "davilka") is an open-source tool written in C-language, simulating application load and application behavior of thousands and tens of thousand HTTP/HTTPS and FTP/FTPS clients, each with its own source IP-address. In contrast to other tools curl-loader is using real C-written client protocol stacks, namely, HTTP and FTP stacks of
and TLS/SSL of , and simulates user behavior with support for login and authentication flavors.
The goal of the project is to deliver a powerful and flexible open-source testing solution as a real alternative to Spirent Avalanche and IXIA IxLoad.
The tool is useful for performance loading of various application services, for testing web and ftp servers and traffic generation. Activities of each virtual client are logged and collected statistics includes information about resolving, connection establishment, sending of requests, receiving responses, headers and data received/sent, errors from network, TLS/SSL and application (HTTP, FTP) level events and errors.
Virtual clients are grouped together to the so-called batches of clients, performing the same sort of activities, like:
user activity simulation by fetching several URLs with configurable
logoff. The tool can be easily extended to generate sftp, telnet, tftp, ldap, ssh, scp etc other application protocols, supported by the great libcurl library.
Grinder是一个开源的JVM负载测试框架,它通过很多负载注射器来为分布式测试提供了便利。 支持用于执行测试脚本的Jython脚本引擎HTTP测试可通过HTTP代理进行管理。根据项目网站的说法,Grinder的 主要目标用户是“理解他们所测代码的人——Grinder不仅仅是带有一组相关响应时间的‘黑盒’测试。由于测试过程可以进行编码——而不是简单地脚本 化,所以程序员能测试应用中内部的各个层次,而不仅仅是通过用户界面测试响应时间。 (商业软件)LoadRunner 是一种预测系统行为和性能的工业标准级负载测试工具。通过以模拟上千万用户实施并发负载及实时性能监测的方式来确认和查找问题,LoadRunner 能够对整个企业架构进行测试。通过使用LoadRunner , 企业能最大限度地缩短测试时间, 优化性能和加速应用系统的发布周期。企业的网络应用环境都必须支持大量用户,网络体系架构中含各类应用环境且由不同供应商提供软件和硬件产品。难以预知的用户负载和愈来愈复杂的应用环境使公司时时担心会发生用户响应速度过慢, 系统崩溃等问题。这些都不可避免地导致公司收益的损失。Mercury Interactive 的 LoadRunner 能让企业保护自己的收入来源, 无需购置额外硬件而最大限度地利用现有的IT 资源, 并确保终端用户在应用系统的各个环节中对其测试应用的质量, 可靠性和可扩展性都有良好的评价。LoadRunner 是一种适用于各种体系架构的自动负载测试工具, 它能预测系统行为并优化系统性能。LoadRunner 的测试对象是整个企业的系统, 它通过模拟实际用户的操作行为和实行实时性能监测, 来帮助您更快的查找和发现问题。此外,LoadRunner 能支持广范的协议和技术, 为您的特殊环境提供特殊的解决方案。
(国产商业工具) kylinPET(performance emulation tool,麒麟宠物)是一款功能强大的性能测试工具;界面友好、操作方便,资源占用率低;自带TCP/IP协议栈,支持虚拟大量IP;支持IPv4、IPv6的多种业务测试;支持WEB/WebService业务与Flex(HTTP)、IMS业务(SIP)、IPTV业务(RTSP/IGMP/MLD)、XMPP、Socket业务、数据库、JMS、FTP/SFTP、WEB视频(包括FLV/MP4/HTTP Live Streaming/HTTP Smooth Streaming/HTTP Dynamic Streaming)、WebSocket、JAVA;支持多种协议组合。
总结一些性能测试的做法
为了减少网络延迟和带宽限制对性能测试的影响,最好在内网进行测试。
性能测试一般在优化前和优化后,测试两轮,这样能够比较出优化前后的效果。
性能测试最好跑的时间长一些,观察程序是否存在内存泄漏、资源未释放等问题。
有的公司为了避免影响线上环境,只在测试环境做性能测试。我所在的公司性能测试一般在线下线上都会做,线上做性能测试可以了解生产环境的性能情况。 参考:
阅读(...) 评论()您所在位置: &
&nbsp&&nbsp&nbsp&&nbsp
win7常作及其他一些问题大杂烩(网络搜集).doc 34页
本文档一共被下载:
次 ,您可全文免费在线阅读后下载本文档。
下载提示
1.本站不保证该用户上传的文档完整性,不预览、不比对内容而直接下载产生的反悔问题本站不予受理。
2.该文档所得收入(下载+内容+预览三)归上传者、原创者。
3.登录后可充值,立即自动返金币,充值渠道很便利
需要金币:350 &&
你可能关注的文档:
··········
··········
一、Fn加F3为启用禁用计算机的通信设备Fn加F4为让电脑进入睡眠模式Fn加F5为可以在以下三种显示方式间切换只使用显示屏只使用已连接的外部显示器同时使用显示屏和外部显示器Fn加F6为关闭显示屏背光以节省电量,按任意键将恢复正常显示Fn加F7为打开或关闭内置触控板Fn加F8为打开或关闭扬声器二、Windows键加L为快速锁定计算机Windows键加Tab键以三维模式打开各个窗口Windows键加E为打开计算机按住Shift不放至八秒钟,筛选键打开或关闭连续按五次Shift键,粘滞键打开或关闭Windows键加Ctrl键再加Tab键产生aero特效并且松开各个键后屏幕停滞于当前的3D画面而不是为相应的前面的活动窗口。如图所示:Windows键加Shift键再加Tab键为以相反的顺序显示三维效果。Windows键加空格键为预览桌面内容gpedit.msc启动组策略三、在开始菜单中的搜索中输入psr打开问题实况录像机可以把屏幕上出现的问题录制下来,然后发送给他人进行自救。如下图:四、在Excel中如何使录入的文字在同一个单元格内换行?有时,在使用excel时,我们需要录入的内容很长,希望能够在同一个单元格内多行录入,可excel的单元格不同于word,既没有换行的命令,直接用回车键不是在同一单元格内换行而是切换到了它下面的单元格.可以通过首先选中一个单元格,开始输入文字,当输入到需要换行的位置时,按动Alt+Enter(回车)键。此时光标就会在同一个单元格内换了一行了,然后就可以继续在这个单元格内录入文字了。五、在运行中输入winver,查看windows操作系统版本号六、打开控制面板找到入门进入找到选择何时通知您有关计算机更改的消息,通过此项可以修改在当您安装程序时弹出对话框确认您是否要进行安装该程序,防止自己误操作安装一些恶意程序.七、如何设置记事本的”自动换行”功能?在使用记事本编辑文字时,不能一屏显示所有文字,应如何设置?可以通过运行regedit,打开注册表编辑器,找到HKEY_CURRENT_USER\Software\Microsoft\Notepad子键,接着在右侧窗口执行如下操作。注销或重新启动计算机后,设置生效。数值名称(操作说明) 数据类型 数值数据(说明) 支持平台
fWrap(修改) DWORD值 1(开启“自动换行”) Windows98\NT\2000\XP
0(关闭“自动换行)”
八、U盘无法正常停止使用解决办法有时在使用U盘的过程中会出现”无法停止通用卷”的问题,可以通过下面的几种方法之一解决问题:无法停止通用卷说明U盘中的文件正被其他程序使用,将使用的U盘的这个程序关闭即可。如果关闭了所有的程序仍不能停止通用卷,可以采取下面的方法。按Ctrl+Alt+Delete组合键打开“Windows任务管理器”窗口,在其中找到“rundll32.exe”进程,将其结束即可。或者打开任务管理器,结束explorer.exe进程,然后点击任务管理器上的文件——新建任务(运行...)将explorer.exe输入其中确定重新打开资源管理器再次尝试将U盘弹出试试。注意:在移走U盘时一定要等到U盘读写指示灯熄灭以后才能把U盘拔出来,否则有可能破坏U盘的数据,甚至损坏U盘。九、保存网页时间很长,甚至死机的原因及解决办法对于喜欢的网页,可以单击鼠标右键,在弹出的快捷菜单中选择”另存为”命令将其保存下来,在选择了”另存为”命令后,IE可能显示”正在保存网页”,但是进度很慢,有时进度条几乎不动,单击”取消”按钮也没用,甚至死机.造成这个现象有三种原因:站点的服务器或网络路由器端过忙,在线时选择”另存为”命令时,电脑不是从临时文件缓存区读取数据,而是直接从网站的服务器中读取数据,如果同时有很多用户保存此网页,网络的服务器会过忙,导致响应时间过长.出现了一个错误窗口,这个错误窗口会被其他网页挡在下面,逐一最小化各个网页,就可以找这个错误窗口,将其关闭即可.在服务器端,因为客户端保存时间过长导致服务器端响应时间过长,从而使服务器强行中止本次任务,这时无论等多长时间都没用.解决方法为如下:立即单击”取消”按钮,终止保存任务,重新选择”另存为”命令进行保存,让系统重新向服务器申请数据.中断网络连接,再次选择”另存为”命令这样IE将会从读者设定的临时文件缓存区读取数据,保存任务可以顺利进行.选择”文件”/”脱机工作“命令,然后再选择”另存为“命令,这样也可以完成保存。注意:如果下载的网页本身不完整,保存结果也是不完整的。如果重新申请,很可能速度还是很慢,最好搜索内容相同的其他网页进行保存。十、Win7系统下CMD命令不能用?点任何键都显示“控制台窗口主机已停止工作”“出现一个问题,导致程序停止正常工作,如果有可用的解决并通知
正在加载中,请稍后...}

我要回帖

更多关于 php 最大响应时间 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信