Apache2 does tons of reads before serving a simple http request response
I ran
ps auxw | grep sbin/apache | awk '{print " -p " $2}' | xargs strace -o apache2.log
to look at what happens in apache2 when I send a request. In the browser, dev tools, network, I see that the initial request for my page (
In the strace http://gerbus.ca/apache2.log
1 Reply
Whatever crap is happening with those read calls is happening in PHP. You can see the interpreter startup at 14:19:19, it then reads a WSDL cache and does bunch of other crap, so your PHP code would be the primary suspect.