Re: DSO mod_perl HUP memory leak

2001-06-15 Thread Vivek Khera

> "DM" == Doug MacEachern <[EMAIL PROTECTED]> writes:

DM> 1.21_01 had two dso fixes, one to close all .so's opened by DynaLoader and
DM> one to call perl_shutdown(), both of which were large leaks.  with
DM> 1.25_01-dev and Perl 5.6.1 i see a 4k growth on the first kill -USR1 and
DM> no change after that.  what is your perl -V and mod_perl version?

On a FreeBSD 4.3-STABLE box, I get about 9M per HUP.  This server is
running every page through Template Toolkit.  Apache is built from the
FreeBSD ports collection with mod_ssl, and mod_perl is built via APXS
from the 1.25_01-dev on Feb 8, 2001.

I guess it's time to pull out my debuggerizer hat. ;-)


[yertle]% ps xu
USERPID %CPU %MEM   VSZ  RSS  TT  STAT STARTED  TIME COMMAND
khera 48860  0.0  0.4  1452 1016  p1  Ss   11:22AM   0:00.17 -tcsh (tcsh)
khera 20589  0.0  8.2 23404 21308 ??  Ss2:39PM   0:01.12 httpd -f /home/khe
khera 20733  0.0  8.2 23416 21316 ??  I 2:39PM   0:00.01 httpd -f /home/khe
khera 21190  0.0  8.2 23416 21316 ??  I 2:39PM   0:00.01 httpd -f /home/khe
khera 22022  0.0  8.2 23416 21316 ??  I 2:39PM   0:00.01 httpd -f /home/khe
khera 18230  0.0  0.1   392  232  p1  R+3:15PM   0:00.00 ps xu
[yertle]% kill -USR1 `cat logs/httpd.pid `
[yertle]% ps xu
USERPID %CPU %MEM   VSZ  RSS  TT  STAT STARTED  TIME COMMAND
khera 20589  5.2 11.7 32524 30392 ??  Ss2:39PM   0:02.21 httpd -f /home/khe
khera 48860  0.0  0.4  1452 1016  p1  Ss   11:22AM   0:00.18 -tcsh (tcsh)
khera 19790  0.0 11.7 32536 30400 ??  S 3:15PM   0:00.01 httpd -f /home/khe
khera 19955  0.0 11.7 32536 30400 ??  S 3:15PM   0:00.01 httpd -f /home/khe
khera 20280  0.0 11.7 32536 30400 ??  S 3:15PM   0:00.01 httpd -f /home/khe
khera 21037  0.0  0.1   392  232  p1  R+3:15PM   0:00.00 ps xu
[yertle]% kill -USR1 `cat logs/httpd.pid `
[yertle]% ps xu
USERPID %CPU %MEM   VSZ  RSS  TT  STAT STARTED  TIME COMMAND
khera 20589  7.6 15.2 41644 39480 ??  Ss2:39PM   0:03.31 httpd -f /home/khe
khera 48860  0.0  0.4  1452 1016  p1  Ss   11:22AM   0:00.18 -tcsh (tcsh)
khera 22075  0.0 15.2 41656 39488 ??  S 3:15PM   0:00.01 httpd -f /home/khe
khera 22621  0.0 15.2 41656 39488 ??  S 3:15PM   0:00.01 httpd -f /home/khe
khera 22851  0.0 15.2 41656 39488 ??  S 3:15PM   0:00.01 httpd -f /home/khe
khera 24543  0.0  0.1   392  232  p1  R+3:15PM   0:00.00 ps xu


-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D.Khera Communications, Inc.
Internet: [EMAIL PROTECTED]   Rockville, MD   +1-240-453-8497
AIM: vivekkhera Y!: vivek_khera   http://www.khera.org/~vivek/



Re: DSO mod_perl HUP memory leak

2001-06-14 Thread Doug MacEachern

On Thu, 14 Jun 2001, Paul G. Weiss wrote:

> I know that this is an ongoing problem, but I seem to remember that
> someone somewhere had a patch that reduced the size of the memory leak on
> restarts to a manageable size.  Has this patch been applied to the CVS
> version?  If not, can some kind soul tell me where to find it?  I've
> looked around the net in vain.

1.21_01 had two dso fixes, one to close all .so's opened by DynaLoader and
one to call perl_shutdown(), both of which were large leaks.  with
1.25_01-dev and Perl 5.6.1 i see a 4k growth on the first kill -USR1 and
no change after that.  what is your perl -V and mod_perl version?




DSO mod_perl HUP memory leak

2001-06-14 Thread Paul G. Weiss

I know that this is an ongoing problem, but I seem to remember that
someone somewhere had a patch that reduced the size of the memory leak on
restarts to a manageable size.  Has this patch been applied to the CVS
version?  If not, can some kind soul tell me where to find it?  I've
looked around the net in vain.

-Paul Weiss
-Arity Corp