Version 2 (modified by Brian, 15 years ago)

Old JVMs are a constant source of performance issues on the list; added the note and link to help identify problem.

Why Is My Model-Glue Application Slow?

Model-Glue, in and of itself, is really really fast. The latest version, Model-Glue 3, is the fastest yet and will help you build powerful, performant applications in record time. If you are experiencing slowness with your Model-Glue application, here are some things you can do to fix it:

1) Turn Off the Report Execution Times setting in your ColdFusion Administrator Debugging Section

Report Execution Times is bloody murder on ANY CFC-based application. Not only does it slow all execution to a crawl, but the times reported are flat out wrong by orders of magnitude. There is never a reason to have this setting enabled when running any CFC-based application. Period.

(This is an old issue. Dave Carabetta has a good post here: http://www.cbetta.com/blog/index.cfm/2006/2/13/CFCs-and-Performance-with-Report-Execution-Times-Turned-On )

2) Turn Off Memory Tracking

If you are using the Server Monitor, turn off Memory Tracking. Memory Tracking will also slow a CFC based application to a crawl. You won't get any useful information, so turn it off.

3) Set Reload=False

If you are in a production situation, check to see the Reload property in your application-specific ColdSpring.xml is set to false. This is a commonly overlooked task when deploying an application to production.

4) Turn Model-Glue Debugging Off

If you are in a production situation, check to see the Debug property in your application-specific ColdSpring.xml is set to false. Model-Glue Debug writes a lot of content to the browser so if you don't need it, disable it. This is another commonly overlooked task when deploying an application to production.

5) Check your JVM version

ColdFusion? 8 shipped with Java 1.6.0_4 which has an issue with generating classes from CFCs. Any application with CFCs (including Model-Glue) will be dramatically slowed by this version of the JVM. JDK 1.6.0_10 fixed this issue. If you are running with an older version (which you can find on your CF Admin "Information" page), contact your system administrator to upgrade. For more information, see: http://www.ghidinelli.com/2008/08/18/java16-u10-gives-big-boost-to-modelglue-transfer-coldspring-performance