Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 96632 invoked from network); 20 Nov 2004 00:53:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 20 Nov 2004 00:53:51 -0000 Received: (qmail 88989 invoked by uid 500); 20 Nov 2004 00:53:49 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 88960 invoked by uid 500); 20 Nov 2004 00:53:49 -0000 Mailing-List: contact jmeter-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: 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 88945 invoked by uid 99); 20 Nov 2004 00:53:48 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [198.116.138.106] (HELO Palimpsest.saic.hq.nasa.gov) (198.116.138.106) by apache.org (qpsmtpd/0.28) with SMTP; Fri, 19 Nov 2004 16:53:47 -0800 Received: (qmail 84394 invoked by uid 1001); 20 Nov 2004 00:53:37 -0000 To: "JMeter Users List" Cc: Paul Leclerc Subject: Re: Bug? Jmeter only tries one addr in multi-addr DNS round robin cluster References: <864qjxv0ul.fsf@Palimpsest.saic.hq.nasa.gov> From: Chris Shenton Date: Fri, 19 Nov 2004 19:53:37 -0500 In-Reply-To: (Paul Leclerc's message of "Wed, 10 Nov 2004 16:38:53 -0700") Message-ID: <867johpcha.fsf@Palimpsest.saic.hq.nasa.gov> User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Paul Leclerc writes: > Don't forget that by default, Java caches IP addresses for DNS > lookups. See this link for more information: > http://java.sun.com/j2se/1.4.2/docs/guide/net/properties.html and > look at both networkaddress.cache.ttl and sun.net.inetaddr.ttl That looked very promising but it doesn't seem to be helping. In $JAVA_HOME/jre/lib/security.java.security I set networkaddress.cache.ttl=1 and see it querying my dnscache often, whereas before it queried it only once. That's good. However, it's only trying one of the addresses in DNS for that name. The name I configure jmeter to test is "cluster" which evaluates to two different IPs both with 1s TTL; I have it use 5 threads, and loop 5 times, with a 30-second ramp-up-time. I do see my DNS being queried repeatedly for that name, but jmeter only hitting one. Interestingly, quitting and re-running the "jmeter" startup script has no effect: it keeps returning to the same target host address. My dnscache is documented to return a list of addresses in random order for each query. The law of probabilities says it should get them both 50% of the time, this is about 10 out of 10 times it gets the same one. (Is it suspicious it's the lower of the two addrs?). Also, if I shut down the tomcat on the target it's picked, jmeter appears to hang. Is it not written to try other addresses in the list of addresses it got for the target's name? I don't have the code here to look. Perhaps this wasn't a design goal. Any thoughts? I can't test the robustness of my tomcat-4 session clustering if my test tools won't try alternate addresses. Thanks again. --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.apache.org