Steven Erat's Blog Steven Erat Photography
 
 
Viewing By Entry
 
 

TalkingTree  Simultaneous Requests in CFMX 7

 

Watch that setting! While ColdFusion MX 7 Server Configuration installs with a default value for Simultaneous Request at 8, the Multi-server configuration has a default setting of 25 for this parameter.

ColdFusion MX 7 has the same rule of thumb for starting values on this parameter, just 3 to 5 per CPU on the machine. The default Server Configuration setting falls into that range for a 2 CPU machine, but the Multiserver Configuration value of 25 Simultaneous Requests may be too high for your application.

This is one of the most important settings in ColdFusion MX server, and the best way to determine the optimal value is through good load testing during development or staging. By keeping all things the same and modulating just this setting up or down, you can plot a graph on throughput.

Most likely you would see a curve where too low a value unnecessilary limits what the server can handle, and too high a value causes excessive work to just manage so many web threads that not enough time is spent on just executing the threads. When plotting throughput on the Y axis and Simultaneous Requests on the X axis, the sweet spot would be somewhere in the middle of the throughput curve at its highest point.

Just keep any eye open for this setting when creating any new CFMX JRun server instances.

For more information on this topic, see my more recent blog entry:

activeHandlers or Simultaneous Requests: Less is More

 


Comments

what type of load testing applications do you use?


Professional load testing tools include Segue Silk Performer and Mercury LoadRunner. These are very sophisticated tools and are used by Macromedia Professional Services when they do PA&T (performance analysis and tuning) gigs.

The Microsoft Stress Test tool works well too as a pure sledgehammer, but isn't sophisticated at all.


What if there are multiple instances? Let's say we've got 6 instances on one server with 2 CPUs. Should it be set to roughly 1 to 3 per instance?


That's a very good question. We in support have recently asked QA/Engineering to provide a whitepaper on this very topic.

The answer can vary depending on many factors including broad considerations of whether you own or are knowledgeable of all the applications to be running or whether you are an ISP.

The ISPs that I've worked with tend to grossly overload the server so that if any application decided to actually use half the memory it was allocated then the machine might be hosed for a while.

I think you'd want to apply the same principles when testing a multiserver config as when testing a single server config. Load testing is always the best answer, and even some load testing say with the MS tool is better than none. (Oh, and there's OpenSTA as another interesting, free choice). If you think your app is more query-centric or somehow third-party-centric, then it will use the cpu less than those that are more logic and processing intensive. A query sensitive app can handle a wider throttle since the cpu has to work much less while threads are idly waiting for remote responses from a database (or perhaps a CFHTTP or Web Service call).

I think overall you'd want to make sure that there are ample resources available such that the CPU hardly ever works more than 70% and the total memory on the machine also isn't past 70% on a regular basis. If the CPU is working less on average then you can probably throttle up, and if its working at a higher rate then you're very close to getting into a thrashing death spiral. Use the system's resources optimally, but leave room for bursts of higher requirements.

How's that?


What the application as well as chip set and platform have a lot to do with this as well. For example I tend to set HT p4's as high as 8 active threads per CPU and occasionally higher. As Steven says you need load test under realistic usage patterns. I would also suggest that while you are at it you tune your JVM as well as the whole system and for some applications or systems running applications you might find you can set the active threads rather high.


 

 

Calendar

 
Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

Search This Site

 
This is an exact search only

About This Site

 
I live west of Boston and work as a Software Engineer with ColdFusion and Flex, specializing in Linux. Recently I graduated in Professional Digital Photography from CDIA.
More about me

Recent Entries

 
A ColdFusion Trick for Lost D..
Starting ColdFusion9 Solr: Us..
Adobe LiveCycle DataServices ..

Recent Comments

 
Posted By Aaron Longnion:
Thanks Steven, I just ran into this problem, remembered your tweet about it, and found your blog on it. :)

Posted By srinyvas:
Hai, This information is very useful and i like your excellent writing skill. Can i copy this Content to my website top management colleges ...

Posted By Steven Erat:
@Wade - Glad I could help! Thanks for letting me know it worked for you too.

recently played

 
The Candid Frame #70 - Greg Gorman
by Ibarionex R. Perello
on The Candid Frame: A Photography Podcast

now playing, a plug-in for itunes

Categories

 
RSS Adobe (34)
RSS Bicycling (9)
RSS Blogging (39)
RSS Books (13)
RSS Breeze (13)
RSS CFMX Podcasts (10)
RSS ColdFusion (427)
RSS Computer Technology (51)
RSS Events (26)
RSS Flex (20)
RSS Gadgets (10)
RSS HiTech Industry (16)
RSS Java (25)
RSS Learning (57)
RSS Linux (70)
RSS Mac OS X (22)
RSS Macromedia (27)
RSS Meetup (35)
RSS New England (62)
RSS Odds & Ends (25)
RSS Outdoors (32)
RSS Personal (29)
RSS Photography (111)
RSS Photoshop (29)
RSS Podcasts (18)
RSS Rants (19)
RSS Restaurants (8)
RSS Science (34)
RSS Spain (16)
RSS Travel (42)
RSS Twitter (10)
RSS Video (20)
RSS Webcam (3)
RSS Writing (10)

Blogs I Read

 
Terrence Ryan
Ben Forta
Ray Camden
Kinky Solutions
Dan Vega
Gary Gilbert
Simeon Bateman
Red Hat Blogs
O'Reilly Digital Media
O'Reilly Radar
John Nack
The Strobist
Scott Kelby
Matt Kloskowski
Joe McNally
Digital Photography School
Engadget
Science Blog

RSS

 


Add to Google
Add to My Yahoo!

Aggregated By

 


Consumed By Feed-Squirrel.com
Aggregated by ColdFusionBlogger.org

Credits and Stuff

 
BlogCFC - Free ColdFusion Powered Blog Software
CJM Group - ColdFusion Website Hosting


 
 
blog | photos | flickr | referers | webcam | stats | about | contact
 
Copyright © 2010 Steven Erat. All rights reserved.
This is a personal weblog. The opinions expressed here represent my own and not those of my employer