HTTP requests and HeaderManager

2016-12-22 Thread Antony Bowesman
Could be way off target here, as I'm a bit of a newbie. I have a custom java sampler that uses a HeaderManager to manage headers in multiple requests. My sampler makes a number of http requests in a single sample to form part of a dynamic 'transaction' and this means that different requests

Finding CookieManager from within test sampler

2016-12-22 Thread Antony Bowesman
I have a test where I have a CookieManager assigned to a thread group. I have written a custom JavaSamplerClient where I am using the HTTPSamplerFactor to create a HTTPSamplerBase object within that java client - I use it to manage multiple requests, hence rolling my own. I can add a new

RE: How to diagnose NoHttpResponseException

2017-08-07 Thread Antony Bowesman
05db44621a%7C0%7C0%7C636376878889185773=CD1iO23Q > ySR3LVYYhUXNVhtg%2FM%2Forw4JAMuHJO6%2BQbk%3D=0 > > Regards > > On Mon, Aug 7, 2017 at 8:43 AM, Antony Bowesman < > antony.bowes...@williamhill.com.au> wrote: > > > I am using JMeter 3.1 and HttpClient4 > > I hav

How to diagnose NoHttpResponseException

2017-08-07 Thread Antony Bowesman
I am using JMeter 3.1 and HttpClient4 I have the following httpclient settings in user.properties httpclient4.retrycount=3 httpclient4.validate_after_inactivity=2 httpclient4.time_to_live=180 I have 5 load generators and each generator is running approx. 6,000 VU across a number of

RE: Sending cookies to non origin domains

2017-06-01 Thread Antony Bowesman
t; import org.apache.jmeter.protocol.http.control.Cookie; > > CookieManager manager = sampler.getCookieManager(); int count = > manager.getCookieCount(); for(int i=0;i<count;i++){ Cookie cookie = > manager.get(i); cookie.setDomain(vars.get("domain")); > } > > 20

RE: Sending cookies to non origin domains

2017-06-01 Thread Antony Bowesman
> Thanks > > On Friday, June 2, 2017, Antony Bowesman > <antony.bowes...@williamhill.com.au> > wrote: > > > All my samplers are Java samplers, so I am pretty much doing what you > > suggest in my code, but I worked out that the BasicDomainHandler, used &g

RE: Sending cookies to non origin domains

2017-06-01 Thread Antony Bowesman
ers List > Subject: Re: Sending cookies to non origin domains > > Hello, > What policy are you using for Cookie Manager ? > Thanks > > On Friday, June 2, 2017, Antony Bowesman > <antony.bowes...@williamhill.com.au> > wrote: > > > All my samplers are Java sam

RE: Cleaning up memory used by an HTTPSampleResult

2018-04-03 Thread Antony Bowesman
I was unnecessarily hanging on to these SampleResult objects, so have cleaned that up, but the question on how to know that the thread has made its last iteration still stands - any ideas or is this something for dev? It's version 3.3 > -Original Message- > From: Antony Bo

Cleaning up memory used by an HTTPSampleResult

2018-04-02 Thread Antony Bowesman
I've been investigating a memory leak and it seems that under certain circumstances when I get a redirect, I end up downloading a bunch of embedded resources I don't need. In this case, these HTTPSampleResult objects end up being part of my JavaSampler instance, which is added to the

RE: Feedback and question re Java memory/GC settings for Jmeter load generator CPU issue

2018-03-20 Thread Antony Bowesman
eter > load generator CPU issue > > > > Am 19. März 2018 22:53:19 MEZ schrieb Antony Bowesman > <antony.bowes...@williamhill.com.au>: > >Mmm, I saw the images had gone too :( > > > >I have set up to do a gc log next time I run the test and will dig into > &g

RE: Feedback and question re Java memory/GC settings for Jmeter load generator CPU issue

2018-03-19 Thread Antony Bowesman
va memory/GC settings for Jmeter > load generator CPU issue > > Hi, > > The images seem to have been filter out of my email at least. > > Can you collect and post a GC log. Most likely young gen is too small but a gc > log would confirm this. > > Kind regards, > Ki

RE: Feedback and question re Java memory/GC settings for Jmeter load generator CPU issue

2018-03-20 Thread Antony Bowesman
eter.apache.org> > Subject: RE: Feedback and question re Java memory/GC settings for Jmeter > load generator CPU issue > > > > Am 19. März 2018 22:53:19 MEZ schrieb Antony Bowesman > <antony.bowes...@williamhill.com.au>: > >Mmm, I saw the images had gone too :(

Feedback and question re Java memory/GC settings for Jmeter load generator CPU issue

2018-03-18 Thread Antony Bowesman
Hi, I just thought I'd send in some info about a problem I've been looking at recently - with a question of best GC settings I have a number of JMeter load generators (LG) and I have been seeing CPU spikes on the boxes during a test. I am monitoring CPU and memory from within a Java sampler,

Sent request with no User-Agent header

2018-11-28 Thread Antony Bowesman
Using JMeter 3.3 How can I send an http request without a User-Agent header. I have a HeaderManager for the request, but if I don't specify as UA header, it sends something like User-Agent: Apache-HttpClient/4.5.3 (Java/1.8.0_102) whereas if I specify User-Agent as an empty value, it will

Send request without User-Agent header

2018-11-29 Thread Antony Bowesman
Using JMeter 3.3 How can I send an http request without a User-Agent header. I have a HeaderManager for the request, but if I don't specify as UA header, it sends something like User-Agent: Apache-HttpClient/4.5.3 (Java/1.8.0_102) whereas if I specify User-Agent as an empty value, it will

Re: Send request without User-Agent header

2018-12-03 Thread Antony Bowesman
; > Regards > On Sunday, December 2, 2018, Antony Bowesman > wrote: > > > Using JMeter 3.3 > > > > > > > > How can I send an http request without a User-Agent header. > > > > > > > > I have a HeaderManager for the request,

Send request without User-Agent header

2018-12-02 Thread Antony Bowesman
Using JMeter 3.3 How can I send an http request without a User-Agent header. I have a HeaderManager for the request, but if I don’t specify as UA header, it sends something like User-Agent: Apache-HttpClient/4.5.3 (Java/1.8.0_102) whereas if I specify User-Agent as an empty value, it