Main Content

Internal Dummy Connections on Apache httpd

Archive - Originally posted on "The Horse's Mouth" - 2009-03-02 05:15:27 - Graham Ellis

Is your Apache httpd log file 'full' of entries like this?

xx.xxx.xx.xx - - [02/Mar/2009:05:08:45 +0000] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.9 (Unix) PHP/5.2.6 (internal dummy connection)"

What causes them?

Your web keeps a number of spare 'slots' open to process new incoming requests, opening them up ahead of growing traffic. And at times that traffic is dropping off, it closes spare slots to allow memory to be released to other system users. This dummy connection / request is used to signal to a slot that it should shut-down, so you'll find a series of these messages cropping up as traffic falls.

Should I worry about them?

Not very much. Some of them are to be expected; if there are a very large number of them, though, it may be worth you altering some of your server settings - see this previous article for a description of how the slots are opened and closed.

Can I eliminate the from my logs?

Yes - add something like:
SetEnvIf Remote_Addr "xx\.xxx\.xx\.xx" dontlog
to your log file, and update your logging directive to use that setting:
CustomLog /var/log/apache2/access_log combined env=!dontlog

There's more detail of how this configuration change works at this off site resource, but bear in mind that you'll be fixing a symptom rather than curing an issue if you simply stop logging huge quantities of these messages.

The IP address given will be your server's own IP address. If it's someone else's, then THAT would be a concern!