Many NULL request in apache

...To clairfy, the NULL requests on the "localhost" VirtualHost are requests from browsers like Chrome.
They're pre-connections made by the browser for clients who have already downloaded a webpage from your server...

That could explain some of them, but only some. I can see the ip from my own home computer in Apache Server status using localhost NULL requests. I do not use Chrome browser. So localhost NULL is being displayed for a lot of different things, and is not only related to Chrome. This is new in recent versions of Apache.
 
Hello,

To clairfy, the NULL requests on the "localhost" VirtualHost are requests from browsers like Chrome.
They're pre-connections made by the browser for clients who have already downloaded a webpage from your server.
Basically, the browsers will know that there are links in the webpage that the client may click, so to save time, the browser connects to apache in anticipation of a link being clicked.
However, a request is not yet made, so the browser will simply idle on that connection until the request is made (link is clicked).
During that idle time, apache doesn't know which VirtualHost the connection is for (since the browser has not yet said anything), thus it defaults to the first VH in the list.. which has a ServerName of "localhost".. .. and since no request has been made, the request is NULL.

So you can ignore these entries. They're normal.
No need to change your Apache version.

John

It's not only like that, but I see that Apache keep a connection (example process id=123) in a NULL request state. That mean it open a process (process id=123) and wait for a client (any client) to connect into server using process id=123.
So when a new request come, Apache can assign to a pre-open process, it will make things faster than always open new process when a request come.
So please don't try to close the NULL request. It's a good one for you to make your server faster.

But I still don't understand, why some NULL request still spend high CPU load (in CPU column)?


Thanks.
 
Back
Top