|
MarFan
|
 |
Posted: Thu May 21, 2009 4:30 pm |
|
 |
 |
 |
 |
Has anyone else experienced the ColdFusion service randomly stopping? It happened to me last night or this morning. I had to login and restart the service in Windows.
Anyone else? Know why?
Thanks!
|
|
|
|
Jason101
Forum Regular
| Joined: 14 Mar 2006 |
| Posts: 570 |
| Location: Harrisburg, PA |
|
 |
Posted: Thu May 21, 2009 8:44 pm |
|
 |
 |
 |
 |
I've seen this happen as well for no reason at all when we were on a VPS. What you can do, is in the windows service manager, set the service to try to restart itself if it stops, and then if it still can't start have it automatically reboot windows. That seemed to do the trick for me.
|
|
|
|
cburns
| Joined: 03 Feb 2008 |
| Posts: 10 |
| Location: Newark, DE |
|
 |
Posted: Fri May 22, 2009 2:04 pm |
|
 |
 |
 |
 |
What is likely happening is that ColdFusion is running out of available memory, and just shutting down. ColdFusion eats up memory like that's its job, so make sure you are disabling any unnecessary services (for example, if you are not using SQL, SmarterMail, or SmarterStats, disable them to free up some memory) and you have set the JVM memory limits within the CF Admin to give your VPS some breathing room (you need to give enough memory in the CF admin so that CF can run, but also have enough memory free on the VPS itself for the JVM to allocate new threads so that CF can run...yeah). As Jason101 said, setting the service to automatically restart itself should help fix this as well.
Other things that can help is to make sure your code runs error free. Check the application and exception logs and try to clean up as many errors as you can; ColdFusion performs less and less well with every that occurs. Also make sure to clean up any unnecessary verity collections, scheduled tasks, or DSNs. ColdFusion has to initialize them every time they start, which can eat up resources that it may or may not free up.
|
|
|