runTest: synchronous vs. asynchronous

2012-01-20 Thread Havard Blok
A common use case of JMeter within Google is to implement a custom sampler, sub-classed from AbstractJavaSamplerClient, and handle the requests relevant to the load test in the runTest() method (from JavaSamplerClient). Typically, RPC requests over Protocol Buffers ( http://en.wikipedia.org/wiki/Pr

Re: runTest: synchronous vs. asynchronous

2012-01-20 Thread sebb
On 20 January 2012 17:00, Havard Blok wrote: > A common use case of JMeter within Google is to implement a custom sampler, > sub-classed from AbstractJavaSamplerClient, and handle the requests > relevant to the load test in the runTest() method (from JavaSamplerClient). > Typically, RPC requests o

Re: runTest: synchronous vs. asynchronous

2012-01-24 Thread Havard Blok
On 20 January 2012 18:26, sebb wrote: > > You can certainly make runTest() return without waiting for the SUT. > But how do you handle the responses? > I guess the caller of runTest() would have to have its own thread pool, and issue calls to satisfy the desired QPS rate. However, I think you're

Re: runTest: synchronous vs. asynchronous

2012-01-24 Thread sebb
On 24 January 2012 16:11, Havard Blok wrote: > On 20 January 2012 18:26, sebb wrote: > >> >> You can certainly make runTest() return without waiting for the SUT. >> But how do you handle the responses? >> > > I guess the caller of runTest() would have to have its own thread pool, and > issue call

Re: runTest: synchronous vs. asynchronous

2012-01-25 Thread Havard Blok
On 24 January 2012 20:21, sebb wrote: > > Effectively that is just increasing the total number of threads. > And, unless the thread pool is infinitely expandable, the same problem > may still occur. > > Note also that although the sampler thread is doing nothing whilst > waiting for a reply, > at

Re: runTest: synchronous vs. asynchronous

2012-02-03 Thread Shmuel Krakower
I get Havard point. He asks for something simillar to what's HP Load Runner has, to promise constant throuput no matter how much threads / virtual users he set and what the SUT state is (I.e. responding very slow). On the other hand having async samplers might be a problem when you need to parse a