Skip to main content
Participating Frequently
September 7, 2013
Question

CF Service continuously restarts every 25 seconds

  • September 7, 2013
  • 1 reply
  • 2380 views

After my laptop froze yesterday I rebooted, and now the ColdFusion 9 Application Server service starts and restarts endlessly!  Although it's set to start automatically, upon bootup it does not start.  So I start it manually.  Then I look at the Windows Event Viewer which reports:

"The ColdFusion 9 Application Server service for the "coldfusion" server was started.  PID is 5788".  That's good.  But then, about 9 seconds later, Event Viewer reports:

"The ColdFusion 9 Application Server service for the "coldfusion" server is restarting."  16 seconds later, the Event Viewer reports that the service has, in fact, started again.  And 9 seconds after that, it reports that the service is starting again.

Unless I manually stop the service, this cycle continues, with the CF service restarting itself every 25 seconds, give or take a second.  Needless to say, I can't use ColdFusion.  When I try to reach a page, I get error 500: "There is no web application configured to service your request"

I am running the developer edition of CF9, Windows.

Please help!  Thanks in advance.

Peter

This topic has been closed for replies.

1 reply

Charlie Arehart
Community Expert
Community Expert
September 7, 2013

That’s odd, indeed. By default, when run as a Windows service, CF is set to restart if it goes down. So I think the real question for you is to find why it’s going down.

Rather than look at the Event logs, how about looking at the CF logs, especially not \logs but rather \runtime\logs. The *–out.log’s there especially are valuable, serving as effectively the “console log” for the service. You may see in there something happening before it goes down (or before it comes back up) that may be helpful. Look also in ]cf9]\runtime\bin, where you may see hotspot compiler failure logs (hs_err_pid logs).

/charlie

/Charlie (troubleshooter, carehart. org)
Participating Frequently
September 8, 2013

The coldfusion-out.log includes this:

Server coldfusion ready (startup time: 9 seconds)

#

# A fatal error has been detected by the Java Runtime Environment:

#

#  EXCEPTION_IN_PAGE_ERROR (0xc0000006) at pc=0x6d6e2424, pid=5456, tid=7724

#

# JRE version: 6.0_17-b04

# Java VM: Java HotSpot(TM) Server VM (14.3-b01 mixed mode windows-x86 )

# Problematic frame:

# C  [nio.dll+0x2424]

#

# An error report file with more information is saved as:

# C:\ColdFusion9\runtime\bin\hs_err_pid5456.log

#

# If you would like to submit a bug report, please visit:

#   http://java.sun.com/webapps/bugreport/crash.jsp

# The crash happened outside the Java Virtual Machine in native code.

# See problematic frame for where to report the bug.

#

The detailed error report, C:\ColdFusion9\runtime\bin\hs_err_pid5456.log, has a ton of information, but I don’t understand much of it.  I’ll be happy to post it all if you think you might be able to make heads or tails of it.

I’m hoping to avoid having to reinstall CF.  Do you think there is another solution?

Thank you.

Peter

Charlie Arehart
Community Expert
Community Expert
September 11, 2013

I decided to uninstall CF9 and reinstall CF9 and amazingly (at least to me) nothing has changed! The CF service was supposed to start automatically, but it did not, so I started it manually.  Once started, it restarts itself every 25 seconds, just like before. 

This is a dev server (my own laptop), so there isn't any traffic.

I'm getting sort of desperate, as I can't get any CF development work done.  Any more ideas?  Thanks.

Peter


Peter, as Carl proposed, have you tried starting CF from the command line? That may give you both a different experience (for various reasons) and perhaps also some different clues or diagnostics. It’s really worth the try. Just go to the command prompt, do a:

CD C:\ColdFusion9\bin

then do:

cfstart

What happens? And does CF stay up? If so, have you made any changes perhaps to the Windows service, including what user the service runs as?

If it does not stay up, I’ll ask again: please try stopping the web server (IIS or Apache). I know you are saying this is a development server and therefore there should be “no traffic”. Let’s just rule that out, as a sanity check.

Finally, you mentioned looking in the Windows Event logs and shared 2 messages. Did you look in both application and system logs? Anything else in there, around the time of these failures of CF?

/charlie

/Charlie (troubleshooter, carehart. org)