Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 76128 invoked from network); 9 Aug 2005 15:52:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Aug 2005 15:52:11 -0000 Received: (qmail 30655 invoked by uid 500); 9 Aug 2005 15:52:08 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 30634 invoked by uid 500); 9 Aug 2005 15:52:07 -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 30621 invoked by uid 99); 9 Aug 2005 15:52:07 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Aug 2005 08:52:07 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [141.211.14.78] (HELO intolerance.mr.itd.umich.edu) (141.211.14.78) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Aug 2005 08:52:29 -0700 Received: from [141.212.49.127] (udhcp-wlan85.public.engin.umich.edu [141.213.120.95]) by intolerance.mr.itd.umich.edu (smtp) with ESMTP id j79Fq3oh000472; Tue, 9 Aug 2005 11:52:03 -0400 In-Reply-To: <25aac9fc0508031602366d6084@mail.gmail.com> References: <337B3DBE8522055645204304@192.168.1.100> <27e674a9050803121461ea90cc@mail.gmail.com> <5d48f7071a4655653cf48837f4706495@umich.edu> <25aac9fc0508031602366d6084@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <9851ce3fe810985ad57a07acba8a41ef@umich.edu> Content-Transfer-Encoding: 7bit Cc: "Glenn R. Golden" From: Jon Andersen Subject: Re: Memory leaks - large and uncollected Date: Tue, 9 Aug 2005 11:52:12 -0400 To: "JMeter Users List" X-Mailer: Apple Mail (2.622) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I tried using HTTPSampler2 as suggested. However, now there is another problem, which shows up even without SSL. Once I switch to HTTPSampler2, cookies or redirects aren't handled properly anymore. The exact same script works fine with HTTPSampler, but with HTTPSampler2, the cookies fail. I'm seeing the same JSESSIONID cookie being set over and over again, with new values. JMeter, instead of replacing the cookie each time, is appending a new cookie with the same name and the new value. So the same-named cookies accumulate over each request. Does this HTTPSampler2 cookie bug sound familiar to anyone? Here is my script that generates the errors, and the results, if someone can take a look at it: http://www.umich.edu/~janderse/sakai/resultstree.jtl http://www.umich.edu/~janderse/sakai/test.jmx Thanks, -Jon Andersen Software developer 734-260-6083 (work) 734-646-5577 (home) Digital Media Commons - Duderstadt Center University of Michigan On Aug 3, 2005, at 7:02 PM, sebb wrote: > On 03/08/05, Jon Andersen wrote: >> Peter, >> >> It appears that Sun SSL -:> OutOfMemoryException is the culprit. I >> ran >> the same script without SSL, and don't see the memory usage growing. >> >> Is there some way to switch from the default "HTTP Request" >> implementation to the "HTTP Request HttpClient" implementation without >> rewriting the script? Do both use the same configuration, so I could >> do a search-n-replace? > > Yes, if using 2.0.3, just perform the following changes: > > class="org.apache.jmeter.protocol.http.sampler.HTTPSampler"> > becomes: > class="org.apache.jmeter.protocol.http.sampler.HTTPSampler2"> > > propType="org.apache.jmeter.testelement.property.StringProperty" > name="TestElement.test_class">org.apache.jmeter.protocol.http.sampler.H > TTPSampler > becomes > propType="org.apache.jmeter.testelement.property.StringProperty" > name="TestElement.test_class">org.apache.jmeter.protocol.http.sampler.H > TTPSampler2 > > propType="org.apache.jmeter.testelement.property.StringProperty" > name="TestElement.gui_class">org.apache.jmeter.protocol.http.control.gu > i.HttpTestSampleGui > becomes > propType="org.apache.jmeter.testelement.property.StringProperty" > name="TestElement.gui_class">org.apache.jmeter.protocol.http.control.gu > i.HttpTestSampleGui2 > > If you are using 2.1, then the set of changes is similar: > > > > => > > > > => > > > name="TestElement.test_class">org.apache.jmeter.protocol.http.sampler.H > TTPSampler > => > name="TestElement.test_class">org.apache.jmeter.protocol.http.sampler.H > TTPSampler2 > > name="TestElement.gui_class">org.apache.jmeter.protocol.http.control.gu > i.HttpTestSampleGui > => > name="TestElement.gui_class">org.apache.jmeter.protocol.http.control.gu > i.HttpTestSampleGui2 > > > I derived these by creating two test plans, one with a single HTTP > Sampler, and another with HTTP Sampler HTTPClient (using the same > element name), and then doing a comparison. > > [...] > > --------------------------------------------------------------------- > 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