You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Tony PAUVREAU <to...@procapital.fr> on 2006/09/15 08:56:59 UTC

jmeter 2.2 - proxy settings doesn't work

Hi
 
Im using jmeter 2.1.1 and jmeter 2.2 when i use the 2.2 version the proxy
support doesn't seems to be working
e.g. : java -jar ApacheJMeter.jar -H myProxy -P myProxyPort
a simple test, im using "http client request" to request google homepage
it's work fine with 2.1.1 version but not with 2.2
i try to overide proxy parameter directly with jvm argument (e.g. :
-Dhttp.proxyHost & -Dhttp.proxyPort) but doesn't work
 
so ... how could i specify proxy server in jmeter 2.2
 
thanks
 
 
Tony Pauvreau
tony.pauvreau@procapital.fr
01 53 77 95 87

Re: jmeter 2.2 - proxy settings doesn't work

Posted by sebb <se...@gmail.com>.
Might be worth trying the current nightly build - there were some
fixes in the proxy area for the HttpClient sampler.

On 15/09/06, Tony PAUVREAU <to...@procapital.fr> wrote:
> I have the following stackTrace
>
> the stacktrace in the tree of results :
> java.net.ConnectException: Connection timed out: connect  at
> java.net.PlainSocketImpl.socketConnect(Native Method)  at
> java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
>  at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
>  at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
>  at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
>  at java.net.Socket.connect(Socket.java:516)
>  at java.net.Socket.connect(Socket.java:466)
>  at java.net.Socket.<init>(Socket.java:366)
>  at java.net.Socket.<init>(Socket.java:239)
>  at
> org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSo
> cket(DefaultProtocolSocketFactory.java:79)
>  at
> org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSo
> cket(DefaultProtocolSocketFactory.java:121)
>  at
> org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706)
>  at
> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethod
> Director.java:386)
>  at
> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDir
> ector.java:170)
>  at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
>  at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
>  at
> org.apache.jmeter.protocol.http.sampler.HTTPSampler2.sample(HTTPSampler2.jav
> a:527)
>  at
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBa
> se.java:658)
>  at
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBa
> se.java:647)
>  at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:247)
>  at java.lang.Thread.run(Thread.java:595)
>
> -----Message d'origine-----
> De : sebb [mailto:sebbaz@gmail.com]
> Envoyé : vendredi 15 septembre 2006 17:21
> À : JMeter Users List
> Objet : Re: jmeter 2.2 - proxy settings doesn't work
>
> On 15/09/06, Tony PAUVREAU <to...@procapital.fr> wrote:
> >
> >
> > Hi
> >
> > Im using jmeter 2.1.1 and jmeter 2.2 when i use the 2.2 version the
> > proxy support doesn't seems to be working e.g. : java -jar
> > ApacheJMeter.jar -H myProxy -P myProxyPort a simple test, im using
> > "http client request" to request google homepage it's work fine with
> > 2.1.1 version but not with 2.2 i try to overide proxy parameter
> > directly with jvm argument (e.g. :
> > -Dhttp.proxyHost & -Dhttp.proxyPort) but doesn't work
> >
> > so ... how could i specify proxy server in jmeter 2.2
>
> It's supposed to work the same way in JMeter 2.2, i.e. via the -H and -P
> parameters.
>
> Which sampler(s) are you using?
>
> Any messages in jmeter.log or the console?
>
> > thanks
> >
> >
> >
> > Tony Pauvreau
> > tony.pauvreau@procapital.fr
> > 01 53 77 95 87
>
> ---------------------------------------------------------------------
> 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: jmeter 2.2 - proxy settings doesn't work

Posted by Tony PAUVREAU <to...@procapital.fr>.
I have the following stackTrace

the stacktrace in the tree of results : 
java.net.ConnectException: Connection timed out: connect  at
java.net.PlainSocketImpl.socketConnect(Native Method)  at
java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
 at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
 at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
 at java.net.Socket.connect(Socket.java:516)
 at java.net.Socket.connect(Socket.java:466)
 at java.net.Socket.<init>(Socket.java:366)
 at java.net.Socket.<init>(Socket.java:239)
 at
org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSo
cket(DefaultProtocolSocketFactory.java:79)
 at
org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSo
cket(DefaultProtocolSocketFactory.java:121)
 at
org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706)
 at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethod
Director.java:386)
 at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDir
ector.java:170)
 at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
 at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
 at
org.apache.jmeter.protocol.http.sampler.HTTPSampler2.sample(HTTPSampler2.jav
a:527)
 at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBa
se.java:658)
 at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBa
se.java:647)
 at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:247)
 at java.lang.Thread.run(Thread.java:595) 

-----Message d'origine-----
De : sebb [mailto:sebbaz@gmail.com] 
Envoyé : vendredi 15 septembre 2006 17:21
À : JMeter Users List
Objet : Re: jmeter 2.2 - proxy settings doesn't work

On 15/09/06, Tony PAUVREAU <to...@procapital.fr> wrote:
>
>
> Hi
>
> Im using jmeter 2.1.1 and jmeter 2.2 when i use the 2.2 version the 
> proxy support doesn't seems to be working e.g. : java -jar 
> ApacheJMeter.jar -H myProxy -P myProxyPort a simple test, im using 
> "http client request" to request google homepage it's work fine with 
> 2.1.1 version but not with 2.2 i try to overide proxy parameter 
> directly with jvm argument (e.g. :
> -Dhttp.proxyHost & -Dhttp.proxyPort) but doesn't work
>
> so ... how could i specify proxy server in jmeter 2.2

It's supposed to work the same way in JMeter 2.2, i.e. via the -H and -P
parameters.

Which sampler(s) are you using?

Any messages in jmeter.log or the console?

> thanks
>
>
>
> Tony Pauvreau
> tony.pauvreau@procapital.fr
> 01 53 77 95 87

---------------------------------------------------------------------
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: jmeter 2.2 - proxy settings doesn't work

Posted by sebb <se...@gmail.com>.
On 15/09/06, Tony PAUVREAU <to...@procapital.fr> wrote:
>
>
> Hi
>
> Im using jmeter 2.1.1 and jmeter 2.2 when i use the 2.2 version the proxy
> support doesn't seems to be working
> e.g. : java -jar ApacheJMeter.jar -H myProxy -P myProxyPort
> a simple test, im using "http client request" to request google homepage
> it's work fine with 2.1.1 version but not with 2.2
> i try to overide proxy parameter directly with jvm argument (e.g. :
> -Dhttp.proxyHost & -Dhttp.proxyPort) but doesn't work
>
> so ... how could i specify proxy server in jmeter 2.2

It's supposed to work the same way in JMeter 2.2, i.e. via the -H and
-P parameters.

Which sampler(s) are you using?

Any messages in jmeter.log or the console?

> thanks
>
>
>
> Tony Pauvreau
> tony.pauvreau@procapital.fr
> 01 53 77 95 87

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