You should definitely use apache to serve up the static files (images,
css, javascript) directly rather than have cherrypy do it. That should
free up your cherrypy threads "do real work" and should improve your
concurrency issues.

You may also want to try reducing the number of threads you open up in
your cherrypy instance.

If you have 400k of HTML, you're likely looking at Kid as a
bottleneck.   Try skiping the template rendering (just return an empty
string at the end of your controller) and see what happens.  If you
have huge tables with lots of tags Kid can get pretty slow and you may
want to try another rendering engine like Mako for that page.

I'll try to find some links for some decorators you can use to time
things in turbogears....  They were posted on the mailing list some
time ago.

On Feb 12, 2008 4:49 AM, Thomas Wittek <[EMAIL PROTECTED]> wrote:
>
>
> On Feb 7, 2:48 am, James <[EMAIL PROTECTED]> wrote:
> > However,
> > there is a latency 5 to 10 seconds for the page loads. The
> > throughput's pretty low and I'm not moving much data at all (a whole
> > page is <400k, without clientside caching), so the problem is not with
> > Apache.
>
> 400k is quite a bit. Especially when you have lots of small files and
> lots of requests.
> Did you try to minimize HTTP requests by combining CSS, JS and images?
> You can analyze the client performance using YSlow: 
> http://developer.yahoo.com/yslow/
>
> Also it'd be interesting how much time it takes using a "dumb" client
> like wget that doesn't download any additional files but only the HTML
> response.
>
> >
>



-- 
Mark Ramm-Christensen
email: mark at compoundthinking dot com
blog: www.compoundthinking.com/blog

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

Reply via email to