Im running Apache on OSX, installed it via ports. For some reason it takes several seconds when im requesting pages from different php scripts. It’s not specific to a single script, happens with all of them. I’ve really spent already a lot of time searching for the cause (also on google), optimized the server, deactivated modules… Still no success.
The macmini is in my local network. Im accessing the pages using a windows machine, the macmini itself and apache are configured to load the php scripts from a network drive. So the data goes over at least three machines. But this should not be any issue, specially since its a gbit network.
Checking the server status with apaches mod_status shows me most of the time a line similar to this for my request:
10-0 3612 0/0/0 W 0.00 39 0 0.0 0.00 0.00 87.168.224.196 something.org GET / HTTP/1.1
The W means “Sending Reply” and i can also see here that it takes a lot of time.
Here is the Timing and Size monitored by using Charles Proxy:
Timing Request Start Time 11.02.11 12:47:31 Request End Time 11.02.11 12:47:31 Response Start Time 11.02.11 12:48:17 Response End Time 11.02.11 12:48:20 Duration 49.33 sec Request Duration 2 ms Response Duration 3.13 sec Latency 46.20 sec Speed 45,95 KB/s Response Speed 723,92 KB/s Size Request Header Size 776 bytes Response Header Size 255 bytes Request Size - Response Size 2,21 MB (2319994 bytes) Total Size 2,21 MB (2321025 bytes) Request Compression - Response Compression -
Any further ideas what the issue could be?
I don’t know how to read what you pasted, but how long is it actually taking?
I don’t think the gbit network offers any benefit over a mbit network in this case, since it is basically about response times in stead of bandwidth.
How long does it take from the machine it is running on?