I am developing a Django-based site, and it *really* seems to be
slow... sometimes. It's running in an Apache virtual server on the
same machine as my static site. When things are good, the
Django-based site approaches the static site in speed, but when things
are bad, there's just no comparison. At those times, my development
server (local of course) is far, far faster. The slowness typically
comes after not having accessed the site for a while. I suspected
paging at first, but I don't think anything should be taking that much
memory and I noticed that it tends to stay slow through several
minutes of surfing, when everything should have long since been paged
back in.
I'm using the prefork MPM as recommended. I'm using the locmem cache.
I'm not cacheing pages, but I am cacheing major HTML fragments -- the
templating system is still running for each page. I was cacheing
whole pages for a while and it didn't seem to make a difference, so I
turned that off.
If I log into the server and run "top" while trying to access pages, I
don't see any alarming jumps in CPU load; the hungriest processes
typically stay in single-digit (or below) percentages of CPU usage, so
I doubt profiling is going to be much use. I don't really know where
to start in debugging this.
Any insight you might have is appreciated.
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---