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 "Fir
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
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 ca
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-mp
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
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
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 $rest
On Tue, 28 Mar 2006 12:25:36 -0800
"Kent, Mr. John \(Contractor\)" <[EMAIL PROTECTED]> wrote:
> So my question is how do I specify in the configuration phase that
> apache2 gets installed in a directory
> of my choosing?
You're looking for perl Makefile.PL PREFIX=/use/my/directory plus
your o
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 lin
Hi,
I have a file-uploading script from a server running perl scripts as plain old CGI, and I'm trying
to port it to an Apache 1.3 server using PerlRun. Everything works except CGI's upload hook. On the
vanilla CGI server, the upload hook routine is called repeatedly during the upload process,
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 mod_p
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 directive for the document root? What would the
> document root be?
Well there are no "documents" so s and DocumentRoot
don'
James wrote:
> [sorry for length, I've been wanting to ask this for a while :)]
>
> Hello,
> I'm a bit new to coding with mod_perl (and I _am_ new to this list),
> and I have a question. :) I have it set up now where my default page
> is index.pl, and I've got some other links (e.g. con
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 = ;
sub bla {
my $var = "";
for( 1 .. 10_000_000 ) {
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 = ;
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 100
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 meaningl
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
> 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
19 matches
Mail list logo