Line Debugging Causes CF to Not Start

So you go to turn on line debugging in ColdFusion, and when you save your changes, it warns you that the ColdFusion service will fail to start if the debugging port is already in use. Great, but what do you do if this actually happens?

I was at a loss for a few minutes on how to get ColdFusion started again so that I could fix the issue. Well, the configuration change is in your ColdFusion installation under ~/runtime/bin/jvm.config. So on a typical Windows installation, it may be c:\coldfusion9\runtime\bin\jvm.config.

Note: Before proceeding, it is always good practice to make a copy of the config file before editing it.

In jvm.config, there is an “Arguments to VM” section that has a java.args setting that may start with something like this:

java.args=-Xdebug -Xrunjdwp:transport=dt_socket, server=y, suspend=n, address=5095 -server -Xmx512m

(There will likely be many more arguments as well.)

The first two arguments contain the debugging settings that are probably preventing ColdFusion from starting. Remove the -Xdebug and
-Xrunjdwp:transport arguments, so that the beginning of the line will now look like this:

java.args=-server -Xmx512m (and additional arguments…)

This will be enough to get ColdFusion to start up. You can then go into ColdFusion Administrator to either change the debugging port or turn off the line debugging.

3 Responses to “Line Debugging Causes CF to Not Start”

  1. Steven Erat Says:

    The problem is that the -server arg should *always* be first on Windows, Linux, and Solaris (but is not used at all on Mac). No need to remove the errantly placed line debugging args, just move the -server arg back to the first position (or re-add it if it got blown away).

  2. Josh Says:

    Hey Steven, thanks for that. Are you sure this is true on CF9 too? I have it working fine right now without the -server argument being the first argument on my Windows installation… Hmm.

  3. corporate video production Says:

    Im just learning this – thats Steven for the comment re MACs…

  Theme Brought to you by Directory Journal and Elegant Directory.