I agree that your number of simultaneous threads is really high.  I think that Ben 
Forta once recommended only 3 threads per CPU.  That seems a little low for me.

I would lower the threads to a reasonable level and also lower the timeout requests 
(in server settings) to something low (maybe 20s or lower).  This should catch threads 
that are running slow and get your system back on course when threads begin to move 
over to the queue.  This will NOT be ideal as you will have a LOT of pages that will 
timeout, but you will discover which of your pages are taking an exorbitant amount of 
time.

I truly think that your problem lies in cflocks.  I have had a lot of trouble with 
"named" locks as opposed to "scope" locks in CFMX.  I would try to remove as many as 
possible and see how it affects performance.  I understand that you can't remove all 
of them and that locks are very helpful and important, but a different approach to 
locking may fix your problem (especially since I/O accesses take so long).

-Tim


-----Original Message-----
From: Trey Rouse [mailto:[EMAIL PROTECTED]
Sent: Monday, August 11, 2003 1:12 PM
To: CF-Talk
Subject: RE: CFMX performance issue


OK, setting threads up higher isn't usually a smart thing.

In general, use this formula for setting threads.

Maximum simultaneous threads:

For XEON's or other Advanced Processors (sun)
(CPU1 Mghz + CPU2 Mghz + CPU2 Mghz, etc,etc)/100 = Total MAX simultaneous

FOR p2/p3/p4/amd/standard class cpus:
(CPU1 Mghz + CPU2 Mghz + CPU2 Mghz, etc,etc)/200 = Total MAX simultaneous

Most of our production servers are currently  dual 1ghz xeons.  So 2ghz
total cpu availability / 100 = 20 Sessions total.

This is a rule of thumb I have used for many years with great success.  But
like I've said these are MAX settings, I usually set a little lower.

Think about what your asking this to do.  These are SIMULTANEOUS processing
threads, how many sections do you want to divide your CPU and system bus
into to complete requests?

In general you will find more performance by throwing more processing power
at fewer threads as they will execute MUCH faster. Any requests over the
thread count are simple queued as they wait for CPU.

Throwing ridiculous thread numbers into the config is only going to
partition your cpu out to the point individual threads only have 10-50 mhz
to run JIT compile and process the p-code.  BAD!!!  This will create what
appears to be stuck threads, threads that time out because of the maximum
processing time has been reached, etc.

And in a windows environment, how much do you trust M$ to handle that much
multitasking ;).

$0.02

Trey Rouse
Data Application Architect
Web Services - Rice University



> -----Original Message-----
> From: Stacy Young [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 11, 2003 12:43 PM
> To: CF-Talk
> Subject: RE: CFMX performance issue
> 
> Simultaneous threads in the CF admin is set to 400 !?
> 
> The traffic on our CF servers is not as high as yours, although peak
> hours are close, and we've only got ours set to 10 simultaneous
> requests. The highest we've ever gone is 12. When we had CF5 we once
> tried 18 but had some unusual problems. I'm not sure if "more is
> better". Have you tried a lower setting?
> 
> As for the template cache, I doubt that would have a significant impact
> but I usually set it to a few MB's...since it'll only take what's needed
> anyhow.
> 
> Stace
> 
> -----Original Message-----
> From: Alan Ford [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 11, 2003 1:18 PM
> To: CF-Talk
> Subject: CFMX performance issue
> 
> I've raised the size of the template cache to 400 and raised the running
> thread count to 200 (from 200 and 96 respectively). Today we had several
> serious overloads at peak time (22k hits / hour, 500 connections).
> 
> Alan
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to