Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 50677 invoked from network); 31 Mar 2011 01:29:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 31 Mar 2011 01:29:21 -0000 Received: (qmail 9837 invoked by uid 500); 30 Mar 2011 21:29:20 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 9810 invoked by uid 500); 30 Mar 2011 21:29:20 -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 9800 invoked by uid 99); 30 Mar 2011 21:29:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Mar 2011 21:29:20 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ansoni@gmail.com designates 209.85.220.172 as permitted sender) Received: from [209.85.220.172] (HELO mail-vx0-f172.google.com) (209.85.220.172) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Mar 2011 21:29:12 +0000 Received: by vxg33 with SMTP id 33so1625750vxg.31 for ; Wed, 30 Mar 2011 14:28:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=UXlQtAbIK1X1Fx7P0OTG/Z4Dxib9zR2nn/OQa2QzYH8=; b=C+ack/XAdynGlDdvq8ZORoF43+/hrbY+BMuuRvpm51uy1QnauP6cjq59JCV0Am+GaV k+RZi8decr3BDKBXUj6lrSSrSLX0iym4c/nFYKbT5BUCuyT/7i0UnEDJN4b9q/1Jf+hn gPPq8UL9306hStDCNVxxvvVg+KLxieLjQIUpk= 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 :cc:content-type:content-transfer-encoding; b=RPlAHG5I8EOgjGPTe6QY6kwqiNUh7e8m63u7sKbfFX9thCloJkPUrzG+HDjW1NvYmB SiCHu22CipgVpQlBo/kx+SUXwTZ8c9r2XCrfGXLiGq36cgahYXY2t/5Jac3HlI+qxO6b LxLvIziQg1Hv2ObPk4sLSv7SWli6/OjutW/Wk= MIME-Version: 1.0 Received: by 10.52.88.238 with SMTP id bj14mr2420839vdb.165.1301520531404; Wed, 30 Mar 2011 14:28:51 -0700 (PDT) Received: by 10.52.160.228 with HTTP; Wed, 30 Mar 2011 14:28:51 -0700 (PDT) In-Reply-To: <51904F41-2486-4C6C-AD1F-E6E5A645168D@gmail.com> References: <1301095063038-4265007.post@n5.nabble.com> <4FB106EB-8424-43C5-8C0F-45D5D203F46E@mac.com> <-7435227004119705285@unknownmsgid> <38DB58A6-CAB0-404D-8B53-99030A0E6116@gmail.com> <51904F41-2486-4C6C-AD1F-E6E5A645168D@gmail.com> Date: Wed, 30 Mar 2011 17:28:51 -0400 Message-ID: Subject: Re: Out of memory almost immediately after start From: Anthony Johnson To: JMeter Users List Cc: Kirk Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi Kirk, Java heap allocations will fragment the C Heap. PermGen memory will fragment the C Heap. JIT Compilations will fragment the C Heap. Java Thread creations/destruction will fragment the C Heap. PermGen and Java Heap I can do something about. Sorry, but my answer is still that for a memory intensive application you should be setting your memory settings properly to get the most out of your 32 bit memory space. When setting the -Xms -Xmx to be the same at startup, I get 2-3 very clean 1GB memory allocations in my process memory space. If you don't set -Xms, then your process memory space is littered with smaller memory allocations over the course of the process runtime. If your blog doesn't tackle why keeping my memory space ultra clean is a bad idea then it will not win me over. We are both entitled to our opinion:-) I don't think we need to continue to hi-jack this thread any further. Hopefully the parent resolved his issue. Thanks, Anthony On Tue, Mar 29, 2011 at 6:34 PM, Kirk wrote: > Hi Anthony, > > Setting ms to mx is a tuning/configuration mistake in most cases. I have = a blog entry that explains this (Keep your hands off of the switches iirc) = =A0and I've another one in the pipe that very clearly exposes why you shoul= d rarely set mx =3D=3D ms. > > Java heap is taken from C heap. C heap is stacked on the back of stack sp= ace in Windows and Linux. That means stack and text areas are fixed in size= at startup. If by native memory you are talking about C heap, then point t= aken. That said, most Java applications should not require a lot of native = space unless they are using direct byte buffers (aka the newest version of = EHCache) or objects that create structures in C heap (eg. file/socket descr= iptors). > >> >> The fact that the 10th thread gets an error and thread creation is >> fine after that does sound like some sort of OS or Java bug as sebb >> mentioned. =A0Hopefully the parent can make sure that he is using the >> most recent JVM and see if the problem still occurs. > > This is a strange one for sure. I'd be looking in the bug database to see= whats going on. One of the things that sometimes happens is that problems = with the LD_LIBRARY_PATH case the JVM to be constructed with the wrong vers= ions of shared libraries. Though normally this causes the JVM to core dump,= I guess it could cause other (strange) behaviors in the JVM. > > Regards, > Kirk > > > --------------------------------------------------------------------- > 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