You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Lukas Kolbe <lu...@knup.de> on 2003/01/11 19:18:50 UTC

[users@httpd] Many processes never leave Keepalive-state

Hi all!

I'm new to this list, but I ask directly because I never found a
solution to my problem (neither with googl'in around, nor compiling all
by myself or just disabling Keepalives' or other things).

I'm running a webserver with Debian-Linux 3.0, it's a P4 with 1GB RAM. 
Apache 1.2.27.
On it runs a quite db- and php-expensive website.

The problem is that after a while, mod_status tells me that there are
e.g. "60 requests currently being processed, 10 idle servers". Out of
these 60 non-idle httpd's 4 are in W-state, and all other (!) in
K(eepalive)-state.
But most of the processes hanging around in Keepaliv-state have
processed their last request more than a thousands seconds ago (SS-field
in mod_status output). 
Yep, my KeepaliveTimout is set to 5 seconds in httpd.conf.

And when the load get's higher on the server, more httpd's get startet
and somehow get stuck in Keepalive-state, each of them eating up aboud
10 to 40 Meg's of system-Ram, so at the end the server get's really
painfully slow until the kernel begins to kill procs because no memory
is left.

When I do an 'apachectl restart', the error.log says:

-- snip --
[...]
[Sat Jan 11 13:57:58 2003] [warn] child process 1600 did not exit, sending another SIGHUP
[Sat Jan 11 13:57:59 2003] [warn] child process 1601 did not exit, sending another SIGHUP
[Sat Jan 11 13:57:59 2003] [warn] child process 1602 did not exit, sending another SIGHUP
[...]
-- snap --
and later
-- snip --
[...]
[Sat Jan 11 13:58:00 2003] [warn] child process 1600 still did not exit, sending a SIGTERM
[Sat Jan 11 13:58:00 2003] [warn] child process 1601 still did not exit, sending a SIGTERM
[Sat Jan 11 13:58:00 2003] [warn] child process 1602 still did not exit, sending a SIGTERM
[...]
-- snap --

When I say 'Keepaliv Off' in httpd.conf, it doesn't change much, the
processes are hanging in (iirc) W-state.

I hope somebody out there can help me... this problem caused me much
pain, espacially 'cause of all the downtime.

Feel free to ask for other details, I just didn't know what to send
because I tried so much...


-- 
Lukas Kolbe <lu...@knup.de>

Re: [users@httpd] Many processes never leave Keepalive-state

Posted by Lukas Kolbe <lu...@knup.de>.
Am Sam, 2003-01-11 um 19.18 schrieb Lukas Kolbe:
> Hi all!
> 
> [snip]
> When I say 'Keepaliv Off' in httpd.conf, it doesn't change much, the
> processes are hanging in (iirc) W-state.

Nope, I was wrong. With keepalive turned off, the processes hang around
in R-state, mod_status tells ? for client, vhost and request.
And with keepalive off, all this happens a bit slower, e.g. it takes
longer for the machine to 'burn down'.
 
> I hope somebody out there can help me... this problem caused me much
> pain, espacially 'cause of all the downtime.
> 
> Feel free to ask for other details, I just didn't know what to send
> because I tried so much...
-- 
Lukas Kolbe <lu...@knup.de>

Re: [users@httpd] Name-based Virtual Hosting Problem

Posted by Mark McCulligh <mm...@visualtech.ca>.
I will remove them and try it again.

Thanks!!!!!!!!!!!

----- Original Message -----
From: "Joshua Slive" <jo...@slive.ca>
To: <us...@httpd.apache.org>
Sent: Monday, January 13, 2003 9:45 AM
Subject: Re: [users@httpd] Name-based Virtual Hosting Problem


>
> On Mon, 13 Jan 2003, Mark McCulligh wrote:
>
> > Here is all the modules I used in my ApacheTollBox install. Could have I
not
> > used some of these modules. I didn't know which ones I needed.
>
> > [+] 12) -Mod DynaVHost
> > [+] 16) -Mod Bandwidth
> > [+] 18) -Mod Auth LDAP
> >
>
> Bingo!
>
> As I mentioned, that "Mod DynaVHost" thing is often a source of problems.
> Get rid of it.  The other two are also non-standard, and you should
> install them only if you need to use 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
>
>


---------------------------------------------------------------------
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] Name-based Virtual Hosting Problem

Posted by Joshua Slive <jo...@slive.ca>.
On Mon, 13 Jan 2003, Mark McCulligh wrote:

> Here is all the modules I used in my ApacheTollBox install. Could have I not
> used some of these modules. I didn't know which ones I needed.

> [+] 12) -Mod DynaVHost
> [+] 16) -Mod Bandwidth
> [+] 18) -Mod Auth LDAP
>

Bingo!

As I mentioned, that "Mod DynaVHost" thing is often a source of problems.
Get rid of it.  The other two are also non-standard, and you should
install them only if you need to use 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] Name-based Virtual Hosting Problem

Posted by Mark McCulligh <mm...@visualtech.ca>.
Here is all the modules I used in my ApacheTollBox install. Could have I not
used some of these modules. I didn't know which ones I needed.
-----------------------------------------------------------------------
                       Apache Toolbox 1.5.63
             Support: http://www.apachetoolbox.com
-----------------------------------------------------------------------
[+] 0) Modules as DSO's
[+] 2) mod_access
[+] 3) mod_asis
[+] 5) mod_autoindex
[+] 8) mod_imap
[+] 10) mod_mime
[+] 11) mod_negotiation
[+] 12) mod_setenvif
[+] 13) mod_status
[+] 15) mod_actions
[+] 16) mod_auth
[+] 19) mod_dir
[+] 21) mod_include
[+] 22) mod_log_config
[+] 26) mod_vhost_alias
[+] 27) mod_alias
[+] 30) mod_cgi
[+] 31) mod_env
[+] 38) mod_userdir

[+] 1) GD 2.0.1
[+] 5) Mod_SSL+OpenSSL
[+] 10) -Frontpage 2002
[+] 12) -Mod DynaVHost
[+] 16) -Mod Bandwidth
[+] 18) -Mod Auth LDAP

_________________________________________
Mark McCulligh, Application Developer / Analyst
Sykes Canada Corporation www.SykesCanada.com
(888)225-6824 ex. 3262
mmcculli@SykesCanada.com
----- Original Message -----
From: "Joshua Slive" <jo...@slive.ca>
To: <us...@httpd.apache.org>
Sent: Monday, January 13, 2003 9:13 AM
Subject: Re: [users@httpd] Name-based Virtual Hosting Problem


>
>
> On Mon, 13 Jan 2003, Mark McCulligh wrote:
> > The IP-based hosting works fine, but the two sites that share IP
> > 192.168.192.100 don't work right.  If you are on site2.test.com you will
> > sometime get pages from www.test.com.  Example: If you keep hiting the
> > refresh button on the index page you not know what page yoo will get,
> > sometime the index page from site2 and sometimes from site1.  Also a
couple
> > times when I was on www.test.com I get pages from site2 instead.
> >
> > It is like apache is randoming picking from the two sites.
>
> The only time I have every heard of this is when people used broken
> third-party module; in particular, mod_dyn_vhost is known, in some
> versions, to mess up vhosting, even when it is not being explicitly used.
>
> What modules are you using?
>
> 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] Name-based Virtual Hosting Problem

Posted by Mark McCulligh <mm...@visualtech.ca>.
I used apachetoolbox to install my apache/php/mysql on a redhat 7.3 machine.
I don't think the modules are broken.  I am new to apache/linux and used
appachetoolbox because it made for an easy install.

Mark.

----- Original Message -----
From: "Joshua Slive" <jo...@slive.ca>
To: <us...@httpd.apache.org>
Sent: Monday, January 13, 2003 9:13 AM
Subject: Re: [users@httpd] Name-based Virtual Hosting Problem


>
>
> On Mon, 13 Jan 2003, Mark McCulligh wrote:
> > The IP-based hosting works fine, but the two sites that share IP
> > 192.168.192.100 don't work right.  If you are on site2.test.com you will
> > sometime get pages from www.test.com.  Example: If you keep hiting the
> > refresh button on the index page you not know what page yoo will get,
> > sometime the index page from site2 and sometimes from site1.  Also a
couple
> > times when I was on www.test.com I get pages from site2 instead.
> >
> > It is like apache is randoming picking from the two sites.
>
> The only time I have every heard of this is when people used broken
> third-party module; in particular, mod_dyn_vhost is known, in some
> versions, to mess up vhosting, even when it is not being explicitly used.
>
> What modules are you using?
>
> 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] Name-based Virtual Hosting Problem

Posted by Joshua Slive <jo...@slive.ca>.

On Mon, 13 Jan 2003, Mark McCulligh wrote:
> The IP-based hosting works fine, but the two sites that share IP
> 192.168.192.100 don't work right.  If you are on site2.test.com you will
> sometime get pages from www.test.com.  Example: If you keep hiting the
> refresh button on the index page you not know what page yoo will get,
> sometime the index page from site2 and sometimes from site1.  Also a couple
> times when I was on www.test.com I get pages from site2 instead.
>
> It is like apache is randoming picking from the two sites.

The only time I have every heard of this is when people used broken
third-party module; in particular, mod_dyn_vhost is known, in some
versions, to mess up vhosting, even when it is not being explicitly used.

What modules are you using?

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


[users@httpd] Name-based Virtual Hosting Problem

Posted by Mark McCulligh <mm...@visualtech.ca>.
I have been trying to get name-based Virtual Hosting working but I have an
interesting problem.
I have setup my conf something like this:

NameVirtualHost 192.168.192.100
NameVirtualHost 192.168.192.101

<VirtualHost 192.168.192.100>
   ServerName           www.test.com
   DocumentRoot         /usr/isp/site1/www-site1
   DirectoryIndex       index.php index.html index.htm
</VirtualHost>

<VirtualHost 192.168.192.100>
   ServerName           site2.test.com
   DocumentRoot         /usr/isp/site2/www-site2
   DirectoryIndex       index.php index.html index.htm
</VirtualHost>

<VirtualHost 192.168.192.101>
   ServerName           site3.test.com
   DocumentRoot         /usr/isp/site3/www-site3
   DirectoryIndex       index.php index.html index.htm
</VirtualHost>

The IP-based hosting works fine, but the two sites that share IP
192.168.192.100 don't work right.  If you are on site2.test.com you will
sometime get pages from www.test.com.  Example: If you keep hiting the
refresh button on the index page you not know what page yoo will get,
sometime the index page from site2 and sometimes from site1.  Also a couple
times when I was on www.test.com I get pages from site2 instead.

It is like apache is randoming picking from the two sites.

I am using apache 1.3.27

Does anyone have any ideas?
Mark.


---------------------------------------------------------------------
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] Many processes never leave Keepalive-state

Posted by Lukas Kolbe <lu...@knup.de>.
Am Mon, 2003-01-13 um 03.10 schrieb Victor Tsang:

Hi!

> I am sorry I don't have a explaination for you. But I suspect a squid
> proxy cache might be able to help you.  check out
> (http://www.squid-cache.org)

Yes, I already suspected this might help esp. im peak-times. I will have
a look into this.
But I don't think that a Squid can solve this problem generally :(.
I have no idea where that comes from.
Maybe anybody can point me to the right direction?


> Tor.
> 

> -- 
> Lukas Kolbe <lu...@knup.de>


---------------------------------------------------------------------
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] Many processes never leave Keepalive-state

Posted by Victor Tsang <vi...@outblaze.com>.
I am sorry I don't have a explaination for you. But I suspect a squid
proxy cache might be able to help you.  check out
(http://www.squid-cache.org)

Tor.

Lukas Kolbe wrote:
> 
> Hi all!
> 
> I'm new to this list, but I ask directly because I never found a
> solution to my problem (neither with googl'in around, nor compiling all
> by myself or just disabling Keepalives' or other things).
> 
> I'm running a webserver with Debian-Linux 3.0, it's a P4 with 1GB RAM.
> Apache 1.2.27.
> On it runs a quite db- and php-expensive website.
> 
> The problem is that after a while, mod_status tells me that there are
> e.g. "60 requests currently being processed, 10 idle servers". Out of
> these 60 non-idle httpd's 4 are in W-state, and all other (!) in
> K(eepalive)-state.
> But most of the processes hanging around in Keepaliv-state have
> processed their last request more than a thousands seconds ago (SS-field
> in mod_status output).
> Yep, my KeepaliveTimout is set to 5 seconds in httpd.conf.
> 
> And when the load get's higher on the server, more httpd's get startet
> and somehow get stuck in Keepalive-state, each of them eating up aboud
> 10 to 40 Meg's of system-Ram, so at the end the server get's really
> painfully slow until the kernel begins to kill procs because no memory
> is left.
> 
> When I do an 'apachectl restart', the error.log says:
> 
> -- snip --
> [...]
> [Sat Jan 11 13:57:58 2003] [warn] child process 1600 did not exit, sending another SIGHUP
> [Sat Jan 11 13:57:59 2003] [warn] child process 1601 did not exit, sending another SIGHUP
> [Sat Jan 11 13:57:59 2003] [warn] child process 1602 did not exit, sending another SIGHUP
> [...]
> -- snap --
> and later
> -- snip --
> [...]
> [Sat Jan 11 13:58:00 2003] [warn] child process 1600 still did not exit, sending a SIGTERM
> [Sat Jan 11 13:58:00 2003] [warn] child process 1601 still did not exit, sending a SIGTERM
> [Sat Jan 11 13:58:00 2003] [warn] child process 1602 still did not exit, sending a SIGTERM
> [...]
> -- snap --
> 
> When I say 'Keepaliv Off' in httpd.conf, it doesn't change much, the
> processes are hanging in (iirc) W-state.
> 
> I hope somebody out there can help me... this problem caused me much
> pain, espacially 'cause of all the downtime.
> 
> Feel free to ask for other details, I just didn't know what to send
> because I tried so much...
> 
> --
> Lukas Kolbe <lu...@knup.de>
> 
>   ------------------------------------------------------------------------
>                        Name: signature.asc
>    signature.asc       Type: application/pgp-signature
>                 Description: Dies ist ein digital signierter Nachrichtenteil

---------------------------------------------------------------------
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