Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 36874 invoked from network); 10 Feb 2006 03:09:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Feb 2006 03:09:49 -0000 Received: (qmail 25416 invoked by uid 500); 10 Feb 2006 03:09:47 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 25386 invoked by uid 500); 10 Feb 2006 03:09:46 -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 25375 invoked by uid 99); 10 Feb 2006 03:09:46 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Feb 2006 19:09:46 -0800 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [209.191.85.218] (HELO smtp108.mail.mud.yahoo.com) (209.191.85.218) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 09 Feb 2006 19:09:45 -0800 Received: (qmail 39914 invoked from network); 10 Feb 2006 03:09:23 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.sg; h=Received:Reply-To:From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Priority:X-MSMail-Priority:X-Mailer:X-MimeOLE:Importance:In-Reply-To; b=kjzyqp32hLxOS7MOjB349ReLhB2DtiunXz9GJv1MNjVa+Xy6K9OkPwOBSFHlloSkXeVC1LhOaV2ZIBF2AGXYiBB/dKWY7i5SMwAVgNardOPSIf1V2OqpBxUuHicDpN2hC4yMixAlPMWm3kDKSClw15PC3W9KSnCL/qJi1UekSqM= ; Received: from unknown (HELO fred2ktosh) (fredckp@203.126.248.163 with login) by smtp108.mail.mud.yahoo.com with SMTP; 10 Feb 2006 03:09:23 -0000 Reply-To: From: "Fred" To: "JMeter Users List" Subject: RE: Too many TCP connections? Date: Fri, 10 Feb 2006 11:11:39 +0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 Importance: Normal In-Reply-To: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Thanks for your quick response, once again.. - In a CGI configuration you're able to "exceed" 30 threads. - In a DSO (module) configuration it breaks at ~ 30 threads. Fred: This is correct, if I using a CGI module to load on, the Jmeter's test plan can even generate up to 50 threads. What's you web server? Apache, IIS, Tomcat, other? Fred: It's an Apache built-in in CentOS. It could be that you're web server is limiting the number of threads it will create. I know Apache has a couple of configuration settings that define what and how many threads it will allow... Fred: If the web server is limiting the thread, shouldn't it limit the threads creation, when I'm loading the CGI module? My guess is whatever port that the 30th thread is trying to use is already in use. Fred: Apart from the web server limiting the thread, if there is a possibility that the JMeter cannot cope with the fast return response within the thread group for concurrent access that it breaks? May be I will try to add more delay in between request. Regards, Fred -----Original Message----- From: Lincoln, Adym [mailto:Adym.Lincoln@LibertyMutual.com] Sent: Thursday, February 09, 2006 10:21 PM To: JMeter Users List Subject: RE: Too many TCP connections? Just so I'm clear... - In a CGI configuration you're able to "exceed" 30 threads. - In a DSO (module) configuration it breaks at ~ 30 threads. What's you web server? Apache, IIS, Tomcat, other? It could be that you're web server is limiting the number of threads it will create. I know Apache has a couple of configuration settings that define what and how many threads it will allow... Also, the Java exception in your original message reads: connect java.net.BindException: Address already in use: connect at java.net.PlainSocketImpl.socketConnect(Native Method) The java.net.* package is part of the JDK. Thus, the exception is being fired from the JDK, not JMeter. JMeter is catching the exception and reporting it. My guess is whatever port that the 30th thread is trying to use is already in use. But, this doesn't rule out the possibility that your Web server is limiting the number of threads...i.e. if the 30th thread is not allowed by the web server, and the JDK simply "reports" this exception as "Address already in use.". In other words, the JDK could be reporting a "default" exception message because it doesn't have a specific message for the web server's "No more threads available" message. Hope these last couple of sentences make sense... I haven't seen anything in JMeter that allows you to control what port(s) to use when creating threads. There's probably a setting though...i.e. start at port number XXXX and go up (or down) from there. hth, Adym Lincoln I/S Corporate - I/S Internal Applications 603-245-8245 Ext : 58245 adym.lincoln@libertymutual.com ... It's a bug planet...it's an ugly planet...ever feel like your software project is going in the wrong direction. ... -----Original Message----- From: Fred [mailto:fredckp@yahoo.com.sg] Sent: Thursday, February 09, 2006 5:00 AM To: Lincoln, Adym; JMeter Users List Subject: RE: Too many TCP connections? Thanks for the response. I have run the same tests Jmeter on 2 XP SP2 machines, - AMD Athon 3000, 512mb RAM, - Intel Pentium4, 2.8Ghz, 1024Mb RAM. Both breaks consistently in the midst of 30 threads. Brief TestPlans: 10 Threads |_ 100 HTTP POST requests 20 Threads |_ 100 HTTP POST requests 30 Threads |_ 100 HTTP POST requests 40 Threads |_ 100 HTTP POST requests 50 Threads |_ 100 HTTP POST requests I have successfully run above tests to a CGI script on server, and only run into issue when the CGI module is being changed to a DSO module on the test server. Hence, it seems rule out my test machines are not able to generate the amount of threads. Regards, Fred -----Original Message----- From: Lincoln, Adym [mailto:Adym.Lincoln@LibertyMutual.com] Sent: Wednesday, February 08, 2006 10:05 PM To: JMeter Users List; fredckp@yahoo.com.sg Subject: RE: Too many TCP connections? There's a good chance that it's related to the number of threads, not TCP connections. TCP connections typically utilize a "port" on your machine. Setting up a TCP connection probably doesn't use as many resources as setting up the "thread" that is going to use that port. There's also the possibility that XP's firewall is not allowing you to use certain "port" numbers, but it doesn't sound that way, since you indicate that it is "consistently" happening at the same point. My guess, not knowing your machine specs, is that your machine simply runs out of resources to create more threads...I had read an article two days ago on JMeter having a similar issue at 25 threads...could have sworn it was on the Server Side website, but I can't find it now. In the article, the author wanted to run a test with 100 threads, but it broke down at around 25 threads... hth, Adym Lincoln I/S Corporate - I/S Internal Applications 603-245-8245 Ext : 58245 adym.lincoln@libertymutual.com ... It's a bug planet...it's an ugly planet...ever feel like your software project is going in the wrong direction. ... -----Original Message----- From: Fred [mailto:fredckp@yahoo.com.sg] Sent: Wednesday, February 08, 2006 6:23 AM To: List, JMeter Users Subject: Too many TCP connections? I was running a test off a Windows XP platform, and it consistently breaks in the midst of thread.. with the following error.. I suspect it's too many TCP connections opened, is there a limit that I can open concurrently? Any advice is very much appreciated. Regards, Fred ------------------------------------------------------------------------ ---- ---- 2006/02/08 10:16:43 INFO - jmeter.threads.JMeterThread: Thread 30 Thread 3-24 started 2006/02/08 10:16:43 ERROR - jmeter.protocol.http.sampler.HTTPSampler: Can't connect java.net.BindException: Address already in use: 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.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.j ava: 424) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSampl erBa se.java:514) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSampl erBa se.java:503) at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:247) at java.lang.Thread.run(Unknown Source) Send instant messages to your online friends http://asia.messenger.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.apache.org Send instant messages to your online friends http://asia.messenger.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.apache.org