Hi,

If you don't have your template compiled then at first time it will
under go compilation which takes a few (mili)seconds depending upon your
template size. 

If you clear the Template cache then CF will re-load templates into
memory the next time they are requested and recompile them again if they
have been modified. Once you have all the templated compiled, subsequent
request should be smoother.

In production environment it is recommended to check the "Save Class
Files" option.

Regards,
Jayesh Viradiya
Adobe CF Team

-----Original Message-----
From: Ryan Duckworth [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 01, 2007 3:31 PM
To: CF-Talk
Subject: CF 8 Load Time Problem

We have been running CF 8 in our dev environment without any problems.
 After upgrading to CF 8 on one of our production boxes, we are having
lots of problems.

The first page hit seems to take an extreme amount of time.  We have
been watching these requests using Fusion Reactor and have seen the
same stack traces repeatedly.  Most of them have to do with
"TemplateClassLoader" or "java.lang.ClassLoader.loadClass"

The requests seem to backup to the point where they take over a minute
each.

When we got our server to finally respond quickly we tried "Clear
Template Cache Now" and this triggered the long request times again.

Below are some of the sample stack traces.  Any ideas?
_____________________________________________________________
java.lang.Class.getDeclaredConstructors0(Class.java:???)[Native Method]
java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
java.lang.Class.getConstructor0(Class.java:2699)
java.lang.Class.newInstance0(Class.java:326)
java.lang.Class.newInstance(Class.java:308)
coldfusion.runtime.TemplateClassLoader.newInstance
.....
_____________________________________________________________

java.io.WinNTFileSystem.getBooleanAttributes(WinNTFileSystem.java:???)[N
ative
Method]
java.io.File.exists(File.java:733)
sun.misc.URLClassPath$FileLoader.getResource(URLClassPath.java:983)
sun.misc.URLClassPath.getResource(URLClassPath.java:168)
java.net.URLClassLoader$1.run(URLClassLoader.java:192)
java.security.AccessController.doPrivileged(AccessController.java:???)[N
ative
Method]
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
coldfusion.bootstrap.BootstrapClassLoader.loadClass(BootstrapClassLoader
..java:221)
java.lang.ClassLoader.loadClass(ClassLoader.java:299)
.....
_______________________________________________________________



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289881
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to