> On Sat, Feb 20, 2010 at 3:06 AM, Leon Miller-Out wrote:
> > To our great dismay, it appears that our ColdFusion 7 servers can't 
> serve the new API reliably. It works for about a day or so after 
> restarting, then the clients start getting errors like:
> >
> > Error: coldfusion.xml.rpc.CFCInvocationException
> > [java.lang.ClassNotFoundException : tafkan.remote_api.pfapi.v.trunk.
> rsp_pf_survey_status_array]
> 
> The interesting part is that this occurs after some time instead of
> immediately. I have not experienced your issue before, bt that
> particular behaviour leads me in the following directions:
> 
> 1. Disable the JIT compiler. This compiler recompiles the Java
> bytecode into native code after it has been executed a number of
> times, so that is obviously something that would happen after a while.
> 
> The downside is that your code will not speed up after X executions.
> The way to disable the JIT compiler is to add -Xint to your Java
> parameters in jvm.config. See
> 
> 2. Is anything expiring in your application after a while? 
> Application
> variables, framwork reinit or something?
> 
> Jochem
> 
> 
> -- 
> Jochem van Dieten
> http://jochem.vandieten.net/

Thanks, Jochem! I just tried disabling the JIT compiler. The API test suite now 
takes twice as long to run. I've read that this change basically trades 
performance for stability, but I don't know if I can live with every request 
taking twice as long. We'll see what happens.

There shouldn't be anything in the application that expires. The 
applicationTimeout is 1 day, but my understanding is that this just 
garbage-collects the application scope if it hasn't been used in a day. I'll 
see if I can think of anything else.

I also tried updating to JRE 1.5, but it's a nightmare with CF7 if you're using 
Web Services, so I backed it out. 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331000
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to