This revelation of how Perl does not free up memory it allocates is
worrying, especially as I do process large documents regularly.
If I read you right, you are saying that $r-child_terminate will force
the current thread to terminate, causing Apache to create a new thread.
Is that
But having said that, I find Apache2::Reload very handy for easy and quick
development.
Me too!
Although I find that occasionally I have to restart apache on the
development box before it'll work correctly. Hence I wouldn't run it on a
production server.
Carl
In (eg) the worker MPM, each process contains its own perl interpreter,
so if each process handles one image once in its lifetime, there is a
lot of memory that has been grabbed by perl which is not available to
create more perl processes.
... is what makes sense to me but may be utterly
Hello Carl,
Nope that's right, so you load up one image. The perl process
allocates itself 100MB of memory for it from the OS. Then doesn't
release it back to the OS once it's finished with.
The perl process will re-use this memory, so if you process another
image you don't grab another
You can try memory management yourself and see that the memory allocated
is not wiped until the script is finished.
8
#!/usr/bin/perl
bla();
print Done;
sub bla {
my $var = ;
for( 1 .. 10_000_000 ) {
$var .= xxx;
}
my $bla = STDIN;
Well this example does not demonstrate the problem it demonstrates the
solution to let perl free memory allocated once by setting the variable
to undef ;-)
---8---
#!/usr/bin/perl
bla();
print Done;
my $bla = STDIN;
sub bla {
my $var = ;
for( 1 .. 10_000_000 ) {
On Tue, 28 Mar 2006 02:21:29 -0500
James [EMAIL PROTECTED] wrote:
How does one set-up
the Apache config? Is the PerlResponseHandler Blah::Main put under
the Directory directive for the document root? What would the
document root be?
Well there are no documents so Directorys and
Hi,
I'm running mod_perl 2 on the following machine
FreeBSD gollum.interchange.ca 5.5-PRERELEASE FreeBSD 5.5-PRERELEASE
#3: Mon Mar 27 14:08:42 EST 2006
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GOLLUM i38
This morning I rebooted it so I could enable KTRACE in the kernel. At
that time my
Greetings,
Installation instructions for building mod-perl dynamically worked great
compiled, installed, and works great mod-perl2.0.2 perl5.8.8
Thought I'd try to see what performance difference I get using static
build
mod-perl.
Used the documented install procedure:
To enable statically
I've been reading the docs here:
http://perl.apache.org/docs/2.0/api/Apache2/
ServerUtil.html#C_restart_count_
http://perl.apache.org/docs/2.0/user/handlers/
server.html#Server_Life_Cycle
and i'm a bit confused
in my startup.pl i have this:
BEGIN
{
my
Thank you Frank
I configured with this:
perl Makefile.PL PREFIX=/users/webuser/static_mod_perl MP_USE_STATIC=1
MP_AP_PREFIX=/users/webuser/src/httpd-2.0.55
MP_AP_CONFIGURE=--with-mpm=prefork
Compiled OK BUT
make install
still gave me:
mkdir /usr/local/apache2: Permission denied at
On Mar 28, 2006, at 5:06 PM, Jonathan Vanasco wrote:
i only ever see restart count as 1. is it possible that apache
isn't restarting? ( i tired the restart count out of the begin
block. no difference )
I'm going follow up my question with another one, as i've just gotten
more confused
On Tue, 28 Mar 2006 15:11:49 -0800
Kent, Mr. John \(Contractor\) [EMAIL PROTECTED] wrote:
Thank you Frank
I configured with this:
perl Makefile.PL PREFIX=/users/webuser/static_mod_perl
MP_USE_STATIC=1 MP_AP_PREFIX=/users/webuser/src/httpd-2.0.55
MP_AP_CONFIGURE=--with-mpm=prefork
Hi.
I have a question that is not specifically modperl related, but I'm
hoping someone on thsi list can help.
I am using LWP to download a series of html pages from a site.
The pages also contain images.
I'd like to download any related images used in the pages.
Is there a perl module that
On Mar 28, 2006, at 8:26 PM, Luke Vanderfluit wrote:
Hi.
I have a question that is not specifically modperl related, but I'm
hoping someone on thsi list can help.
I am using LWP to download a series of html pages from a site.
The pages also contain images.
I'd like to download any related
And even worse:
-8-
#!/usr/bin/perl
use Benchmark;
$t0 = new Benchmark;
bla();
$t1 = new Benchmark;
# Memory has grown on my machine to 110 MB
#sleep 20;
$t2 = new Benchmark;
bla();
$t3 = new Benchmark;
# Memory has resides on my machine on 110 MB
print First
16 matches
Mail list logo