That's right

The cache is there so that the CF server doesn't have to generate the class
files on each request.  Its not like a browser cache where its storing the
actual rendered output.

You can control how much cache there is also so maybe that is an issue?  The
slow responses are the ones where it is generating the class file again?

Steve 

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of nedlud
Sent: Tuesday, 15 April 2008 12:04 PM
To: cfaussie
Subject: [cfaussie] Re: frustrated CF newbie


I was just talking to the sysadmin again, but that's left me more confused
than I was before.

Reading the Macromedia book on CFmx, the chapter on performance says that
enabling "Trusted Cache" on production can make it faster. The sys admin is
saying that this cahce only stores compiled class files.
I had assumed the cahce was for storing HTTP responses which had already
been generated by the class files.

Can anyone offer some clarification on this?

I thought I could get by just being a programminer. Seems I need to learn a
lot more about the inner workings of the CF server. There's that learning
curve again :)

Lucien.


On Apr 15, 9:31 am, nedlud <[EMAIL PROTECTED]> wrote:
> Thanks everyone.
>
> I *think* we are using CF6. I know the sys admin is experimenting with
> CF8 with a view to rolling it out sometime soon, but it's not 
> available to me currently.
>
> OS is RH ("Red Hat Enterprise Linux ES release 4 (Nahant Update 6)"
> says the server). Single CPU on the dev machine, and two on 
> production. When I asked the sys admin, he said we were using whatever 
> version of Java that ships with CF. He thought it was either 1.3 or 
> 1.4. Java -version on the dev machine reports it's running 1.4.2.
>
> These are things I don't have much control over. The Web department, 
> where I am, is not part of the IT department who run and maintain our 
> servers. I have spoken to the sys admin who hand balled it back to me 
> saying I should check my code since he thought the server was running 
> just fine.
>
> Showing the execution time in the debugger shows that the fusebox 
> framework (fbx_fusebox30_CF50_nix.cfm") is one of the biggest hogs. It 
> also reports a layout template that runs for every page served.
> Neither of these files are unique to my app.
>
> But I'll check out the tools mentioed here and see where they get me.
>
> Thanks again everyone.
>
> Lucien.
>
> On Apr 15, 7:21 am, "charlie arehart" <[EMAIL PROTECTED]>
> wrote:
>
> > Lucien, what version of CF are you running? Assuming it's CF7 or 
> > above, take a look at the Client Variables page in the CF Admin. 
> > There's a setting at the bottom for purge interval. The default is 1 
> > hour 7 minutes, and if your problem of problems "every now and 
> > again" matched that interval, I'd propose that you had a problem 
> > with the client variable repository (or repositories). But you say 
> > it's " a little less than every 2 minutes". It's worth confirming 
> > that someone didn't change the purge interval to that value.
>
> > Beyond that, I'd say (like Geoff) that you check out a tool like 
> > FusionReactor or SeeFusion (or the Cf8 monitor if you're running on 
> > CF8 Enterprise). Those let you view the running requests in CF, and 
> > let you generate a stack trace to see exactly what line of code 
> > you're running in a page that seems stuck.
>
> > /charlie
>
> > -----Original Message-----
> > From: [email protected] [mailto:[EMAIL PROTECTED] 
> > On Behalf
>
> > Of nedlud
> > Sent: Monday, April 14, 2008 3:11 AM
> > To: cfaussie
> > Subject: [cfaussie] frustrated CF newbie
>
> > Hi Everyone,
>
> > I'm quite new to Coldfusion, having only used it for the 6 months 
> > I've been in my current job, so there are many things that I just 
> > don't understand yet.
>
> > My current problem is performance.
>
> > I have a Fusebox 3 app running on Coldfusion. There are quite a few 
> > db queries that use joins of 2 or 3 tables, but nothing that should 
> > confound the server too much. In fact the sys admin has checked his 
> > logs and tells me the querries aren't running slowly.
>
> > Most of the time, the app runs smoothley. But every now and again, 
> > it just hangs for an extended period (30+ seconds). I only noticed 
> > this behaviour once I'd deployed the app to our production server. 
> > But then I started looking at the dev server and the same problem 
> > could be seen there, only on a smaller scale. When I run the 
> > Coldfusion Admins debugging tools (execution times) on the dev 
> > machine, I get occasional execution times of 400 to 1000 (or more) 
> > ms on the dev machine. For comparison, the app normaly runs in less 
> > than 100ms. The timeouts are 10 times (or more) longer on 
> > production. I assume this is due to the load on the production machine.
>
> > I'm perfectly willing to accept that my own inexperience with CF has 
> > lead me to write some bad code. But I'm having trouble reliably 
> > reproducing the effect on the server. I can click through the same 
> > sequence of steps repeatedly, and have it run smoothy 9 times out of 
> > 10, then bang! Hangtime!
>
> > The only common factor I can find is that it seems to happen about 
> > every 100 - 110 seconds (a little less than every 2 minutes). The 
> > session variables are set to time out in 20 minutes, so I don't 
> > think they are causing the problem.
>
> > I need to go over my code with a fine tooth comb, but there's a part 
> > of me that suspects the server. Could this be some kind of caching 
> > issue? And how best can I debug this?
>
> > Any advice greatly welcome,
>
> > Lucien.




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" 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/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to