简体   繁体   English

jmeter,模拟线程数较少的用户

[英]jmeter, simulate users with lower number of threads

I am looking for a way to simulate more concurrent users of a web application than I use real threads in jmeter. 我正在寻找一种比在jmeter中使用真实线程更多的方式来模拟Web应用程序的并发用户。 I want to simulate close to real-world usage pattern, ie user periodically does something on the page but stays logged in 9 hours a day, then logs out. 我想模拟接近实际的使用模式,即用户定期在页面上执行某些操作,但每天保持9小时处于登录状态,然后注销。 Users in other areas do same at different times, etc. I want to potentially simulate 100000 or even more users of the system. 其他地区的用户在不同的时间做同样的事情,等等。我想潜在地模拟100000个甚至更多的系统用户。 So it makes a big difference if I can use less threads than simulated users. 因此,如果我可以使用比模拟用户少的线程,那将有很大的不同。 I'll be perhaps using whatever number of amazon ec2 large instances it takes. 我可能会使用所需数量的Amazon EC2大型实例。 I can't see any indication that this is possible with jmeter. 我看不到任何迹象表明jmeter可以做到这一点。 I guess it is if I write my own sampler and use my own thread pool and save state of each logged in user to some cache but that removes a lot of benefits using the framework. 我猜想是如果我编写自己的采样器并使用自己的线程池,并将每个已登录用户的状态保存到某个缓存中,但是使用该框架会带来很多好处。

In a mailing list thread I'm reading some rational but it boils down to being too hard to implement and not worth. 邮件列表线程中,我正在阅读一些理智的知识,但归结为太难实现且不值得。 Well I think the only real way to test a web app is to simulate the anticipated real usage pattern which means a lot of idle users. 好吧,我认为测试Web应用程序的唯一真实方法是模拟预期的实际使用模式,这意味着很多空闲用户。 So I'm wondering if I'm missing some way to do that or does just nobody care enough to implement? 所以我想知道我是否缺少某种方法来做到这一点,还是没有人足够在意实现?

Try building your own JMeter Cloud using docker & any cloud provider (a lightweight virtualisation). 尝试使用docker和任何云提供商(轻量级虚拟化)构建自己的JMeter Cloud。 Check my presentation here - http://goo.gl/fJByCb 在此处查看我的演示文稿-http: //goo.gl/fJByCb

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

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