You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Coach-X <co...@pwx.net> on 2007/02/06 20:52:11 UTC

[users@httpd] unknown requests from localhost/127.0.0.1

Just updated apache from 2.0.59 to 2.2.4.  Server is running fine but
the log file shows hundreds of request like the following in the main
access log:

127.0.0.1 - - [06/Feb/2007:14:33:29 -0500] "GET / HTTP/1.0" 403 325
127.0.0.1 - - [06/Feb/2007:14:33:37 -0500] "GET / HTTP/1.0" 403 325
127.0.0.1 - - [06/Feb/2007:14:33:38 -0500] "GET / HTTP/1.0" 403 325
127.0.0.1 - - [06/Feb/2007:14:33:39 -0500] "GET / HTTP/1.0" 403 325

I cannot seem to figure out why the localhost is requesting itself??  I
have never seen this using 2.0, and have not had any luck finding out
why it is happening.  I thought it might be tomcat/mod_jk, but I shut
tomcat down and the requests still continued.

Server 2.2.4
php 5.2.0
mod_jk 1.2.20
tomcat 5.5.20

configured:
"./configure" \
"--with-layout=BinaryDistribution" \
"--enable-modules=most" \
"--enable-mods-shared=max" \
"--disable-dbd" \
"--with-included-apr" \

Any assistance would be appreciated.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] unknown requests from localhost/127.0.0.1

Posted by Joshua Slive <jo...@slive.ca>.
On 2/6/07, Coach-X <co...@pwx.net> wrote:

> Sever settings are defaults, just as they were for 2.0.  Perhaps they
> have been too low all along.  However in checking server-status, it
> shows 32 out of the current 42 slots (Srv) filled by localhost requests.
>  Does this seem high to you?

Look again at server-status.  You'll notice that all those slots
filled with localhost requests don't actually have an active server
process in them.  So they are just showing you the last request on
their old process, which was, of course, the wake-up request used to
get rid of them.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] unknown requests from localhost/127.0.0.1

Posted by Coach-X <co...@pwx.net>.
On 2/6/2007 3:44 PM, Joshua Slive wrote:
> On 2/6/07, Coach-X <co...@pwx.net> wrote:
> 
>> Just looking at the log file it does seem like the requests happen every
>> 1 to 5 seconds.  I also have not been able to duplicate the problem on
>> our test server.  Same setup, but only on a private network.  Perhaps we
>> cannot hit it with enough connections?
>>
>> I also logged user-agent:
>>
>> 127.0.0.1 - - [06/Feb/2007:15:24:23 -0500] "GET / HTTP/1.0" 403 325 "-"
>> "Apache/2.2.4 (Unix) DAV/2 PHP/5.2.0 mod_jk/1.2.20 (internal dummy
>> connection)"
>>
>> This yields a little more to search on, but is there any way to limit
>> the number of times it tries to "ping" itself?
> 
> Why would you want to?  No harm, no foul.
> 
> But what you might be seeing is a symptom of misconfigured
> process-control directives, leading apache to need to recycle
> processes too frequently.
> 
> For example, make sure that there is a substantial distance between
> MinSpareServers and MaxSpareServers and that MaxRequestsPerChild is
> not set too low.
> 
> Joshua.

Sever settings are defaults, just as they were for 2.0.  Perhaps they
have been too low all along.  However in checking server-status, it
shows 32 out of the current 42 slots (Srv) filled by localhost requests.
 Does this seem high to you?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] unknown requests from localhost/127.0.0.1

Posted by Joshua Slive <jo...@slive.ca>.
On 2/6/07, Coach-X <co...@pwx.net> wrote:

> Just looking at the log file it does seem like the requests happen every
> 1 to 5 seconds.  I also have not been able to duplicate the problem on
> our test server.  Same setup, but only on a private network.  Perhaps we
> cannot hit it with enough connections?
>
> I also logged user-agent:
>
> 127.0.0.1 - - [06/Feb/2007:15:24:23 -0500] "GET / HTTP/1.0" 403 325 "-"
> "Apache/2.2.4 (Unix) DAV/2 PHP/5.2.0 mod_jk/1.2.20 (internal dummy
> connection)"
>
> This yields a little more to search on, but is there any way to limit
> the number of times it tries to "ping" itself?

Why would you want to?  No harm, no foul.

But what you might be seeing is a symptom of misconfigured
process-control directives, leading apache to need to recycle
processes too frequently.

For example, make sure that there is a substantial distance between
MinSpareServers and MaxSpareServers and that MaxRequestsPerChild is
not set too low.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] unknown requests from localhost/127.0.0.1

Posted by Coach-X <co...@pwx.net>.
On 2/6/2007 3:09 PM, Joshua Slive wrote:
> On 2/6/07, Serge Dubrouski <se...@gmail.com> wrote:
> 
>> > These are sent by the server itself to "wake up" child process for
>> > graceful restarts and similar things.
>>
>> Every second???
> 
> Where do you see anything about every second?
> 
> There will be about one for every child process during graceful restarts.
> 
> Joshua.

Just looking at the log file it does seem like the requests happen every
1 to 5 seconds.  I also have not been able to duplicate the problem on
our test server.  Same setup, but only on a private network.  Perhaps we
cannot hit it with enough connections?

I also logged user-agent:

127.0.0.1 - - [06/Feb/2007:15:24:23 -0500] "GET / HTTP/1.0" 403 325 "-"
"Apache/2.2.4 (Unix) DAV/2 PHP/5.2.0 mod_jk/1.2.20 (internal dummy
connection)"

This yields a little more to search on, but is there any way to limit
the number of times it tries to "ping" itself?

Thanks for all replies.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] unknown requests from localhost/127.0.0.1

Posted by Joshua Slive <jo...@slive.ca>.
On 2/6/07, Serge Dubrouski <se...@gmail.com> wrote:

> > These are sent by the server itself to "wake up" child process for
> > graceful restarts and similar things.
>
> Every second???

Where do you see anything about every second?

There will be about one for every child process during graceful restarts.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] unknown requests from localhost/127.0.0.1

Posted by Serge Dubrouski <se...@gmail.com>.
On 2/6/07, Joshua Slive <jo...@slive.ca> wrote:
> On 2/6/07, Coach-X <co...@pwx.net> wrote:
> > Just updated apache from 2.0.59 to 2.2.4.  Server is running fine but
> > the log file shows hundreds of request like the following in the main
> > access log:
> >
> > 127.0.0.1 - - [06/Feb/2007:14:33:29 -0500] "GET / HTTP/1.0" 403 325
> > 127.0.0.1 - - [06/Feb/2007:14:33:37 -0500] "GET / HTTP/1.0" 403 325
> > 127.0.0.1 - - [06/Feb/2007:14:33:38 -0500] "GET / HTTP/1.0" 403 325
> > 127.0.0.1 - - [06/Feb/2007:14:33:39 -0500] "GET / HTTP/1.0" 403 325
> >
> > I cannot seem to figure out why the localhost is requesting itself??  I
> > have never seen this using 2.0, and have not had any luck finding out
> > why it is happening.  I thought it might be tomcat/mod_jk, but I shut
> > tomcat down and the requests still continued.
>
> These are sent by the server itself to "wake up" child process for
> graceful restarts and similar things.

Every second???

> They can be safely ignored.
> (If you were logging the user-agent, you would see a note about what
> they are.)
>
> Joshua.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] unknown requests from localhost/127.0.0.1

Posted by Joshua Slive <jo...@slive.ca>.
On 2/6/07, Coach-X <co...@pwx.net> wrote:
> Just updated apache from 2.0.59 to 2.2.4.  Server is running fine but
> the log file shows hundreds of request like the following in the main
> access log:
>
> 127.0.0.1 - - [06/Feb/2007:14:33:29 -0500] "GET / HTTP/1.0" 403 325
> 127.0.0.1 - - [06/Feb/2007:14:33:37 -0500] "GET / HTTP/1.0" 403 325
> 127.0.0.1 - - [06/Feb/2007:14:33:38 -0500] "GET / HTTP/1.0" 403 325
> 127.0.0.1 - - [06/Feb/2007:14:33:39 -0500] "GET / HTTP/1.0" 403 325
>
> I cannot seem to figure out why the localhost is requesting itself??  I
> have never seen this using 2.0, and have not had any luck finding out
> why it is happening.  I thought it might be tomcat/mod_jk, but I shut
> tomcat down and the requests still continued.

These are sent by the server itself to "wake up" child process for
graceful restarts and similar things.  They can be safely ignored.
(If you were logging the user-agent, you would see a note about what
they are.)

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org