使用Jmeter在生产环境中进行性能测试 [英] Performance testing in production environment using Jmeter

查看:392
本文介绍了使用Jmeter在生产环境中进行性能测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi stack Overflow社区,

Hi stack Overflow community,

我需要您的宝贵帮助 我使用Jmeter和Blazemeter chrome插件为我们的Web应用程序开发了一个脚本 方案为
登录>>演练一些页面>>注销 脚本在我们的本地环境中成功运行.我将摘要报告用作侦听器,并使用非Gui模式执行测试

i need your valuable help I developed a script for our web application using Jmeter and Blazemeter chrome plugin Scenario as
login >> walkthrough some pages >>logoout Script working successfully in our local environment. I am using summary report as a Listener and non Gui mode for performing test

现在,我需要在客户端生产环境上为250位用户进行负载测试. 测量点是 1.每个请求的响应时间 2.数据流量大小 3.CPU和内存利用率

Now i need to do load testing for 250 usesr on client production environment. measurement points are 1.Response time for each request 2.Data traffic Size 3.CPU and memory utilization

我有很多问题: 1.在生产环境上运行脚本时需要考虑的所有事项 2.我需要增加加速时间吗? 3.实际环境中有代理和负载平衡器.(我们的本地没有) 4.我是否需要保留工具记录的所有.png,css,gif或可以禁用它们.这会影响我的结果吗? 为了使我的脚本与这种环境兼容,我需要做些什么更改.

i have so many questions: 1.what all points i need to consider when I run my script on production environment 2.Do i need to add ramp up time. 3. real environment have having proxies and load balancers.(our local doesn’t have) 4.Do I need to keep all .png, css ,gif as recorded by tool or I can disable them.is it effect my results? what changes i need to do to make my script compatible to such environment.

考虑到我是Jmeter和自动化测试的新手,除博客,堆栈溢出社区和Google之外,此工具无其他帮助. 关于它的实际实现非常紧张. 在此先感谢您帮助您成长.

Considering i a m new to Jmeter and automation testing and no help on this tool other than blogs, stack overflow community and google. Very much tense about its real implementation. Thanks in advance as u help someone to grow.

我还需要更改脚本的结构吗?如果没有对我的荣誉,如果有请我指导,请感谢有人为正确的结构类型提供屏幕截图.

Do i need to change structure of my script also. if no Kudos to me ,if yes plz direct me, appreciate if someone provide screenshot for right type of structure .

推荐答案

以下是应回答您大多数问题的要点:

Below are the points which should answer most of your questions:

  1. 如果产品是实时产品,则不应在生产环境中运行脚本,而应在类似环境的生产环境中运行脚本.

  1. You should not run script on Production environment if your product is live, you should run it on production like environment.

您只能模拟API,因此不需要css,png.

You can only simulate APIs so no css, png are required.

必须按要求进行升级.

结构可以按事务划分,这会更合适.

Structure can be divided in transactions, it would be more proper.

您需要在类似于Production的环境中检查脚本一次,因为该脚本具有本地环境所没有的代理和负载平衡器.

You need to check your script once with the Production like environment as it is having proxies and load balancers which your local environment does not have.

无论您需要测量什么,Jmeter上都可以使用不同的插件.

Whatever things you need to measure, there are different plugins available for it on Jmeter.

请确保尽可能对大多数内容进行参数化.

Do make sure most of the things are parameterized as much as possible.

运行测试时,请同时监视数据库和应用程序服务器.

When running your test, monitor both database as well as application server.

有关更多详细信息或参考,您可以浏览以下网址:

For more details or reference you can go through below urls:

https://www.blazemeter.com/blog/getting -started-jmeter-basic-tutorial

http://www.seleniumtests.com/p/performance-testing -videos.html

这篇关于使用Jmeter在生产环境中进行性能测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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