Skip to main content
Known Participant
Nov 16, 2011 4:23 PM UTC
Question

Slow page loading after saving

Every time I save a page, it can take up to 5 secs to load but it only occurs the first time I load the page after a save.

Upon reviewing the debugging information, I notice that the "STARTUP, PARSING, COMPILING, LOADING, & SHUTDOWN" times are significantly different. Prior to saving the file and after reloading the page the second time (and any additional time thereafter) this process is normally less than 10ms.  On saving the file and the initial load, this timer is often as high as 1500ms.   This occurs on any page I save HOWEVER, it only occurs on the developement server.  Doing the exact same tasks on another server, the "STARTUP, PARSING, COMPILING, LOADING, & SHUTDOWN" only increases by a small fraction(instead of 10ms say 50-100ms). 

What could be causing the development server to take such a significant amount of time on the "STARTUP, PARSING, COMPILING, LOADING, & SHUTDOWN" ?

Windows 2008 R2 Web Server Edition running on a ESX 4.1 host (2 Processors with 4GB of RAM assigned).  CF9. Both servers are identical in regards to configuration.  This just started to occur the past week. No patches or updates have been applied to either server during the past week.

The actual page times are not changed (somewhere around 50-200ms to load the page +- 50-100ms for the application.cfc)

Thanks!

This topic is closed to new replies. Start a new post to keep the conversation going.

17 replies

BKBK
Community Expert
Community Expert
Nov 16, 2011 8:45 PM UTC

Go to the Caching page in the Administrator. Uncheck the option to Save Class Files. Press the button to submit the changes. Does that make any difference?

Translate
Known Participant
Nov 16, 2011 8:52 PM UTC

Unforunately... no.   It is interesting that it states to leave off for development server, but it did not seem to resolve the issue. I did not restart CF (does not state to do so)

Right after a file is saved.

3579 ms STARTUP, PARSING, COMPILING, LOADING, & SHUTDOWN

After the initial opening of the file and any time there after...

0 ms STARTUP, PARSING, COMPILING, LOADING, & SHUTDOWN
Translate
BKBK
Community Expert
Community Expert
Nov 17, 2011 11:51 AM UTC

We should be clear about one thing, which Adam has already mentioned. What you state -- that startup, parsing,..., shutdown take more time when ColdFusion processes the page for the very first time -- is actually the expected behaviour! Your question is therefore, what could be making this time to differ significantly between 2 two 'identical' ColdFusion server setups.

I have emphasized 'identical' for a reason. It is difficult, if not practically impossible, to consturct identical setups on different machines. I can think of several situations where the ColdFusion configuration may be the same, whereas the server setups are far from identical. For example, (1) the servers are connected differently to third-party resources required by the page, such as to databases or to other files; (2) the servers have different CPU speed or power; (3) one server hosts a third-party application sharing the same JVM as ColdFusion, and so on.

Translate
Inspiring
Nov 16, 2011 4:34 PM UTC

ColdFusion templates are compiled at runtime.  When you change a file it needs to be recompiled.  That's the extra overhead.

--

Adam

Translate
Known Participant
Nov 16, 2011 4:36 PM UTC

I understand however, the difference is significate and only on one server. Working on the same file on another server, the compiling process is a fraction of a sec (compared to 5 secs).

Translate
Inspiring
Nov 16, 2011 4:41 PM UTC

When you say the configs are identical, to what level do you mean?  IE: same server spec & OS & CF version, or down to same JVM settings, CF settings, etc too?

Are the files on a network share instead of being stored locally?

--

Adam

Translate