Skip to main content
asounds
Inspiring
October 30, 2006
Question

Random High CPU usage

  • October 30, 2006
  • 4 replies
  • 979 views
Every so often, jrun spikes our CPU usage to 100% for a few minutes, then settles back down. Then it will do it again. this will repeat for several hours, then things can be normal for several days before it starts acting up. I keep checking the log files to see if there is something going on, but so far have been unable to find it.

We do have ScanAlert scanning our servers. But the scans do not always happen during this time.

Is there a way I can see what pages are being processed?

Running CF 7.02
Intel P4 3.2 Dual Core w/2GB RAM
Win 2003

Thanks,

Ron
    This topic has been closed for replies.

    4 replies

    January 15, 2007
    Sudopong,

    To better understand your issue, you need to get some metrics & stack traces. Follow these technote for procedure:

    ColdFusion MX: Enabling metrics logging
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_19120

    Debugging stack traces in ColdFusion MX
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_18339

    As per indicated in the second technote, log the time it ocurs and immediately get some stack trace when you're eperiencing this high CPU utilization. You can then see what's going on your server during these times.

    There is just a lot of things you can do to determine what the issue is. It is always easy to chew CF for any utilization problem, but 80-90% of the time, it's either your application, or your settings.
    January 15, 2007
    It is indeed frustrating.
    Adobe, can you respond with a fix? It appears this has been happening for long time for lot of people, still no resolution.

    CPU usage : 85-90 %
    HP Dual core
    CFMX7.0.1
    Participating Frequently
    November 3, 2006
    These links maybe of help:

    ColdFusion Performance Tuning
    http://www.macromedia.com/go/tn_17054

    ColdFusion MX: Tips for performance and scalability
    http://www.macromedia.com/go/tn_18540

    HTH
    asounds
    asoundsAuthor
    Inspiring
    November 3, 2006
    Thanks for the replies.

    I have already gone through all the performance tuning docs I could find. Server runs great for the most part. I have had SeeFusion for some time, but running in trial. Don't know it the problem will present itself in a two-hour time period.

    Sometimes it will happen every 10-15 mins for about an hour. Other times it may only happen once the entire day.
    Will have to convince CEO to get SeeFusion!
    November 7, 2006
    We are having the same problem. However, we recently noticed that the spikes corresponded with the Client Variable Purge interval. Sometimes the spike isn't as bad as other interval times. This made it look random. We looked in the cfserver.log and noticed that some applications that use cflock on session variables cause CF to hang when trying to purge client variables on our MySQL database. After turning off the purge, the server has been running great. Hopefully we can figure out the problem and turn the purge back on soon.

    We have a post on this forum regarding this issue, but no one has replied. I hope this helps.
    October 31, 2006
    Check into SeeFusion. It might help. Usually when your CPU spikes like that it is a bad query/returning too much data/usage spikes or just some messed up code. It can be very frustrating to track down.

    Make sure you've tuned your server. Plenty of tips in the forums and the blog-o-sphere.