How do I modify my jvm.config file for debugging?
Description
In order for FusionDebug to be able to read what line of code it is currently looking, the JVM needs to be put into debug mode. This procedure adds the required debugging parameters to a standard ColdFusion (JRun) installation.
- Stop all running ColdFusion services.
- Locate the Java configuration file jvm.config. This can be found in the following location:
Windows: C:\CFusionMX7\runtime\bin Unix standalone: /opt/cfusionmx7/bin/ Unix multi-instance: /opt/jrun4/bin/ - Make a copy of this file, and store the copy somewhere on your disk. In case of problems, you can restore the copy to this location.
- Open this file in a text editor (e.g. Notepad).
- Locate the line java.args. These are the settings used to start the Java Virtual Machine, in which ColdFusion runs.
- Remove this option:
-XX:+UseParallelGC
- Add these options. All options must be on the same line. Be careful not to introduce any line breaks:
-Djava.compiler=NONE -Xnoagent -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000
- All options must be on the same line. Be careful not to introduce any line breaks.
The following line is an example of a complete java.args parameter line:
java.args=-DJINTEGRA_NATIVE_MODE -DJINTEGRA_PREFETCH_ENUMS -Xmx512m -XX:MaxPermSize=128m\-Dsun.io.useCanonCaches=false -Dcoldfusion.rootDir={application.home}/../ -Dcoldfusion.libPath={application.home}/../lib -Djava.compiler=NONE -Xnoagent -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000 -Dcoldfusion.classPath= {application.home}/../../classes,{application.home}/../lib/updates, {application.home}/../lib/,{application.home}/../gateway/lib/,{application.home} /../wwwroot/WEB-INF/cfform/jars - If you have other applications running on port 8000, change the port address to a free port. Make a note of the new port
- Start all ColdFusion services.
For more information about installing and using FusionDebug, please refer to the User Guide.
Issue Details
| Type: | Technote |
|---|---|
| Issue Number: | FDS-20 |
| Components: | |
| Environment: | |
| Resolution: | Fixed |
| Added: | 18/05/2007 13:52:24 |
| Affects Version: | 2.0 |
| Fixed Version: | 1.0 |
| Server: | ColdFusion 7, ColdFusion 6, ColdFusion 8 |
| Platform: | Windows XP, Windows 2000, Windows 2003, Linux, MacOS, Solaris |
| Related Issues: |
|
Issue Feedback
Did you find this issue helpful?
4 out of 4 people found this article helpful


