determine what is causing cpu overhead on Win2003 & Coldfusion 5

Posted on 2004-10-27
Last Modified: 2013-12-24
on our server windows 2003 we run coldfusion 5 - basically it's all up and running just fine.
however sometimes there are times when cfserver takes 90% - 99% of the cpu as senn in the task manager. when this happens the server almost acts as "dead" - mostly, or better said always - the problem stays for some 5 minutes, and after that it's all fine.

for a long time we have monitored the server, unfortunately without finding out what cf-application or which domain causes this heavy cpu overhead.

we are looking for help to track this problem.

thank you in advance
joergen astroem
Question by:jastroem
    LVL 22

    Expert Comment

    Hi jastroem,
    The main cause of this happening is
    Infinite loop. It will be good to check in your system if there is any infinite loop or long running loop.


    Author Comment


    there will probabaly be some long running loops in some applications, but any infinite loops probably not. but who knows, such things can happen, and might even "lay around" on the server as forgotten file.

    but how to track that particular file down... on a server with quite a number of domains and 10-thousands of files? or at at least try to find out what files where requested around the moment when the problem occured. whe have - offcourse - checked all cf-log files for any hints...

    kind regards
    LVL 22

    Accepted Solution

    Hi jastroem,
    We found once which file is running through IIS long and then looking towards all the relative files and found the loop. Well this is stupid or timeconsuming but we found it like that.


    Author Comment


    that sounds as a possible solution, but - as you write - quite time consuming.
    let's see if someonelse have an idea.

    LVL 35

    Assisted Solution

    Since you are running Cold Fusion 5 it could also be memory leaks.

    Are you sure that you use locking around session,client,application variables?

    If not that is a very likely cause.

    And this is easy to look for - do a search for the sessions scope and look to see if there is a cflock when you access it.
    LVL 17

    Assisted Solution

    Enable logging of long executing pages under the CF Admin (if CF 5 has this), then have a look at the log files of CF to see what pages take so long to execute or even time out...

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Course: JavaScript Coding - Massive 12-Part Bundle

    Regardless of your programming skill level, you'll go from basics to advanced concepts in a vast array of JavaScript subjects including Sammy.js, Agility.js, Ember.js, Node.js, jQuery, AJAX, Extjs, AngularJS, Knockout.js, and JSON.

    In this short web based tutorial, I wanted to show users how they can still use the powers of FrontPage in conjunction with Expression Web 3.  Even though Microsoft eliminated the use of Web components, we can still use them with FrontPage and edit …
    If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
    The purpose of this video is to demonstrate how to properly insert a Vimeo Video into a WordPress site or Blog. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following:…
    The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …

    846 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now