简体   繁体   English

Web 服务器负载测试

[英]Web Server load testing

I am suppose to test web server's load, performance and stress testing.我想测试网络服务器的负载、性能和压力测试。 There will be over 100 client machines that will be connecting to it.将有 100 多台客户端计算机连接到它。 I am using python-selenium webdriver to start a grid.我正在使用 python-selenium webdriver 来启动网格。 the server is considered as a selenium 'hub' and clients as 'nodes'.服务器被视为硒“中心”,客户端被视为“节点”。 This part is working fine till now.到目前为止,这部分工作正常。

Now the hard part, I need to monitor the server's performance, load and stress from another third party system while the scripts are running.现在是困难的部分,我需要在脚本运行时监控服务器的性能、负载和来自另一个第三方系统的压力。

Is there any possibility if this can work ?如果这行得通,有没有可能? I tried using many open sources like funkload, locust, web server stress tool 8. But none of them can monitor the load tests that is swarming dynamically on to the load.我尝试使用许多开源软件,例如 funkload、locust、Web 服务器压力工具 8。但它们都无法监控动态涌入负载的负载测试。

While I was browsing in this site;当我浏览本网站时; I came across this project on https://github.com/djangofan/WebDriverTestingTemplate .我在https://github.com/djangofan/WebDriverTestingTemplate上遇到了这个项目。 Will this be helpful to my project?这对我的项目有帮助吗?

Selenium is a functional tool so it's not a good idea to use it for performance test. Selenium 是一种功能性工具,因此将其用于性能测试并不是一个好主意。

To achieve same you can go with JMETER as it a good open source tool available为了达到同样的目的,你可以使用 JMETER,因为它是一个很好的开源工具

still if you want to use selenium then there is some script present to integrate JMeter with selenium.如果你想使用 selenium,那么有一些脚本可以将 JMeter 与 selenium 集成。 I never tried it but you can try it.我从来没有试过,但你可以试试。 Refer below link for same:-请参阅以下链接以获取相同信息:-

https://blazemeter.com/blog/jmeter-webdriver-samplerhttps://blazemeter.com/blog/jmeter-webdriver-sampler

http://seleniummaster.com/sitecontent/index.php/performance-test-menu/selenium-load-test-menu/174-use-selenium-webdriver-with-jmeter http://seleniummaster.com/sitecontent/index.php/performance-test-menu/selenium-load-test-menu/174-use-selenium-webdriver-with-jmeter

Hope it will help :)希望它会有所帮助:)

It is possible to do with Selenium, but it will take much more resources (especially your time).可以使用 Selenium,但它会占用更多资源(尤其是您的时间)。

I would also recommend to try out the我还建议尝试

LoadComplete from SmartBear从 SmartBear 加载完成

It is a very simple and intuitive tool, which lets you run and schedule your tests + send a report with execution results.它是一个非常简单直观的工具,可让您运行和安排测试 + 发送带有执行结果的报告。

You can use Apache JMeter to conduct the load from 3rd-party web server.您可以使用Apache JMeter从 3rd 方 Web 服务器进行加载。

With PerfMon Metrics Collector plugin you will be able to get server-side health metrics along with the load test results.使用PerfMon Metrics Collector插件,您将能够获得服务器端健康指标以及负载测试结果。

See Getting Started: Scripting with JMeter guide and Learn JMeter in 60 minutes for quick ramp-up on Apache JMeter.请参阅入门:使用 JMeter 编写脚本指南在 60 分钟内学习 JMeter以快速上手Apache JMeter。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM