Saturday, May 24, 2008

ColdFusion Client Variables Voes

I've been faced with ColdFusion instability on a project for sometime. Frequent, daily restarts of ColdFusion have been happening (for months) and I never could figure out why. Recently, I've noticed these nice crash dumps in CFMX-ROOT/runtime/bin which complained a lot about Client variable persistence storage (from what I gathered in the stack traces).

The site uses MS Access as a database for storing client variables. I don't think there's lots of client variables in the application itself, but they are used regularly throughout. Anyways, client storage was earlier set to registry and my registry size went through the roof (took me sometime to dig out a post on cleaning the registry manually). I've changed it to a database storage mechanism (don't ask why Access is used) and it worked fine after that (sort of).... I think it did.

Long story short: I tried using cookies as a client variable storage. No more crashes. Its probably too early to tell. I tried switching back to database storage and trashing the application a bit to quickly reproduce another crash of the server. With cookies the same thing did not crash the server. So perhaps there's something there.

This was CFMX 7.0.2 with Win Server 2003.

No comments: