How long should apache (and Embperl) be caching pages?
When does Embperl decide to recompile (apart from when a page source
changes)?
I ask because I have been watching my server, and notice that at various
(random) times, some pages take longer to load than normal, on the order
of a few seconds. This looks like the page is being re-loaded or
recompiled on the server, because if I reload in rapid succession after
the slow load, it is instantaneous. But then I can wait a few minutes
and go back and do it again, and there is a delay again. This is not
deterministic, and impossible to repeat with the same results each time.
So it smells like a caching issue to me.
I have taken a look at which apache processes are serving my requests
(through using server-status), and while some of the time I can
attribute the delay to a new apache process loading up the page for the
first time, other times I can see that this process already saw the page
I am requesting just a couple of minutes ago. So, in theory it should be
fast, right? But sometimes it is slow again. Always, I can hit "reload"
several times and it is very fast again.
I know that the delay is actually on the server, because server-status
displays the actual time taken to process the requests (and the time
displayed for the slow requests is much larger than average). So this is
not a slow connection issue (besides, this is all going on over the
LAN).
There is nothing much else going on on this machine, so it's not server
load. All the relevant pages use MySQL. Could there be caching issues
with MySQL? Anybody had experiences of that? I always thought MySQL was
extremely fast, so I don't think it's the database.
I am aware of the Embperl options for reloading source, but I don't see
why the Apache process would recompile these pages at all if they
haven't changed and were accessed just a few minutes ago. Perhaps there
are settings for the amount of memory to use in the cache, or the number
of files, or similar?
This server runs Red Hat Linux 7.0 with all patches, Apache 1.3.14,
mod_perl 1.24_01, mysql 3.23.32, and Embperl 1.3.1.
Any ideas much appreciated...
TIA
-Neil
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]