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

topics

 
adobe blogging coldfusion computer technology events flex java learning linux mac os x macromedia meetup new england odds & ends outdoors personal photos photoshop science travel video

About This Site

 
Adobe Alumni & Community Professional. Expert in ColdFusion, Flex, LCDS, Photoshop, Lightroom. Linux RHCE. Follow Me!. For my photography check out Boston Portrait Photographer.

Speaker at CF.Objective(): Automated UI Testing with CFSelenium, MXUnit, ANT, and JenkinsCI

Adobe Community Professional (ACP)
Red Hat Linux Certified Engineer

Recent Entries

 
Automated System Testing for ..
Could not find ColdFusion com..
No April Fools: Selenium Ship..

Recent Comments

 
Posted By Steven Erat:
Jim, and anyone else that may attend, if you would like the full slide deck and my demo project files BEFORE the conference, please reply as a comment ...

Posted By Jim Priest:
Can't wait for this one!!

Posted By iPhone Repair:
It appears there are so many people have issue with their iPhone & iPod Touch screens dropped and cracked. It happened to me also when u haven't got a ...

recently played

 
Mr. Brightside
by The Killers
on Hot Fuss
Get Hot Fuss by The Killers on Amazon

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 (437)
RSS Computer Technology (51)
RSS Events (26)
RSS Flex (20)
RSS Gadgets (11)
RSS HiTech Industry (16)
RSS Java (26)
RSS Learning (57)
RSS Linux (70)
RSS Mac OS X (23)
RSS Macromedia (27)
RSS Meetup (35)
RSS New England (62)
RSS Odds & Ends (25)
RSS Outdoors (32)
RSS Personal (29)
RSS Photos (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)

RSS

 


Add to Google
Add to My Yahoo!

Credits and Stuff

 
BlogCFC - Free ColdFusion Powered Blog Software


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