Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 4993 invoked from network); 9 Mar 2009 01:56:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Mar 2009 01:56:21 -0000 Received: (qmail 45957 invoked by uid 500); 9 Mar 2009 01:56:14 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 45935 invoked by uid 500); 9 Mar 2009 01:56:14 -0000 Mailing-List: contact jmeter-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "JMeter Users List" Reply-To: "JMeter Users List" Delivered-To: mailing list jmeter-user@jakarta.apache.org Received: (qmail 45924 invoked by uid 99); 9 Mar 2009 01:56:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Mar 2009 18:56:14 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sebbaz@gmail.com designates 74.125.78.26 as permitted sender) Received: from [74.125.78.26] (HELO ey-out-2122.google.com) (74.125.78.26) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Mar 2009 01:56:06 +0000 Received: by ey-out-2122.google.com with SMTP id 25so288677eya.31 for ; Sun, 08 Mar 2009 18:55:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=/AmZuA8Kh4zNuDyXrcB0SY3LOiiyOnIIVy+G+Fl3/4Y=; b=pWCgC3yK1+Hx/Q0NxTlBHWvLQasHAnTy/oyEo+Fi1Y20aLlb4WeFxbUKz9R2orhUX+ 777WsDUaPuqYq4VpY7kJKDk8515hN4JBSvIKGE2rTGneWvUJc28ajDKnI/+WTN+n8V7K t2Re9/0C+B8rO1MIa71dR10qf6Oo5GjU8//QQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=FLnT8Ox1XfhPHSNZD6l/UTjrjRclRlmimhr1mRJcpgOH2OEcFx9/ZApyjEc/3eMOiE l72qw7dQprkl1CFyCaP7yVpEjDK3BPmVXeHADr6Jke7BMKjWB4vpn2SgaLADRhT7dewv e//cwD1piNgr6zH3rKG6lnkYw98UYerf1IQns= MIME-Version: 1.0 Received: by 10.210.82.2 with SMTP id f2mr2101806ebb.37.1236563746393; Sun, 08 Mar 2009 18:55:46 -0700 (PDT) In-Reply-To: <9f9520060903081828j501b36c2p82adf300b7acdf8c@mail.gmail.com> References: <2AB2B3C160BFC14CB0D94D437513C3BA01950789@revmail02.revenuedomain.ie> <25aac9fc0903060450h4cdc5b23rdb4567b1c73fbb50@mail.gmail.com> <9f9520060903081623s531ba202w32e6dddc5c6cec33@mail.gmail.com> <25aac9fc0903081649l26fa2355qacc267f06a5a1a7e@mail.gmail.com> <9f9520060903081828j501b36c2p82adf300b7acdf8c@mail.gmail.com> Date: Mon, 9 Mar 2009 01:55:46 +0000 Message-ID: <25aac9fc0903081855i44655561i9c24f413b12199f4@mail.gmail.com> Subject: Re: Unable to record test using HTTP Proxy Server From: sebb To: JMeter Users List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 09/03/2009, Raj Dev wrote: > Apparently, I have tried with IE and Mozilla, but both returning the same > issue. On Mozilla (3.0.7), its returning following error: > > > > java.net.ConnectException: Connection timed out: connect > > at java.net.PlainSocketImpl.socketConnect(Native Method) > at java.net.PlainSocketImpl.doConnect(Unknown Source) > at java.net.PlainSocketImpl.connectToAddress(Unknown Source) > at java.net.PlainSocketImpl.connect(Unknown Source) > > at java.net.SocksSocketImpl.connect(Unknown Source) > at java.net.Socket.connect(Unknown Source) > at java.net.Socket.connect(Unknown Source) > at sun.net.NetworkClient.doConnect(Unknown Source) > at sun.net.www.http.HttpClient.openServer(Unknown Source) > > at sun.net.www.http.HttpClient.openServer(Unknown Source) > > at sun.net.www.http.HttpClient.(Unknown Source) > > at sun.net.www.http.HttpClient.New(Unknown Source) > at sun.net.www.http.HttpClient.New(Unknown Source) > > at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source) > at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source) > at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source) > > at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:431) > at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1021) > at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:195) > That suggests that the browser is using the JMeter Proxy recorder, but JMeter cannot access the external site. > > > I have one question (may be weird), if we set the browser to "Manual Proxy > Setting" and tell it to listen on particular port (I have set it to 9090), The browser does not "listen" on a port, it connects to a port. > then how the HTTP Proxy Server of JMeter (which listens at 9090) configured > to reach to external site? > > The whole idea of HTTP Proxy Server, is to access an external site. In the > browser, we have set it to listen to the port on which JMeter is configured, > but we have not configured JMeter to access the external site!! Is my > assumption correct? Are you saying that you need to use an HTTP Proxy to access external sites? If so, then you need to tell JMeter to do so: http://jakarta.apache.org/jmeter/usermanual/get-started.html#proxy_server > Please excuse me if I am wrong, as I am new to JMeter. > > I will be thankful if you could please help me to get around. > > Thanks, > > Dev > > > > On Mon, Mar 9, 2009 at 10:49 AM, sebb wrote: > > > On 08/03/2009, Raj Dev wrote: > > > Hi Adrian / Sebbaz, > > > > > > Thanks for your reply. > > > > > > > > > >>> do you have either "automatically detect settings" or "use automatic > > > configuration script" checked? > > > > > > Yes, in IE "automatically detect settings" was checked, and I unchecked > > it, > > > but then I tried to access the website, which is not accessible. > > > > > > > > > It returns me the following error: > > > java.net.ConnectException: Connection timed out: connect at > > > java.net.PlainSocketImpl.socketConnect(Native Method) at > > > java.net.PlainSocketImpl.doConnect(Unknown Source) at > > > java.net.PlainSocketImpl.connectToAddress(Unknown Source) at > > > java.net.PlainSocketImpl.connect(Unknown Source) at > > > java.net.SocksSocketImpl.connect(Unknown Source) at > > > java.net.Socket.connect(Unknown Source) at > > java.net.Socket.connect(Unknown > > > Source) at sun.net.NetworkClient.doConnect(Unknown Source) at > > > sun.net.www.http.HttpClient.openServer(Unknown Source) at > > > sun.net.www.http.HttpClient.openServer(Unknown Source) at > > > sun.net.www.http.HttpClient.(Unknown Source) at > > > sun.net.www.http.HttpClient.New(Unknown Source) at > > > sun.net.www.http.HttpClient.New(Unknown Source) at > > > sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown > > Source) > > > at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown > > Source) > > > at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source) > > at > > > > > org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:431) > > > at > > > > > org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1021) > > > at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:195) > > > > > > *But the intranet sites are accessible. * > > > > > > > > > > > > >>> Also, are you using https: ? The proxy cannot record https: > > > > > > The site uses https://, but I am accessing the site using http:// > > > > > > >>> Does the browser still work if you stop the JMeter proxy?* > > > *Yes, the browser still works when I stopped the JMeter proxy. > > > > In that case, it is not using the proxy. > > > > > I would appreciate if any one suggest a fix for this. > > > > Use a different browser? > > > > > Thank you, > > > > > > Dev > > > > > > On Fri, Mar 6, 2009 at 11:50 PM, sebb wrote: > > > > > > > Also, are you using https: ? The proxy cannot record https: > > > > > > > > Does the browser still work if you stop the JMeter proxy? > > > > > > > > If so, it is not using the proxy. > > > > > > > > On 06/03/2009, Fitzpatrick, Adrian wrote: > > > > > > > > > > Hi, > > > > > > > > > > In internet explorer proxy settings, do you have either > > "automatically > > > > detect > > > > > settings" or "use automatic configuration script" checked? If so, > > > > suggest you > > > > > try unchecking these temporarily and see if that helps. > > > > > > > > > > Regards, > > > > > > > > > > Adrian > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: Raj Dev [mailto:torajdev@gmail.com] > > > > > Sent: 06 March 2009 03:36 > > > > > To: jmeter-user@jakarta.apache.org > > > > > Subject: Unable to record test using HTTP Proxy Server > > > > > > > > > > > > > > > Hi > > > > > > > > > > I have been trying to record JMeter Test using HTTP Proxy Server. I > > have > > > > > followed the steps given in > > > > > > > > > > > http://jakarta.apache.org/jmeter/usermanual/jmeter_proxy_step_by_step.pdf, > > > > > but am not able to do it. > > > > > > > > > > > > > > > I am not getting any error message (checked in > > > > JMETER_HOME\bin\jmeter.log). > > > > > Further, I have added Recording Controller (under Thread Group), > > saved > > > > it. > > > > > Started the HTTP Proxy Server and then visited the site and did > > some > > > > click > > > > > over the links, but it seems proxy is not recording samples. I have > > also > > > > > checked > > > > > > > > > > > http://jakarta.apache.org/jmeter/usermanual/component_reference.html#HTTP_Pro > > > > > xy_Server, > > > > > but I am not able to do record samples of my visit to the website. > > > > > > > > > > I would appreciate if someone could suggest me a probable solution > > to > > > > this. > > > > > > > > > > Thank you in appreciation. > > > > > > > > > > Dev > > > > > > > > > > > > > > > > > > > > ************************ > > > > > > > > > > This message has been delivered to the Internet by the Revenue > > Internet > > > > e-mail service (OP) > > > > > > > > > > ************************* > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > 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