Is there a optimal setting for no. of simultaneous requests? Our ISP upped ours to 512 when we were having problems with the site. Is this too much?
We are running CF5 on Redhat 7.3 and MySQL on a separate database server. Both machines are dual processor 1GHz with 2GB RAM. We get about 250,000 hits per day. I heard that 4 x (no. of processors) was a good ball-park. Adam Bailin Web Developer Ofsted Tel: 020 7421 5977 >>> Steven Erat <[EMAIL PROTECTED]> 02/24/03 10:02pm >>> Diagnosing hangs on CF5 & 4,5x: Start by logging "slow pages" as seen on the CFAdmin Logging page. Set it to a value of perhaps 30 seconds. Then periodically check the server.log under cf_root/logs/, and look for an entry that ends with ".... Ran: xxx seconds". Just search for the string "Ran:". Keep a list of those pages with their reported run times. Make sure that the overall server timeout is set reasonably low in the CFAdmin settings page. Enable 'Restart at X Unresponsive Requests' and set X to a value less than the 'Simultaneous Requests' value. This will log problem page requests as "unresponsive" in server.log. Those pages marked as unresponsive are those that were making a third party call for a period greater than their timeout setting. Keep in mind that some pages in the app might have overriding timeouts with links that include a querystring in the URL for ?requesttimeout=xxx. They override the server timeout in the CFAdmin. Once you have a list of pages from the server.log marked as slow (search string is "Ran:") or long running (search string is "unresponsive"), then you should start troubleshooting the pages that run the longest and work down. Use caching techniques (cachedwithin on queries, cfcache tag for whole pages) where ever possible. Look for other performance improvements... don't do Select * from Table where unwanted data is being selected. Check the trusted cache setting in the CFAdmin, etc... The setting for Restart after X Unresponsive Requests is a heuristic one. CF will track pages that are unresponsive if the general Timeout is enabled, and then it will restart itself if that the Restart threshold is reached. This will kill the hung threads and allow more incoming requests. Use cfstat to see what CF is doing. In a hang you would see Reqs Running equal to Simultaneous Requests, and you should would see Req's Q'd increasing. This will confirm the information gained from the server.log. You should find a lot of performance tuning articles and discussions on the web for CF5, if you want more info. -----Original Message----- From: Ian Hartten [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 4:43 PM To: CF-Linux Subject: Cold Fusion does not like Linux? Anyone? Hello, First post here for me in a long time....We are looking for advice on issues related to running CF, Linux and mySQL (and program in fusbox). We have a dedicated Linux box (big compac machine with Dual 1 gig processors).. We are seeing some issues with CF 5 under load... The machine seems to puke while underloads that I would no consider extremely high.. It pushes about a gig a day and has even traffic from morning until late evening... We are running red hat, mysql and CF 5 and see that the machine will just hang under medium load at times for up to 15 minutes and will just come back suddenly. The CPU pops up to 99% pretty fast. Here are my questions: Is there a tool that will help us monitor what is actuall happening with CF processes in detail? We are looking for suggestions for expanding load balancing - Should we beef up the processors or add a machine? Is there a "application level issue" with the CF for Linux that Macromedia is not fully admitting too? Thanks, Ian Hartten Toledo, Ohio ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=14 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=14 Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.14
