Re: Is this startup.pl ok?

2001-04-26 Thread Dave Hodgkinson

Philip Mak <[EMAIL PROTECTED]> writes:

> I thought it was shared, because under top, "SHARE" was almost as big as
> "RSS".

Before Stas starts laying into me for misleading inaccuracy, take a
look at the guide: http://perl.apache.org/guide/

There's LOTS of good stuff in there on shareabiliy. 

If your processes start at 10M, then grow to 80M, that memory is
probably _not_ shared. Unless you're mapping in some shared memory or
something.

-- 
Dave Hodgkinson, http://www.hodgkinson.org
Editor-in-chief, The Highway Star   http://www.deep-purple.com
  Interim CTO, web server farms, technical strategy
   



Re: Is this startup.pl ok?

2001-04-26 Thread Philip Mak

On 26 Apr 2001, Dave Hodgkinson wrote:

> > As time goes on, these processes' memory usage grows and grows. Right now
> > they're 20 MB (uptime 2 days). When I rebooted the machine two days ago,
> > they were using 80 MB each (shared memory, though). MaxRequestsPerChild is
> > set to 200.
>
> What operating system?

Apache/1.3.12 (Unix)
mod_perl/1.24
perl 5.005_03
Linux 2.2.14-5.0; Red Hat Linux release 6.2 (Zoot)

> I'd be inclined to stuff a lot more of the generic modules you use
> (CGI, Template Toolkit, URI, Date modules) into startup.pl. The more
> the merrier.

Ok. I didn't think of that.

> If a process starts at 10M and grows to 80M that's 70M per process,
> _unshared_ for sure. Not good.

I thought it was shared, because under top, "SHARE" was almost as big as
"RSS".

-Philip Mak ([EMAIL PROTECTED])




Re: Is this startup.pl ok?

2001-04-26 Thread Dave Hodgkinson

Philip Mak <[EMAIL PROTECTED]> writes:

> My Apache with modperl is acting weird with respect to memory usage.
> 
> When it first starts up, each process uses 10 MB of memory.
> 
> As time goes on, these processes' memory usage grows and grows. Right now
> they're 20 MB (uptime 2 days). When I rebooted the machine two days ago,
> they were using 80 MB each (shared memory, though). MaxRequestsPerChild is
> set to 200.

What operating system?

I'd be inclined to stuff a lot more of the generic modules you use
(CGI, Template Toolkit, URI, Date modules) into startup.pl. The more
the merrier.

If a process starts at 10M and grows to 80M that's 70M per process,
_unshared_ for sure. Not good. 

-- 
Dave Hodgkinson, http://www.hodgkinson.org
Editor-in-chief, The Highway Star   http://www.deep-purple.com
  Interim CTO, web server farms, technical strategy
   



Is this startup.pl ok?

2001-04-25 Thread Philip Mak

My Apache with modperl is acting weird with respect to memory usage.

When it first starts up, each process uses 10 MB of memory.

As time goes on, these processes' memory usage grows and grows. Right now
they're 20 MB (uptime 2 days). When I rebooted the machine two days ago,
they were using 80 MB each (shared memory, though). MaxRequestsPerChild is
set to 200.

Here are my startup.pl files; I was wondering if they were correct? (The
startup.pl in /home/animel is inside a VirtualHost container.)

root@trapezoid [/etc/httpd/conf]# egrep "startup.pl" *.conf
httpd_modperl.conf:PerlRequire /usr/local/apache/conf/startup.pl
httpd_modperl.conf:PerlRequire /home/animel/www/include/startup.pl
root@trapezoid [/etc/httpd/conf]# cat /usr/local/apache/conf/startup.pl
#!/usr/bin/perl

use strict;

use DBI ();
use DBD::mysql ();

1;
root@trapezoid [/etc/httpd/conf]# cat /home/animel/www/include/startup.pl
#!/usr/bin/perl

# For security reasons, this file is owned by root.

use lib qw(/home/animel/www/include);

1;

-Philip Mak ([EMAIL PROTECTED])