Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 43291 invoked from network); 9 Mar 2009 03:19:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Mar 2009 03:19:46 -0000 Received: (qmail 96811 invoked by uid 500); 9 Mar 2009 03:19:44 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 96788 invoked by uid 500); 9 Mar 2009 03:19:44 -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 96777 invoked by uid 99); 9 Mar 2009 03:19:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Mar 2009 20:19:44 -0700 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of torajdev@gmail.com designates 209.85.219.177 as permitted sender) Received: from [209.85.219.177] (HELO mail-ew0-f177.google.com) (209.85.219.177) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Mar 2009 03:19:37 +0000 Received: by ewy25 with SMTP id 25so731064ewy.37 for ; Sun, 08 Mar 2009 20:19:15 -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; bh=W0Z8rRBgqRqyyw9fX6ZPFef8gvYL71Hp5yt44fSJIVs=; b=COamIAjD4O/Mp6b18phmQBjx/C4+f4OsiYJtviDOpyLScMdMS5vynW/scaIC+URbev /A3PSDr6RX3lU249ggaAT16strr6EdAPDTZyEzxWtg7j9PhDCM/JcPHM8lihui8dLvE+ jdY4UbYJBt+Dv1KH5VStbrhaNgKl24pgFda0A= 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; b=UZG8ouFcWnB8kHXc8HsCJ6PRbgFOHmnR+AV8EDQbaNySp8MTReH8HjV4FhM0ujfe78 VP18XL0caYvccH7NwTIQJNGFJYPruujUHcAeKxJGJa7wHBEVlaDRlFSt5qih69/Adx7U nj72CSRJcmmQF/7SkcfxJwbRvE9W782TzL4/I= MIME-Version: 1.0 Received: by 10.216.17.212 with SMTP id j62mr1903520wej.132.1236568755378; Sun, 08 Mar 2009 20:19:15 -0700 (PDT) In-Reply-To: <25aac9fc0903081855i44655561i9c24f413b12199f4@mail.gmail.com> References: <2AB2B3C160BFC14CB0D94D437513C3BA01950789@revmail02.revenuedomain.ie> <25aac9fc0903060450h4cdc5b23rdb4567b1c73fbb50@mail.gmail.com> <9f9520060903081623s531ba202w32e6dddc5c6cec33@mail.gmail.com> <25aac9fc0903081649l26fa2355qacc267f06a5a1a7e@mail.gmail.com> <9f9520060903081828j501b36c2p82adf300b7acdf8c@mail.gmail.com> <25aac9fc0903081855i44655561i9c24f413b12199f4@mail.gmail.com> Date: Mon, 9 Mar 2009 14:19:15 +1100 Message-ID: <9f9520060903082019q3f7b504fvfac3e5a7205a3554@mail.gmail.com> Subject: Re: Unable to record test using HTTP Proxy Server From: Raj Dev To: JMeter Users List Content-Type: multipart/alternative; boundary=0016e64c1bea679a000464a71934 X-Virus-Checked: Checked by ClamAV on apache.org --0016e64c1bea679a000464a71934 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi Sebb, Thank you so much. That last bit did the trick. While starting the jmeter on the command prompt I fired following command: c:\>jmeter -H -P -N localhost and from there, it works well. Thanks again to all. Dev On Mon, Mar 9, 2009 at 12:55 PM, sebb wrote: > 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 > > --0016e64c1bea679a000464a71934--