jmeter-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 62861] httpclient.reset_state_on_thread_group_iteration doesn't reuse connection for think time > 1second
Date Thu, 01 Nov 2018 15:10:21 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=62861

--- Comment #5 from Philippe Mouawad <p.mouawad@ubik-ingenierie.com> ---
(In reply to Abhishek Rao from comment #4)
> (In reply to Philippe Mouawad from comment #3)
> > (In reply to Abhishek Rao from comment #2)
> > > Hi Philippe,
> > > 
> > > The first one is okay. 
> > > 
> > > The configuration you mentioned works, but how do I achieve pooling and
> > > indefinite reuse rather than reusing for an arbitrary time period? For
> > > example: I have scripts acting as clients using pooled connection
> > > architectures to talk to web-services internally where this feature will be
> > > really useful in simulating. 
> > 
> > What if you set:
> > httpclient4.idletimeout=0
> > httpclient4.validate_after_inactivity=1700
> > httpclient4.time_to_live=Very high value
> > 
> > 
> > > Can this be a UI modifiable in future and
> > > parametric?
> > > Also, how do I achieve hybrid simulations with one thread group using
> > > httpclient.reset_state_on_thread_group_iteration=true and one that needs it
> > > set to false?
> > 
> > This would be an enhancement request.
> > Workaround is to use distributed testing with 1 JVM in first mode and second
> > JVM in second mode.
> 
> 
> I dont think the workaround would apply for my scenario, because there's two
> thread groups in the same script and each requires a different setting.
> Distributed mode with different settings across JVMs would mean both the
> thread groups are affected, when the scenario calls for just one thread
> group to have the setting reflected. I think I'll split it into two tests
> for now and run them in parallel. I think the aforementioned will make for a
> great enhancement, I also found out that HC4 supports
> PooledConnectionManager which solves the problem.

What about my first note ?

Regarding workaround, just do the following:

- use for  threads field of each Thread Group  : 
   ${__P(threads_TG1,)}
   ${__P(threads_TG2,)}

Then run first jmeter-server with:

-Jthreads_TG1=X -Jthreads_TG2=0

And second with:

-Jthreads_TG1=0 -Jthreads_TG2=Y

I think it will work

-- 
You are receiving this mail because:
You are the assignee for the bug.
Mime
View raw message