如何为用于负载测试和压力测试的Web应用程序创建模拟器 [英] how to create simulator for web application for load test and stress test

查看:56
本文介绍了如何为用于负载测试和压力测试的Web应用程序创建模拟器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何记录Web服务器日志文件并重播记录的服务器日志,以便以后可以运行日志并检查sql服务器上的负载.

how can i record the web server log files and replay the the recorded server logs so that i can latter run the logs and check the load on sql server.

例如在SQL Server上的请求数和重新放置数

ex. number of request on and the number of resposes on sql server

推荐答案

构建一个可以解析来自Web服务器的日志文件并再次重播请求的工具.然后,您可以使用普通的Web浏览器访问您的网站来生成测试用例,并记录日志文件.

Build a tool that can parse the log files from the web server and replay the requests again. Then you generate test cases by accessing your site using a normal web browser and record the log files.

然后您可以一次又一次地重播相同的序列,并且您的工具还可以读取多个日志并同时回放以模拟并发.

You can then replay the same sequence over and over again and your tool could also read multiple logs and play them back simultaneously to simulate concurrency.

确保日志文件包含所有GET和POST请求参数以及时间戳.

Make sure that the log files include all GET and POST request parameters as well as timestamps.

这篇关于如何为用于负载测试和压力测试的Web应用程序创建模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆