You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by ap...@ns.purk.ee on 2002/05/12 11:34:22 UTC

apache starts swaping

Hi

im struggling now for a month to get apache not to swaping on my
NetBSD box.Couple days ago i upgraded to 1.3.24 ...changed el-chip realtek
chips to Intel EtherExpress...:) im tryed so many different config options
but no luck:)in this mashine running only 2 sites with mysql database...and
thats all.Box is PII 266 ,98RAM :)It stays about 3 days...and eating memory
and then starts to swaping...and u know..what happens at the end :)

Any help is welcome!

  PID USERNAME PRI NICE   SIZE   RES STATE     TIME   WCPU    CPU COMMAND
 6432 root       2    0   344K 1172K sleep     0:06  0.55%  0.54% sshd
  255 nobody    18    0    33M    4K sleep     1:40  0.00%  0.00% httpd
  265 nobody     2    0    40M  104K sleep     1:18  0.00%  0.00% httpd
  264 nobody    18    0    41M    4K sleep     1:03  0.00%  0.00% httpd
  263 nobody    18    0    40M    4K sleep     0:57  0.00%  0.00% httpd
  258 nobody    18    0    28M    4K sleep     0:49  0.00%  0.00% httpd
  245 root       2    0    12M 1364K sleep     0:48  0.00%  0.00% mysqld
  132 named      2    0  2716K 2332K sleep     0:44  0.00%  0.00% named
  262 nobody    18    0    24M    4K sleep     0:42  0.00%  0.00% httpd
  259 nobody    18    0    25M 3504K sleep     0:39  0.00%  0.00% httpd
  257 nobody    18    0    25M    4K sleep     0:38  0.00%  0.00% httpd
  256 nobody    18    0    24M    4K sleep     0:38  0.00%  0.00% httpd
  254 nobody    18    0    25M    4K sleep     0:37  0.00%  0.00% httpd
  246 root       2    0  1492K  684K sleep     0:07  0.00%  0.00% httpd
  211 root       2    0   644K  548K sleep     0:04  0.00%  0.00% nmbd



-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: apache starts swaping

Posted by "Matus \"fantomas\" Uhlar" <uh...@fantomas.sk>.
-> Tnx to all of u..seems like now its working fine....after
-> MaxRequestPerChild 100

Well, this is not solution but workaround. If you are using scripts, try
debugging them, and consider upgrading apache. 

-> > -> im struggling now for a month to get apache not to swaping on my
-> > -> NetBSD box.Couple days ago i upgraded to 1.3.24 ...changed el-chip
-> > realtek
-> > -> chips to Intel EtherExpress...:) im tryed so many different config
-> > options
-> > -> but no luck:)in this mashine running only 2 sites with mysql
-> > database...and
-> > -> thats all.Box is PII 266 ,98RAM :)It stays about 3 days...and eating
-> > memory
-> > -> and then starts to swaping...and u know..what happens at the end :)
-> > 
-> > It seems you have a memory leak in your system - apache or its scripts. Try
-> > to upgrade to the newest version of apache. You can also try limit
-> > MaxRequestsPerChild (0 is no limit - try 100 for example)
-> > 
-> > Maybe you have leaking libraries - try upgrading to newest NetBSD. 
-> > 
-> > You can also try some malloc-debugging libraries. Or some programs that
-> > analyze what is using virtual memory...

-- 
 Matus "fantomas" Uhlar, uhlar@fantomas.sk ; http://www.fantomas.sk/
 Warning: I don't wish to receive spam to this address.
 Varovanie: Nezelam si na tuto adresu dostavat akukolvek reklamnu postu.
 "Where do you want to go to die?" [Microsoft]

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: apache starts swaping

Posted by ap...@ns.purk.ee.
Hi

Tnx to all of u..seems like now its working fine....after MaxRequestPerChild 100

Greetings

Tsiteerimine "Matus \"fantomas\" Uhlar" <uh...@fantomas.sk>:

> -> First off 98 MB RAM ain't gonna cut it. RAM is cheap so I'd
> -> suggest upgrading at least to 256MB & more like 512 MB+.
> -> 
> -> Your showing 11 httpd processes running in excess of 300 MB
> -> with some processes over 40 MB and the smallest is 24 MB!
> 
> you should not count sizes of all processess together - many memory pages
> are shared between processes.
> 
> -> ----- Original Message ----- 
> -> From: <ap...@ns.purk.ee>
> -> To: <us...@httpd.apache.org>
> -> Sent: Sunday, May 12, 2002 2:34 AM
> -> Subject: apache starts swaping
> 
> -> im struggling now for a month to get apache not to swaping on my
> -> NetBSD box.Couple days ago i upgraded to 1.3.24 ...changed el-chip
> realtek
> -> chips to Intel EtherExpress...:) im tryed so many different config
> options
> -> but no luck:)in this mashine running only 2 sites with mysql
> database...and
> -> thats all.Box is PII 266 ,98RAM :)It stays about 3 days...and eating
> memory
> -> and then starts to swaping...and u know..what happens at the end :)
> 
> It seems you have a memory leak in your system - apache or its scripts. Try
> to upgrade to the newest version of apache. You can also try limit
> MaxRequestsPerChild (0 is no limit - try 100 for example)
> 
> Maybe you have leaking libraries - try upgrading to newest NetBSD. 
> 
> You can also try some malloc-debugging libraries. Or some programs that
> analyze what is using virtual memory...
> -- 
>  Matus "fantomas" Uhlar, uhlar@fantomas.sk ; http://www.fantomas.sk/
>  Warning: I don't wish to receive spam to this address.
>  Varovanie: Nezelam si na tuto adresu dostavat akukolvek reklamnu postu.
>  Microsoft dick is soft to do no harm
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 




---------------------------------------------
Powered By "NetBSD" httpd://purk.ee/horde/imp

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: apache starts swaping

Posted by "Matus \"fantomas\" Uhlar" <uh...@fantomas.sk>.
-> First off 98 MB RAM ain't gonna cut it. RAM is cheap so I'd
-> suggest upgrading at least to 256MB & more like 512 MB+.
-> 
-> Your showing 11 httpd processes running in excess of 300 MB
-> with some processes over 40 MB and the smallest is 24 MB!

you should not count sizes of all processess together - many memory pages
are shared between processes.

-> ----- Original Message ----- 
-> From: <ap...@ns.purk.ee>
-> To: <us...@httpd.apache.org>
-> Sent: Sunday, May 12, 2002 2:34 AM
-> Subject: apache starts swaping

-> im struggling now for a month to get apache not to swaping on my
-> NetBSD box.Couple days ago i upgraded to 1.3.24 ...changed el-chip realtek
-> chips to Intel EtherExpress...:) im tryed so many different config options
-> but no luck:)in this mashine running only 2 sites with mysql database...and
-> thats all.Box is PII 266 ,98RAM :)It stays about 3 days...and eating memory
-> and then starts to swaping...and u know..what happens at the end :)

It seems you have a memory leak in your system - apache or its scripts. Try
to upgrade to the newest version of apache. You can also try limit
MaxRequestsPerChild (0 is no limit - try 100 for example)

Maybe you have leaking libraries - try upgrading to newest NetBSD. 

You can also try some malloc-debugging libraries. Or some programs that
analyze what is using virtual memory...
-- 
 Matus "fantomas" Uhlar, uhlar@fantomas.sk ; http://www.fantomas.sk/
 Warning: I don't wish to receive spam to this address.
 Varovanie: Nezelam si na tuto adresu dostavat akukolvek reklamnu postu.
 Microsoft dick is soft to do no harm

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: apache starts swaping

Posted by RuneImp <ru...@imptech.net>.
First off 98 MB RAM ain't gonna cut it. RAM is cheap so I'd
suggest upgrading at least to 256MB & more like 512 MB+.

Your showing 11 httpd processes running in excess of 300 MB
with some processes over 40 MB and the smallest is 24 MB!
That is completely insane. What do you have configured to
run with Apache? I'm running the defaults plus mod_perl,
mod_php, mod_throttle & a few others and non of my httpd
processes are ever more than 12 MB and over 9 MB is rare.


-=- RuneImp
ImpTech - Web Design, Hosting & Computer Tech
http://imptech.net
rune@imptech.net


----- Original Message ----- 
From: <ap...@ns.purk.ee>
To: <us...@httpd.apache.org>
Sent: Sunday, May 12, 2002 2:34 AM
Subject: apache starts swaping



Hi

im struggling now for a month to get apache not to swaping on my
NetBSD box.Couple days ago i upgraded to 1.3.24 ...changed el-chip realtek
chips to Intel EtherExpress...:) im tryed so many different config options
but no luck:)in this mashine running only 2 sites with mysql database...and
thats all.Box is PII 266 ,98RAM :)It stays about 3 days...and eating memory
and then starts to swaping...and u know..what happens at the end :)

Any help is welcome!

  PID USERNAME PRI NICE   SIZE   RES STATE     TIME   WCPU    CPU COMMAND
 6432 root       2    0   344K 1172K sleep     0:06  0.55%  0.54% sshd
  255 nobody    18    0    33M    4K sleep     1:40  0.00%  0.00% httpd
  265 nobody     2    0    40M  104K sleep     1:18  0.00%  0.00% httpd
  264 nobody    18    0    41M    4K sleep     1:03  0.00%  0.00% httpd
  263 nobody    18    0    40M    4K sleep     0:57  0.00%  0.00% httpd
  258 nobody    18    0    28M    4K sleep     0:49  0.00%  0.00% httpd
  245 root       2    0    12M 1364K sleep     0:48  0.00%  0.00% mysqld
  132 named      2    0  2716K 2332K sleep     0:44  0.00%  0.00% named
  262 nobody    18    0    24M    4K sleep     0:42  0.00%  0.00% httpd
  259 nobody    18    0    25M 3504K sleep     0:39  0.00%  0.00% httpd
  257 nobody    18    0    25M    4K sleep     0:38  0.00%  0.00% httpd
  256 nobody    18    0    24M    4K sleep     0:38  0.00%  0.00% httpd
  254 nobody    18    0    25M    4K sleep     0:37  0.00%  0.00% httpd
  246 root       2    0  1492K  684K sleep     0:07  0.00%  0.00% httpd
  211 root       2    0   644K  548K sleep     0:04  0.00%  0.00% nmbd



-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: apache starts swaping

Posted by Jason <jt...@cartmanager.net>.
What is your "MaxRequestsPerChild" set to in httpd.conf?  I set mine to 1000

Go here for details
http://httpd.apache.org/docs-2.0/mod/mpm_common.html#maxrequestsperchild


----- Original Message ----- 
From: <ap...@ns.purk.ee>
To: <us...@httpd.apache.org>
Sent: Sunday, May 12, 2002 3:34 AM
Subject: apache starts swaping


> 
> Hi
> 
> im struggling now for a month to get apache not to swaping on my
> NetBSD box.Couple days ago i upgraded to 1.3.24 ...changed el-chip realtek
> chips to Intel EtherExpress...:) im tryed so many different config options
> but no luck:)in this mashine running only 2 sites with mysql database...and
> thats all.Box is PII 266 ,98RAM :)It stays about 3 days...and eating memory
> and then starts to swaping...and u know..what happens at the end :)
> 
> Any help is welcome!
> 
>   PID USERNAME PRI NICE   SIZE   RES STATE     TIME   WCPU    CPU COMMAND
>  6432 root       2    0   344K 1172K sleep     0:06  0.55%  0.54% sshd
>   255 nobody    18    0    33M    4K sleep     1:40  0.00%  0.00% httpd
>   265 nobody     2    0    40M  104K sleep     1:18  0.00%  0.00% httpd
>   264 nobody    18    0    41M    4K sleep     1:03  0.00%  0.00% httpd
>   263 nobody    18    0    40M    4K sleep     0:57  0.00%  0.00% httpd
>   258 nobody    18    0    28M    4K sleep     0:49  0.00%  0.00% httpd
>   245 root       2    0    12M 1364K sleep     0:48  0.00%  0.00% mysqld
>   132 named      2    0  2716K 2332K sleep     0:44  0.00%  0.00% named
>   262 nobody    18    0    24M    4K sleep     0:42  0.00%  0.00% httpd
>   259 nobody    18    0    25M 3504K sleep     0:39  0.00%  0.00% httpd
>   257 nobody    18    0    25M    4K sleep     0:38  0.00%  0.00% httpd
>   256 nobody    18    0    24M    4K sleep     0:38  0.00%  0.00% httpd
>   254 nobody    18    0    25M    4K sleep     0:37  0.00%  0.00% httpd
>   246 root       2    0  1492K  684K sleep     0:07  0.00%  0.00% httpd
>   211 root       2    0   644K  548K sleep     0:04  0.00%  0.00% nmbd
> 
> 
> 
> -------------------------------------------------
> This mail sent through IMP: http://horde.org/imp/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org