I'm putting myself in the "blame the JVM" camp too.

According to
http://www.adobe.com/products/coldfusion/coldfusion8/systemreqs/ CF8 shipped
with Sun JDK 1.6.0_04. The class loader bug that cripples CFC instantiation
was first fixed in Sun JDK 1.6.0_10.

The trace info that Bud posted in another email showed that the slowest part
is loading the initial XML module (not appendGeneratedViewMapping as he
suggested). I know that the Model-Glue XML module loader instantiates large
numbers of CFCs.

I suggest that anyone experiencing problems with startup times for a MG
application check the JVM version and upgrade it if necessary.

Cheers,

-- Dennis

On Mon, Feb 15, 2010 at 1:15 PM, Charlie Griefer
<[email protected]>wrote:

> Denny and Todd may be on the right track here... could be the JVM.  Bud
> mentioned CF8 at CrystalTech.  Didn't CF8 still ship with that JVM version
> that had issues with object instantiation?
>
>
> On Mon, Feb 15, 2010 at 9:54 AM, Dan Wilson <[email protected]> wrote:
>
>> Model Glue is always going to need a little extra time to initialize
>> because a lot of CFCs must be created, your configuration must b e parsed
>> and stored, and other important start up functionality must take place. Once
>> MG starts up, MG can rely on scope stored component instances to go fast.
>>
>> Now, it is important to note, as ModelGlue starts up, so do all of your
>> beans and all of the initialization in your controllers. Depending on what
>> you are doing in your initialization, you can affect how long it takes to
>> start your application. If you have configuration or queries or web service
>> calls or HTTP requests in your configure or init methods in your
>> controllers, this will add to the time MG takes to start up. Also, if you
>> have lots of CFC dependencies and are using those CFCs in the start up of
>> your application, ColdSpring will have to create all of those CFCs before MG
>> can be fully initialized as well...
>>
>> Also, if you restart ColdFusion and try to start MG, you'll see even
>> longer load times.Model Glue in and of itself is quick to start. We've got a
>> slimmed down application that will reload from scratch in mere seconds (1 or
>> 2). But then again, it has no database, nor CFC dependencies to deal with.
>>
>> I'm sure we can help you (both) out, but we are going to need a lot more
>> information and for you to keep doing some digging on your own.
>>
>>
>> DW
>>
>>
>>
>>
>>
>> On Mon, Feb 15, 2010 at 12:39 PM, Chris Blackwell <[email protected]>wrote:
>>
>>> If either of you are able to share your code i'd be happy to see if i can
>>> reproduce the error on my machine.
>>> Drop me a mail off-list if i can help you out
>>>
>>> -Chris
>>>
>>> On 15 February 2010 16:59, Ron Mast <[email protected]> wrote:
>>>
>>>> I am having similar issue as Bud...:(
>>>>
>>>> Mine takes 57 seconds to load...then pretty snappy afterwards.
>>>>
>>>> Was there a recent update as of late? Maybe I just need to update
>>>> framework core files.
>>>>
>>>> Ron
>>>>
>>>> On Mon, Feb 15, 2010 at 10:49 AM, Dan Wilson <[email protected]>
>>>> wrote:
>>>> > Are you SURE the Report Execution Times setting is unchecked in the
>>>> debug
>>>> > section of CF Admin?
>>>> > DW
>>>> >
>>>> > On Mon, Feb 15, 2010 at 11:41 AM, Bud <[email protected]> wrote:
>>>> >>
>>>> >> Dan, I've read that article and it doesn't apply here. The
>>>> application
>>>> >> is fast AFTER it is initialized. It's the initialization part that's
>>>> a
>>>> >> problem. It's taking over 60 seconds to initialize when I pass the
>>>> >> reset_app key or after ColdFusion restarts. If I can't get to the
>>>> >> bottom of this I have to scrap model-glue and move this app to a
>>>> >> different framework. I hate to throw away all that work because it
>>>> >> runs beautifully after it's been initialized. Obviously anything
>>>> >> longer than 5-10 seconds to initialize is too long. A full minute is
>>>> >> ridiculous.
>>>> >>
>>>> >> Even if I remove all of the event handlers except 1 out of my
>>>> >> modelglue.xml file it takes 6 seconds to complete that
>>>> >> appendGeneratedViewMapping step I pointed out above.
>>>> >>
>>>> >> Once again. I have rescaffold=false and am not using scaffolds.
>>>> >>
>>>> >> On Feb 15, 10:56 am, Dan Wilson <[email protected]> wrote:
>>>> >> > Hi Bud,
>>>> >> >
>>>> >> > Remind me how far you got into this article again?
>>>> >> >
>>>> >> >
>>>> http://docs.model-glue.com/wiki/FAQs/WhyIsMyModelGlueApplicationSlow
>>>> >> >
>>>> >> > DW
>>>> >>
>>>>
>>>

-- 
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

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

Reply via email to