You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Christoph <ch...@gothaer-systems.de> on 2010/07/08 13:23:40 UTC

how to stress test a http proxy server?

Hi,
I'm trying to stress test our new http proxy server.
The server is working with user authentication and password.

I know that jmeter has proxy parameters -u <proxy_user> -a <proxy_passwd>.
However, my intention is to use 600 different user/password combinations.

Currently my testplan looks like this:

Thread-Group
    HTTP Cookie Manager
    CSV Data Set Config     (here users and password are stored)
    Loop Controller
        HTTP-Request URL:http://intranet.gosys.test


What I'm concerned with is
how to cause jmeter to perform proxy authentication with different users?

Can anyone help, please?

Thanks in advance
Christoph 
-- 
View this message in context: http://jmeter.512774.n5.nabble.com/how-to-stress-test-a-http-proxy-server-tp1044992p1044992.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: how to stress test a http proxy server?

Posted by Christoph <ch...@gothaer-systems.de>.
Jaya,
thanks a lot for your advice which is working quite well for my current
purposes.
-- 
View this message in context: http://jmeter.512774.n5.nabble.com/how-to-stress-test-a-http-proxy-server-tp1044992p1045299.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: how to stress test a http proxy server?

Posted by jaya misra <ja...@gmail.com>.
hi,
regarding ur test.......even i am using jmeter for a similar scenario but im
using the* nightly release* to do so..
i have tried it for 100 users by including csv data configuration(which
stores the username and corresponding passwords) in my test plan.
It works.........try it

On Thu, Jul 8, 2010 at 5:04 PM, Karsten Gaul <ka...@exedio.com>wrote:

> Hi Christoph,
>
> the loop controller loops x times within one iteration step but the csv is
> read only once per iteration. This means that you currently use the same
> login data for x loops. Try leaving out the loop controller and set the
> iterations in the thread group to the number of lines you have in your csv
> file.
>
> rgds
> Karsten
>
> Am 08.07.2010 13:23, schrieb Christoph:
>
>
>> Hi,
>> I'm trying to stress test our new http proxy server.
>> The server is working with user authentication and password.
>>
>> I know that jmeter has proxy parameters -u<proxy_user>  -a<proxy_passwd>.
>> However, my intention is to use 600 different user/password combinations.
>>
>> Currently my testplan looks like this:
>>
>> Thread-Group
>>     HTTP Cookie Manager
>>     CSV Data Set Config     (here users and password are stored)
>>     Loop Controller
>>         HTTP-Request URL:http://intranet.gosys.test
>>
>>
>> What I'm concerned with is
>> how to cause jmeter to perform proxy authentication with different users?
>>
>> Can anyone help, please?
>>
>> Thanks in advance
>> Christoph
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

Re: how to stress test a http proxy server?

Posted by Karsten Gaul <ka...@exedio.com>.
Hi Christoph,

the loop controller loops x times within one iteration step but the csv 
is read only once per iteration. This means that you currently use the 
same login data for x loops. Try leaving out the loop controller and set 
the iterations in the thread group to the number of lines you have in 
your csv file.

rgds
Karsten

Am 08.07.2010 13:23, schrieb Christoph:
>
> Hi,
> I'm trying to stress test our new http proxy server.
> The server is working with user authentication and password.
>
> I know that jmeter has proxy parameters -u<proxy_user>  -a<proxy_passwd>.
> However, my intention is to use 600 different user/password combinations.
>
> Currently my testplan looks like this:
>
> Thread-Group
>      HTTP Cookie Manager
>      CSV Data Set Config     (here users and password are stored)
>      Loop Controller
>          HTTP-Request URL:http://intranet.gosys.test
>
>
> What I'm concerned with is
> how to cause jmeter to perform proxy authentication with different users?
>
> Can anyone help, please?
>
> Thanks in advance
> Christoph

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Next release of JMeter: when?

Posted by Christoph <ch...@gothaer-systems.de>.
I wonder if it's possible to work around that by bsh script.
Then a testplan would consist of an bsh sampler
that loads the httpclient libs
and manages different http proxy authentications for each thread.

Something like this:

HttpClient client = new HttpClient();
client.getParams().setAuthenticationPreemptive(true);
Credentials defaultcreds = new UsernamePasswordCredentials("${username}",
"${password}");
client.setProxyCredentials(new AuthScope("proxy.gosys.test", 8080,
AuthScope.ANY_REALM), defaultcreds);

HttpMethod method = new GetMethod("http://intranet.gosys.test");

Is there anything special which I need to consider
when I start 600 threads that use a bsh script like that above?
-- 
View this message in context: http://jmeter.512774.n5.nabble.com/how-to-stress-test-a-http-proxy-server-tp1044992p1045291.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Next release of JMeter: when?

Posted by sebb <se...@gmail.com>.
When it is ready; hopefully soon.

2010/7/8 Andrey Pohilko <ap...@fininfor.ru>:
> Hi sebb,
>
> What's criteria for the next release of JMeter? When we can expect it?
>
> С уважением,
> Андрей Похилько
>
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Thursday, July 08, 2010 3:44 PM
> To: JMeter Users List
> Subject: Re: how to stress test a http proxy server?
>
> On 8 July 2010 12:23, Christoph <ch...@gothaer-systems.de>
> wrote:
>>
>> Hi,
>> I'm trying to stress test our new http proxy server.
>> The server is working with user authentication and password.
>>
>> I know that jmeter has proxy parameters -u <proxy_user> -a <proxy_passwd>.
>> However, my intention is to use 600 different user/password combinations.
>>
>> Currently my testplan looks like this:
>>
>> Thread-Group
>>    HTTP Cookie Manager
>>    CSV Data Set Config     (here users and password are stored)
>>    Loop Controller
>>        HTTP-Request URL:http://intranet.gosys.test
>>
>>
>> What I'm concerned with is
>> how to cause jmeter to perform proxy authentication with different users?
>
> With JMeter 2.3.4, you cannot change the proxy credentials during a test
> run.
> So you will need to start the test 600 times.
>
> However, this feature is in the current code and will be in the next
> release.
>
>> Can anyone help, please?
>>
>> Thanks in advance
>> Christoph
>> --
>> View this message in context:
> http://jmeter.512774.n5.nabble.com/how-to-stress-test-a-http-proxy-server-tp
> 1044992p1044992.html
>> Sent from the JMeter - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Next release of JMeter: when?

Posted by Andrey Pohilko <ap...@fininfor.ru>.
Hi sebb,

What's criteria for the next release of JMeter? When we can expect it?
 
С уважением,
Андрей Похилько

-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com] 
Sent: Thursday, July 08, 2010 3:44 PM
To: JMeter Users List
Subject: Re: how to stress test a http proxy server?

On 8 July 2010 12:23, Christoph <ch...@gothaer-systems.de>
wrote:
>
> Hi,
> I'm trying to stress test our new http proxy server.
> The server is working with user authentication and password.
>
> I know that jmeter has proxy parameters -u <proxy_user> -a <proxy_passwd>.
> However, my intention is to use 600 different user/password combinations.
>
> Currently my testplan looks like this:
>
> Thread-Group
>    HTTP Cookie Manager
>    CSV Data Set Config     (here users and password are stored)
>    Loop Controller
>        HTTP-Request URL:http://intranet.gosys.test
>
>
> What I'm concerned with is
> how to cause jmeter to perform proxy authentication with different users?

With JMeter 2.3.4, you cannot change the proxy credentials during a test
run.
So you will need to start the test 600 times.

However, this feature is in the current code and will be in the next
release.

> Can anyone help, please?
>
> Thanks in advance
> Christoph
> --
> View this message in context:
http://jmeter.512774.n5.nabble.com/how-to-stress-test-a-http-proxy-server-tp
1044992p1044992.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: how to stress test a http proxy server?

Posted by sebb <se...@gmail.com>.
On 8 July 2010 12:23, Christoph <ch...@gothaer-systems.de> wrote:
>
> Hi,
> I'm trying to stress test our new http proxy server.
> The server is working with user authentication and password.
>
> I know that jmeter has proxy parameters -u <proxy_user> -a <proxy_passwd>.
> However, my intention is to use 600 different user/password combinations.
>
> Currently my testplan looks like this:
>
> Thread-Group
>    HTTP Cookie Manager
>    CSV Data Set Config     (here users and password are stored)
>    Loop Controller
>        HTTP-Request URL:http://intranet.gosys.test
>
>
> What I'm concerned with is
> how to cause jmeter to perform proxy authentication with different users?

With JMeter 2.3.4, you cannot change the proxy credentials during a test run.
So you will need to start the test 600 times.

However, this feature is in the current code and will be in the next release.

> Can anyone help, please?
>
> Thanks in advance
> Christoph
> --
> View this message in context: http://jmeter.512774.n5.nabble.com/how-to-stress-test-a-http-proxy-server-tp1044992p1044992.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org