Forum Moderators: phranque
The first page on my site that I open loads extremely slow ~ 5-10s. After that, everything is lightning fast. However, if I open another browser, and load a page .. that page is super slow as well, then the same thing other pages load fast. But then, I go back to the first browser, and try another page, and its back to a slow load for that page.
This is happening for all browsers, even when I'm browsing on the server itself.
Is this something to do with apache, and child processes? MySQL isn't the holdup, the queries are fast, and it's not php, as it happens on both php files and regular html files. Could it be in the way I've configured Apache? - very confused
Thanks,
-sned
The first thing I would do would be to look at processes prior to fetching a page ('ps -A' under linux), and netstat output, apache will generally start with a small number of listening threads and slowly scale up more threads to compensate for demand. Aloso I would take a look at logfiles (generally /var/log/[apache¦apache2¦httpd]), particularly the error log for any atypical stuff.
There are all sorts of configuration options that can be detrimental to speed, tracing the process seems to be the best manner in which to find those most effecting ones site.