Problem with multiple session test for ad-hoc scripts

Added over 5 years ago

Dear Mr.,

I am developing a web service which sending an iq to Tigase server for requesting a customized ad-hoc command. Everything's ok when I run single thread test with 10k requests for web service, but when I run multiple sessions test (250 session) by JMETER for web service concurrently, Tigase server's just processed about 20-30 firstly requests and pend for others while the web service still sends iq to Tigase server. I have tried some configuration properties relating to traffict:

--cm-traffic-throttling = xmpp:10000:0:disc,bin:100m:0:disc


--net-buff-standard = 1024k

--cm-ht-traffic-throttling = xmpp:1024k:0:disc,bin:200m:0:disc

--net-buff-high-throughput = 256k

Bu no help. Can u give me some suggesstions for this problem. Thanks a lot :)

PS: I use Tigase cluster with ACS for ad-hoc scripts

Replies (1)


Added by Artur Hefczyc TigaseTeam over 5 years ago

A few questions:

  1. What is this ad-hoc command doing?

  2. What is it's average processing time?

  3. Is it meant to be run under a very heavy load?

  4. Does it access any IO resources such as DB or disk?

  5. Is it thread-safe?

  6. Could you please explain in more details what is happening when you run it for multiple sessions? Is it just slow or blocked or what? Are there any exceptions in the server log files?

While I do not really understand what is the problem and what is happening on your installation and I do not understand a purpose of the ad-hoc command my options to provide a help are very limited.

One thing to have in mind is ad-hoc commands are not really meant to be run under a very high load. This is admin tool for the server management purpose. Some of the ad-hoc commands can take long to execute, they run from within a scripting environment which is slow but normally for administrative purposes it is not an issue.

I suggest you tell us what you need to do from a functional point of view and we can tell you what would be the best approach to the problem.