Mailing List Archive

Is this memory leak ?
Hi.

I'm developing web application with Embperl 1.3b3 under mod_perl 1.24
(staticaly linked).

I use Apache::Session and Apache::DBI module with Embperl configured
in httpd.conf with PerlModule parameter.

Now, this is the problem.
First, I started httpd, its memory size is about 3.7M per process.
Then, I access one Embperl page it increases to 6.3M ~ 7.xM for one
process. and greeding memory goes on.

Do you think this is general?
I know Embperl cleanup variables used in script. but I suspicious
if there exist exception hall in cleaning memory usage..

Can you advice me how can I hold this memory leaking. or any other
idea can help me ?
RE: Is this memory leak ? [ In reply to ]
Don't fret! When I first started using embperl, I noticed that the httpd
processes grew larger as well. However, you must remember that embperl
caches each page. I use embperl 1.2.1 with mod_perl 1.24, MySQL,
Apache::Session and Apache::DBI. I almost have the same configuration as
you, except we differ in the embperl version. Our httpd's have leveled out
to about 9.5 megs, but I believe our entire site is now cached into memory
and the response time from the server is screaming fast.

If you are worried about stability and memory leakage, the last stable
embperl release from what I currently know is 1.2.1. I've run a site now
with a large MySQL database and nice page hits and the combination of
embperl with MySQL and Apache::DBI has proven to be very, very stable and
memory efficient.

-joe
______________________________________________________
joe lauer rootlevel
product developer 743 beaubien, suite 300
p.313.961.4407 x302 detroit, mi 48226
f.313.961.4568 www.rootlevel.com

-----Original Message-----
From: Sangmook Yi [mailto:wataru@calypso.endien.co.kr]
Sent: Monday, July 17, 2000 1:55 PM
To: embperl@perl.apache.org
Subject: Is this memory leak ?



Hi.

I'm developing web application with Embperl 1.3b3 under mod_perl 1.24
(staticaly linked).

I use Apache::Session and Apache::DBI module with Embperl configured
in httpd.conf with PerlModule parameter.

Now, this is the problem.
First, I started httpd, its memory size is about 3.7M per process.
Then, I access one Embperl page it increases to 6.3M ~ 7.xM for one
process. and greeding memory goes on.

Do you think this is general?
I know Embperl cleanup variables used in script. but I suspicious
if there exist exception hall in cleaning memory usage..

Can you advice me how can I hold this memory leaking. or any other
idea can help me ?


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
RE: Is this memory leak ? [ In reply to ]
Thnks for your advice.

but, Memory usage of httpd sometimes grows up to 12~15M per child. and
goes on.
If Embperl caches script for efficieny. can I control its cache size?
I've downgraded Embperl version to 1.2.1. but same result.

On Mon, 17 Jul 2000, Joe Lauer wrote:

>
> Don't fret! When I first started using embperl, I noticed that the httpd
> processes grew larger as well. However, you must remember that embperl
> caches each page. I use embperl 1.2.1 with mod_perl 1.24, MySQL,
> Apache::Session and Apache::DBI. I almost have the same configuration as
> you, except we differ in the embperl version. Our httpd's have leveled out
> to about 9.5 megs, but I believe our entire site is now cached into memory
> and the response time from the server is screaming fast.
>
> If you are worried about stability and memory leakage, the last stable
> embperl release from what I currently know is 1.2.1. I've run a site now
> with a large MySQL database and nice page hits and the combination of
> embperl with MySQL and Apache::DBI has proven to be very, very stable and
> memory efficient.
>
> -joe
> ______________________________________________________
> joe lauer rootlevel
> product developer 743 beaubien, suite 300
> p.313.961.4407 x302 detroit, mi 48226
> f.313.961.4568 www.rootlevel.com
>
> -----Original Message-----
> From: Sangmook Yi [mailto:wataru@calypso.endien.co.kr]
> Sent: Monday, July 17, 2000 1:55 PM
> To: embperl@perl.apache.org
> Subject: Is this memory leak ?
>
>
>
> Hi.
>
> I'm developing web application with Embperl 1.3b3 under mod_perl 1.24
> (staticaly linked).
>
> I use Apache::Session and Apache::DBI module with Embperl configured
> in httpd.conf with PerlModule parameter.
>
> Now, this is the problem.
> First, I started httpd, its memory size is about 3.7M per process.
> Then, I access one Embperl page it increases to 6.3M ~ 7.xM for one
> process. and greeding memory goes on.
>
> Do you think this is general?
> I know Embperl cleanup variables used in script. but I suspicious
> if there exist exception hall in cleaning memory usage..
>
> Can you advice me how can I hold this memory leaking. or any other
> idea can help me ?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
>
>
Re: Is this memory leak ? [ In reply to ]
> Memory usage of httpd sometimes grows up to 12~15M per child. and
>goes on.
>If Embperl caches script for efficieny. can I control its cache size?
>I've downgraded Embperl version to 1.2.1. but same result.


Every Embperl release is tested for memory leaks before I release it. Also
1.3b3 and 1.3b4 surely has _no_ memory leaks.

Embperl caches the precompiled Perl code of your scripts. If you have many
scripts 12-15 MB isn't unusual. The size should settle once you have
requested every script once. Currently there is no possibility to limit the
httpd size i.e. no possibility to throw precompiled perl code out of memory,
but you may read the mod_perl_tuning.pod that comes with mod_perl (or the
mod_perl guide on the website) for tuning the size of your httpd.

If the size of your httpd increases also you don't request any new scripts,
then there is either a memory leak in one of your scripts itself or in one
of the modules you are using.

Gerald



On Mon, 17 Jul 2000, Joe Lauer wrote:

>
> Don't fret! When I first started using embperl, I noticed that the httpd
> processes grew larger as well. However, you must remember that embperl
> caches each page. I use embperl 1.2.1 with mod_perl 1.24, MySQL,
> Apache::Session and Apache::DBI. I almost have the same configuration as
> you, except we differ in the embperl version. Our httpd's have leveled
out
> to about 9.5 megs, but I believe our entire site is now cached into memory
> and the response time from the server is screaming fast.
>
> If you are worried about stability and memory leakage, the last stable
> embperl release from what I currently know is 1.2.1. I've run a site now
> with a large MySQL database and nice page hits and the combination of
> embperl with MySQL and Apache::DBI has proven to be very, very stable and
> memory efficient.
>
> -joe
> ______________________________________________________
> joe lauer rootlevel
> product developer 743 beaubien, suite 300
> p.313.961.4407 x302 detroit, mi 48226
> f.313.961.4568 www.rootlevel.com
>
> -----Original Message-----
> From: Sangmook Yi [mailto:wataru@calypso.endien.co.kr]
> Sent: Monday, July 17, 2000 1:55 PM
> To: embperl@perl.apache.org
> Subject: Is this memory leak ?
>
>
>
> Hi.
>
> I'm developing web application with Embperl 1.3b3 under mod_perl 1.24
> (staticaly linked).
>
> I use Apache::Session and Apache::DBI module with Embperl configured
> in httpd.conf with PerlModule parameter.
>
> Now, this is the problem.
> First, I started httpd, its memory size is about 3.7M per process.
> Then, I access one Embperl page it increases to 6.3M ~ 7.xM for one
> process. and greeding memory goes on.
>
> Do you think this is general?
> I know Embperl cleanup variables used in script. but I suspicious
> if there exist exception hall in cleaning memory usage..
>
> Can you advice me how can I hold this memory leaking. or any other
> idea can help me ?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org