"Internal bogus connection" in the log, MaxClient reached, server crashes. Opinions?

I am trying to organize my client server. After loading the access_log files, I noticed that there were a lot of entries that looked like this:

::1 - - [11/May/2009:23:21:16 +0100] "GET / HTTP/1.0" 403 5043 "-" "Apache/2.2.3 (CentOS) (internal dummy connection)"

      

I also checked the httpd.conf file and I saw the following settings:

# ServerLimit: maximum value for MaxClients for the lifetime of the server
# MaxClients: maximum number of server processes allowed to start   
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule prefork.c>
StartServers       8
MinSpareServers    8
MaxSpareServers   13
ServerLimit      256
MaxClients   256
MaxRequestsPerChild  50
</IfModule>

# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule worker.c>
StartServers         2
MaxClients         150
MinSpareThreads     25
MaxSpareThreads     75
ThreadsPerChild     25
MaxRequestsPerChild  0
</IfModule>

      

I read that I need to set MaxSpareServes to a value greater than MinSpareServers. Opinions are welcome.

Best wishes. Tom

+1


a source to share


1 answer


As far as I know, you have nothing to worry about, you can just stop them from being logged if you like using the information from the link already given by Andri ...



If you want to exclude them from your log, you can use normal conditional logging methods. For example, to omit all requests from the loopback interface from your logs, you can use

SetEnvIf Remote_Addr "127\.0\.0\.1" loopback

and then add env =! loopback to the end of your CustomLog directive.

+3


a source







All Articles