For quite long time i was seeing the CPU unexpectedly jumping to 50% on a dual-core. And sometimes ColdFusion Server even was starting to not respond.
I supposed it may be the bots as there was a couple of sites on the server but still this didn't seem right. So i made sure the sessions to be ended if it was a bot, thx to the robots list (this reminds me that it's been years since i've updated that list so need to find some time to do it). But this didn't help.
As i didn't have enough time to spend on it, at that time i just made a scheduled task that at particular periods was restarting CF Server (yeah and SQL Server as well because it worth spending a couple more seconds on it but cleaning a bit the resources). This "solved" the problem except for the users that happened to access the sites at that times.
Recently i've got some available time so thought to dig some into this issue.
First i found information that this happens to some folks having CF and Symantec AntiVirus installed together. So, i uninstalled Symantec and... HAPPY ME! The spikes stopped and i removed that scheduled task. But my happiness didn't lasted long as soon i started to note that again. So, obviously the problem wasn't in that AntiVirus, or at least not only in that.
Because i had won a license of SeeFusion (thx again WebApper !!!), i thought to use it. Unfortunately it didn't work with ColdFusion 9 that was installed on the server, so i used my long-time not updated cfWatcher application. I was waiting for spikes to happen and checked running processes. In most of the cases there wasn't any cf scripts running, but on the Threads page i found scheduler-X threads being in "RUNNABLE" state. When killing them, CPU was getting to normal while CF still running. Next step was to see what exactly was that scheduler-X threads doing. Checking Thread Stack Trace i found that it was doing something with the Registry. Knowing that i have the Default Storage Mechanism for Client Sessions set to Cookie i was like HUH?!
Next i remembered about a script i used many years ago to purge client variables from Registry. It was also showing how many of them you have there. When using it i got shocked as there was something between 250K and 300K client variable records in Registry. It seems like accidentally for some time the Registry was used as Default Storage Mechanism for Client Sessions and then everyone forgot about it. So, no matter that now it was set to Cookie, ColdFusion Server still was trying to do something with those stored in Registry.
Everything left to be done was to delete all client sessions from Registry. And now there issue is solved!
So, no matter what you have set for Default Storage Mechanism for Client Sessions, if you had it as Registry before, BE SURE to remove all of them from there !
Happy codding everyone!
Categories
| ColdFusion | 164 | [RSS] |
| Other | 100 | [RSS] |
| My Projects | 61 | [RSS] |
| Fun | 55 | [RSS] |
| SQL | 50 | [RSS] |
| Deals | 18 | [RSS] |
| RIA | 18 | [RSS] |
| 1ssBlog | 16 | [RSS] |
| cfSQLMaster | 12 | [RSS] |
| Caching | 8 | [RSS] |
| Profit | 8 | [RSS] |
| Transerfing | 6 | [RSS] |
| AJAX | 5 | [RSS] |
| cfHSSF | 5 | [RSS] |
| cfWatcher | 5 | [RSS] |
| JavaScript | 5 | [RSS] |
| Amazon | 4 | [RSS] |
| cfFirewall | 4 | [RSS] |
| jQuery | 3 | [RSS] |
| Security | 3 | [RSS] |
| 1ssChat | 2 | [RSS] |
| SEO | 2 | [RSS] |
| Adobe Air | 1 | [RSS] |
| jQuery Mobile | 1 | [RSS] |
| MMA | 1 | [RSS] |
My Sites
Recent Entries
Recent Comments
- ColdFusion 10 Is Ready For You. Are You Ready For It?
Ed said: Thx man! Fixed. [More] - ColdFusion 10 Is Ready For You. Are You Ready For It?
Raymond Camden said: Your link above is broken. [More] - Is it ME or ColdFusion 9.0 Update 1?
Ed said: Hey Axel, unfortunately i don't know about anything resolution to this problem other than just tota... [More] - Is it ME or ColdFusion 9.0 Update 1?
Axel said: Hi, I know this is an old threat but is there any resolution? We are running several 9.01 in prod... [More] - Presenting cfPulse
Ed said: hmmm i may look into that for sure. Just will need to find some time :) [More]
CFBloggers
cf.Objective() 2012 - Speedy Websites Presentation with Speaker Notes
Integrating SSRS 2005 & Coldfusion
Getting Started with RESTful Web Services in ColdFusion
Muse Review - Code Reviews With Jim Priest at Cfobjective
Adobe Developer Connect article on RESTful Web Services in ColdFusion 10
Slides, code, from my HTML5 Presentation
Beginning Adventures in CentOS: Installing Apache and MySQL
Integrating SSRS 2005 & Coldfusion
Getting Started with RESTful Web Services in ColdFusion
Muse Review - Code Reviews With Jim Priest at Cfobjective
Adobe Developer Connect article on RESTful Web Services in ColdFusion 10
Slides, code, from my HTML5 Presentation
Beginning Adventures in CentOS: Installing Apache and MySQL
Search
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 |
Tags Cloud
1ssblog
about
access
adobe
ajax
amazon
caching
cfhssf
cfsqlmaster
cfwatcher
coldfusion
data
deals
fun
jquery
list
moldova
mssql
my projects
optimization
other
over
performance
profit
ria
sites
sql
this
transerfing
your
Subscribe
Enter your email address to subscribe to this blog.
Adobe Feeds
- Adobe Creative Cloud Pros and Cons
- How to Implement the Copyscape API in Your Cloud Application
- GIVEAWAY: Sonic PDF Creator
- Envato’s Most Wanted – $2,000 Reward for the First 20 WordPress Calendars
- Sothink SWF Catcher 2.0
- Getting Started with RESTful Web Services in ColdFusion
- cf.Objective() 2012 - Speedy Websites Presentation with Speaker Notes
1ssBlog was created by Ed Tabara and is running version 1.1.




i agree 100% !!!
I switched from registry to cookies as well. Once the backup is done, I'm running the registry utility to delete the old sessions.