Just some tricks to help performance on large tests:

1. Run non-gui.  It makes a big difference.
2. Edit the jmeter.bat/jmeter startup script and remove the -Xincg option.  JMeter 
runs 
tremendously faster with the standard garbage collector as I've recently discovered.  
Yes, 
there will be GC pauses that ruin some data points here and there, but if you are 
doing a 
large scale test, the improved performance will be dramatic, and you are probably 
looking at 
the results from a high vantage anyway.  A small test is the only kind that can 
benefit from -
Xincg.

3. Save memory by reducing the number of test elements in your test plan.  If you 
recorded a 
test and have 1000 HTTP Samplers with 1000 Header Managers all with the same stuff, 
then 
remove the header managers (unless your app needs them, in which case, find out what 
it 
needs and include 1 header manager that affects all the samplers).  Using looping 
constructs 
to remove duplicate requests and consider skipping static requests of all sorts (image 
files, 
javascript, etc).  If you feel they are necessary, then set up a single request that 
gets its path 
value from a file (using StringFromFile) and loop it, interleave it or whatever to get 
the 
desired amount of static requests in your tests.  Every test element is duplicated for 
every 
thread you run, so if you are running 100 threads, those 2000 test elements become 
200000 
objects in memory.  It's like programming, remove all duplication.

By doing these things, I can run 60 threads with a very large and sophisticated test 
plan and 
my cpu usage is rarely over 5%.  Memory, of course, is through the roof, but I set it 
high 
enough (512m) and JMeter runs all night long.

-Mike

On 23 Sep 2003 at 16:58, Jean-Sebastien Morisset wrote:

> Hi,
> 
> I've been trying to get jmeter up and running, but I keep running into
> some serious performance limits. If I run ab on my smallest machine, I
> can easily run 1000 concurrent requests and get 580 requests/sec. When
> using jmeter-server, I have problems going over 2-3 threads and my max
> is 65 requests/second! Is this normal?
> 
> Thanks,
> js.
> -- 
> Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]>
> Personal Home Page <http://jsmoriss.mvlan.net/>
> JS & Melanie's Homebrewery <http://brewery.mvlan.net/>
> Underwater and Travel Photographs <http://www.mvpix.com/>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 




--
Michael Stover
[EMAIL PROTECTED]
Yahoo IM: mstover_ya
ICQ: 152975688
AIM: mstover777

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to