Model Glue creates and holds on to a lot of ColdFusion objects at start up. This means in production mode, your applications are lickity split fast. In development mode, however, this can be a little bit of a pain. There is good news though, because there are some things you can do to help the situation.
Firstly, make sure you have Report Execution Times unchecked in your CF Admin/Debug. Report Execution Times is bloody murder on CFC instantiating, often increasing the creation time by an order of magnitude. In addition, the times reported are incorrect anyways, so this is a pointless setting to have enabled for any CFC based application. Second, there is an Object Creation Bug in certain versions of the JVM that rears it's head when lots of objects are being created (like when ModelGlue, or any other OO based framework starts). This bug was fixed in recent versions of the JVM and a quick update will help out a lot. Read More Here: http://www.cfwhisperer.com/post.cfm/sun-jvm-1-6-heap-memory-behavior-with-coldfusion-frameworks http://www.ghidinelli.com/2008/08/18/java16-u10-gives-big-boost-to-modelglue-transfer-coldspring-performance Thirdly, when ColdFusion restarts, it has to compile a lot of files and this, in and of itself, can take a moment. Thus, restarting the service can add to the available timeout. Some groups ping a simple .cfm file before starting the Model Glue application. Lastly, you can always up the timeout request limit. DW On Wed, Feb 18, 2009 at 9:30 AM, Adam Tuttle <[email protected]>wrote: > I've seen this as well and would love to know whats causing it. Seems to me > that once the framework is loaded into memory everything runs nice and fast, > but that first hit will pretty regularly time out. > > Sorry I don't have any answers, but if you do figure anything out be sure > to post it here. > > Adam > > > On Wed, Feb 18, 2009 at 12:34 AM, Andrew <[email protected]> wrote: > >> >> Hi All, >> >> I've seen a few threads regarding this topic but most of the refer to >> shared hosting, which can't be the issue here as I'm seeing it on my >> dev machine (Windows Vista / CF 8.0.1), and also on my production box >> which is CF7 on Solaris. >> >> Here's an example of the error I'm getting is below. >> >> Can anyone suggest what I can try to improve this, or what might be >> causing it? >> >> Happy to supply further information but I"m not quite sure at this >> stage what could be relevant... >> >> Many thanks, >> Andrew. >> >> Bean creation exception during init() of >> ModelGlue.unity.eventhandler.EventHandlerFactory >> >> The request has exceeded the allowable time limit Tag: CFLOOP: >> >> The error occurred in C:\www\cf-frameworks\coldspring1-2-final\beans >> \DefaultXmlBeanFactory.cfc: line 893 >> Called from C:\www\cf-frameworks\coldspring1-2-final\beans >> \DefaultXmlBeanFactory.cfc: line 632 >> Called from C:\www\cf-frameworks\modelglue_2.0.304\ModelGlue\unity >> \loader\XmlConfigurationLoader.cfc: line 53 >> Called from C:\www\cf-frameworks\modelglue_2.0.304\ModelGlue\unity >> \loader\XmlConfigurationLoader.cfc: line 366 >> Called from C:\www\cf-frameworks\modelglue_2.0.304\ModelGlue\unity >> \loader\XmlConfigurationLoader.cfc: line 86 >> Called from C:\www\cf-frameworks\modelglue_2.0.304\ModelGlue\unity >> \loader\FrameworkLoader.cfc: line 98 >> Called from C:\www\cf-frameworks\modelglue_2.0.304\ModelGlue\unity >> \ModelGlue.cfm: line 116 >> Called from C:\www\national-website\html\root\results\index.cfm: line >> 7 >> Called from C:\www\national-website\html\root\Application.cfc: line 59 >> 891 : >> <cfthrow type="coldspring.beanCreationException" >> 892 : >> message="Bean creation exception during init() of >> #beanDef.getBeanClass()#" >> 893 : >> detail="#cfcatch.message#:#cfcatch.detail#"> >> 894 : </cfcatch> >> 895 : </cftry> >> >> > > > > -- "Come to the edge, he said. They said: We are afraid. Come to the edge, he said. They came. He pushed them and they flew." Guillaume Apollinaire quotes --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "model-glue" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/model-glue?hl=en For more about Model-Glue, check http://www.model-glue.com . -~----------~----~----~----~------~----~------~--~---
