You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Романов Олег <ol...@gmail.com> on 2009/02/06 10:21:58 UTC

[users@httpd] mod_proxy_balancer works slowly (many proxy_util.c(1820): proxy: worker http://XXX already initialized messages)

Hello All!

Please help me with the following:

I have a server running Gentoo with apache 2.2.11 installed, which is used
as a loadbalancer.
I see that it works really slow.. In the error log I see many debug
messages. These appear from time to time and if I try to enter the site when
these messages appear, it takes much longer to get the response. Here are
the messages:

[Fri Feb 06 10:06:33 2009] [debug] proxy_util.c(1801): proxy: grabbed
scoreboard slot 0 in child 4560 for worker http://bla1
[Fri Feb 06 10:06:33 2009] [debug] proxy_util.c(1820): proxy: worker
http://bla1 already initialized
[Fri Feb 06 10:06:33 2009] [debug] proxy_util.c(1914): proxy: initialized
single connection worker 0 in child 4560 for (bla1)
[Fri Feb 06 10:06:33 2009] [debug] proxy_util.c(1801): proxy: grabbed
scoreboard slot 2 in child 4560 for worker http://bla2
[Fri Feb 06 10:06:33 2009] [debug] proxy_util.c(1820): proxy: worker
http://bla2 already initialized
[Fri Feb 06 10:06:33 2009] [debug] proxy_util.c(1914): proxy: initialized
single connection worker 2 in child 4560 for (bla2)
[Fri Feb 06 10:06:33 2009] [debug] proxy_util.c(1801): proxy: grabbed
scoreboard slot 1 in child 4560 for worker http://bla1
[Fri Feb 06 10:06:33 2009] [debug] proxy_util.c(1820): proxy: worker
http://bla1 already initialized
[Fri Feb 06 10:06:33 2009] [debug] proxy_util.c(1914): proxy: initialized
single connection worker 1 in child 4560 for (bla1)
[Fri Feb 06 10:06:33 2009] [debug] proxy_util.c(1801): proxy: grabbed
scoreboard slot 3 in child 4560 for worker http://bla2
[Fri Feb 06 10:06:33 2009] [debug] proxy_util.c(1820): proxy: worker
http://bla2 already initialized
[Fri Feb 06 10:06:33 2009] [debug] proxy_util.c(1914): proxy: initialized
single connection worker 3 in child 4560 for (bla2)

This is just a few of them and as I understand it creates new processes
again and again..
To figure out what's happening I've installed the same configuration on
another server and there it works flawlessly (no debug messages at all).

My configuration:
proxy_module
proxy_balancer_module
proxy_http_module
Loaded

==========
  <Proxy *>
    Order deny,allow
    Allow from all
  </Proxy>

  ProxyPass /balancer-manager !
  ProxyPass /server-status !
  ProxyPass / balancer://mycluster/ lbmethod=byrequests
stickysession=BALANCEID nofailover=Off
  ProxyPassReverse / balancer://mycluster/

  <Proxy balancer://mycluster>
    BalancerMember http://bla1  route=bla1
    BalancerMember http://bla2  route=bla2
  </Proxy>
============

MPM="prefork"

Thanks in advance!

-- 
Best regards,
Oleg

oleg@bintime.com