ColdFusion Stops Serving After a Few Requests
Just had an issue where ColdFusion would only serve a few requests before locking up and sending constant 503 errors. Turns out there were almost 200k files in C:\Coldfusion8\runtime\servers\coldfusion\SERVER-INF\temp\wwwroot-tmp. So, to fix this I stopped ColdFusion, renamed wwwroot-tmp to wwwroot-tmp2 and make a new wwwroot-tmp. Once ColdFusion was started it ran like a champ again. My theory is the disk I/O was killing CF when it was looking for a chached file.
Comments
- Grant Copley
I justed checked my production server and the wwwroot-tmp folder is empty. Are files only stored in this folder if you use the caching tags in ColdFusion?
- January 27, 2010, 10:04 AM
- Brent Frye
Grant, this isn't a fix all solution, it just happened to work in this case. You may also want to look at cfclasses folder at [server root]\WEB-INF\cfclasses, I've seen times where this folder just has too many files for the operating system to handle. Again, stopping ColdFusion, renaming and recreating the folder can help.
- January 27, 2010, 1:57 PM
- Grant Copley
Thanks Brent! I was just curious why my folder was empty on my server and yours had so many files. I am not using any of the ColdFusion caching tags really but I assume ColdFusion is caching some things. That's why I thought it was odd this folder is empty if it's used to store cached items.
- January 27, 2010, 2:05 PM
- Brent Frye
Yeah I believe the \SERVER-INF\temp\wwwroot-tmp may actually store image files that are created by things like cfimage and cfchart, I'm sure there is something automated that cleans these up, but under heavy use that may just not happen fast enough. The cfclasses folder I mentioned actually stores the template cache, which I've seen grow far beyond what is set in the ColdFusion administrator.
- January 27, 2010, 2:16 PM
