Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 6562 invoked from network); 26 Nov 2010 15:27:21 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Nov 2010 15:27:21 -0000 Received: (qmail 13857 invoked by uid 500); 26 Nov 2010 15:27:20 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 13704 invoked by uid 500); 26 Nov 2010 15:27: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 13696 invoked by uid 99); 26 Nov 2010 15:27:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Nov 2010 15:27:19 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of shettyd@gmail.com designates 209.85.214.172 as permitted sender) Received: from [209.85.214.172] (HELO mail-iw0-f172.google.com) (209.85.214.172) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Nov 2010 15:27:11 +0000 Received: by iwn40 with SMTP id 40so2636876iwn.31 for ; Fri, 26 Nov 2010 07:26:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=n5SQEZ7lXz+Hpiu8OzT+V1PvD0M5Ybx7lR3YqHlcDL4=; b=w+tgY/dsKSYL60Ecl+Sr+pIylMNNnj23KjN/wq0vuyjgh9RcOZzrdj0t75LaxvkLA0 /2wZzvHwIqQW1k+xSVTXsrnzJ5lUQfcJcNu2CLe6zu9/WV4I4wYf+1bAsKnSpwtlGCXl 5ZaUizgTUSSWcgXdgJ6BGQUR+a3At6HasSDnI= 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=U2LDLzUwu2MHBozWcsNxptzwmieNkwCv1T4N8N8LYPR0Mie+x3VbQmTERgeNz64uZ7 ljWqvsKVeh7IIFCdFIlHueO/RfO6XEuH24Yu8IpMvCQLSDtL6R6B3YNFVBgXO00DSz3m ef0RbmoNtT9PpbV3dkL+LJfcSO9fvr231AxP0= MIME-Version: 1.0 Received: by 10.231.149.194 with SMTP id u2mr1692221ibv.4.1290785208526; Fri, 26 Nov 2010 07:26:48 -0800 (PST) Received: by 10.231.150.206 with HTTP; Fri, 26 Nov 2010 07:26:48 -0800 (PST) In-Reply-To: References: Date: Fri, 26 Nov 2010 07:26:48 -0800 Message-ID: Subject: Re: configuring JVM_ARGS on linux From: Deepak Shetty To: JMeter Users List Content-Type: multipart/alternative; boundary=00504501424ad5e6c10495f65954 X-Virus-Checked: Checked by ClamAV on apache.org --00504501424ad5e6c10495f65954 Content-Type: text/plain; charset=ISO-8859-1 Hi Also to add usually thread related problems on linux fall into two categories (that i know off) a. Since every socket counts as an open file descriptor , the total number of allowed open file descriptors should be set to a high enough value. b. The stack space per process should be increased (using ulimit or something like that) Again I dont know enough of unix to tell you what the commands actually but these are the problems you usually run into when configuring threading for a java app so you might read up on the two things above. regards deepak On Fri, Nov 26, 2010 at 5:52 AM, Deepak Shetty wrote: > Thats funny - the parameters you see should impact garbage collection (on > Sun JVM) . > What JVM are you running (inclusive of version) - XX parameters may not be > supported on all versions / OS/ and are subject to change (and valid only > for SUN) - check the documents > > However they should have no impact on the number of threads you can spawn > (unless you are getting an Out of memory) - though yes they can have an > impact on performance. > > When you say cant start what errors do you get? Its possible you are seeing > some other issue on Linux > > regards > deeoak > > > On Fri, Nov 26, 2010 at 5:40 AM, Adrian Speteanu wrote: > >> Hello, >> >> Need some advice on configuring jmeter shell script to run better on linux >> (debian/ubuntu in my case). >> >> Uncommenting these parameters in jmeter script has adverse affects: >> # SURVIVOR="-XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=20%" >> # EVACUATION="-XX:MaxLiveObjectEvacuationRatio=20%" >> The JVM doesn't want to start with them on debian, although I ran >> jmeter.bat >> with them on default values or improved targets, on Windows XP, Vista, 7 >> stations: >> >> I didn't find an answer in previous threads, though this was discussed >> some >> time / some years ago. >> >> Still jmeter works without, BUT there is a noticeable performance penalty >> without them: with the changes I make in jmeter.bat, I can start more then >> 4000 threads on a Win XP desktop system, with a simple script; on the same >> hardware with ubuntu installed or on other more powerful machines with >> debian I can't start more then 2000 threads, same script of course (using >> GUI or not). Considering that XP has a max threads limit of 10.000 and >> that >> the server had 16g of ram, this upsets me, it should work better on linux. >> The script doesn't depend on an external application, just uses a lot of >> CPU >> and memory and I used to tune how jmeter runs, however I have encountered >> some problems with JVM in tests that ran for longer periods of time. >> >> Any suggestions? >> >> ---- >> >> just in case, here is what is in jmeter shell script: >> >> HEAP="-Xms512m -Xmx1512m" >> NEW="-XX:NewSize=64m -XX:MaxNewSize=128m" >> #SURVIVOR="-XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=20%" >> TENURING="-XX:MaxTenuringThreshold=2" >> #EVACUATION="-XX:MaxLiveObjectEvacuationRatio=20%" >> RMIGC="-Dsun.rmi.dgc.client.gcInterval=600000 >> -Dsun.rmi.dgc.server.gcInterval=600000" >> PERM="-XX:PermSize=64m -XX:MaxPermSize=64m" >> DEBUG="-verbose:gc -XX:+PrintTenuringDistribution" >> DUMP="-XX:+HeapDumpOnOutOfMemoryError" >> (the rest is unchanged). >> >> Thanks & regards, >> Adrian S >> > > --00504501424ad5e6c10495f65954--