简体   繁体   English

如何在xpages中进行负载测试

[英]How to do load testing in xpages

I am facing issue with my xpage application. 我的xpage应用程序遇到问题。 It works perfectly fine with less number of concurrent users. 并发用户数较少时,它可以很好地工作。 But When more concurrent users say more then 1000 , try to access xpage application, It becomes very slow. 但是当更多的并发用户说超过1000时,尝试访问xpage应用程序,它将变得非常缓慢。 I have looked the code and corrected some redundant code . 我看过代码并更正了一些多余的代码。

But I am not sure this is the issue. 但是我不确定这是问题所在。 For that is there any way in lotus notes to simulate the load testing with 1000 users? 为此,Lotus Notes中有什么方法可以模拟1000个用户的负载测试?

Please help me if any workaround there. 如果有任何解决方法,请帮助我。

Agree with Oliver about using JMeter. 与Oliver同意使用JMeter。

But then what you really want is to find out where you have "expensive" code. 但是,您真正想要的是找出哪里有“昂贵”的代码。 For an agent you can just "profile" it. 对于代理,您可以对其进行“配置”。 However, that is a little less straight-forward for an XPage. 但是,对于XPage而言,这并不那么简单。 You can try the XPages Toolbox from OpenNTF.org. 您可以从OpenNTF.org试用XPages Toolbox I have not tried it on Domino 9.0.x but I would think you could use it. 我没有在Domino 9.0.x上尝试过它,但我认为您可以使用它。

Another simple (and quick) way to get an idea is to print some time info on the console of the server when you load the pages in your application. 另一种简单快速的想法是在应用程序中加载页面时在服务器的控制台上打印一些时间信息。 You can use a phase listener to add this information - or put it in another more specific location - it really depends on the way that your application is structured. 您可以使用阶段侦听器添加此信息-或将其放置在其他更特定的位置-它实际上取决于应用程序的结构方式。 But this way you can get a very quick idea of where the bottlenecks are before you dive into something like the toolbox :-) 但是通过这种方式,您可以快速了解瓶颈所在,然后再深入工具箱:-)

/John /约翰

我们使用JMeter来了解如果X用户将在Y线程等中访问我们的应用程序,将会发生什么。http://jmeter.apache.org/

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

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