Re: How big are your httpd's?

2002-12-13 Thread Nate Campi
On Sat, Dec 14, 2002 at 04:50:25AM +0100, Axel Andersson wrote:
> Hi everyone,
> I would like to ask you how big your mod_perl enabled (v1) httpd's 
> grow. I'm using a homegrown publication system based on Template 
> Toolkit that delivers about 2000 Perl pages daily. After the first page 
> load, the daemons consume around 7 MB of RAM each, but after 24 hours 
> they've grown to something around 12 MB, with a record-holder of 16 MB.
> 
> To me this seems like quite a lot, but I would like to get some numbers 
> from other people as to what's normal.

I don't know what's normal for other people, but with a personal
Mason-driven site with only a few hundred visitors a day I get this:

  PID USER PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
 5661 www-data   9   0 15232  14M  9988 S 0.0  2.3   0:01 apache
 2517 www-data   9   0 14256  13M  9984 S 0.0  2.1   0:01 apache
 2518 www-data   9   0 14124  13M  9968 S 0.0  2.1   0:01 apache
 2519 www-data   9   0 14076  13M  9968 S 0.0  2.1   0:01 apache
16638 www-data   9   0 14024  13M  9964 S 0.0  2.1   0:01 apache
26290 www-data   9   0 13948  13M  9948 S 0.0  2.1   0:00 apache
26289 www-data  11   0 13852  13M  9960 S 0.5  2.0   0:01 apache
 2520 www-data   9   0 13816  13M  9816 S 0.0  2.0   0:01 apache
26288 www-data   9   0 13812  13M  9960 S 0.0  2.0   0:01 apache
18348 www-data   9   0 12692  12M  9904 S 0.0  1.9   0:01 apache
 2996 root   9   0 12156  11M 10420 S 0.0  1.8   0:57 apache

Linux 2.4.19 x86 SMP with 600 megs of RAM. I think your numbers are
probably fairly normal.
-- 
Nate Campi   http://www.campin.net 

"The basic notion underlying USENET is the flame." - Rospach, Chuq von




msg31747/pgp0.pgp
Description: PGP signature


Re: ANNOUNCE: the new perl.apache.org is alive now!

2002-07-12 Thread Nate Campi

I hate to be a party pooper, but I single handedly brute upgraded
www.wired.com from Vignette Storyserver 5.0 to V/6 this month - it's not
mod_perl. The new page is incorrect. I do the "ServerTokens Min" thing
to hide what modules we run.

If the authors of the page want to ask me about different mod_perl stuff
we do at Wired/Lycos feel free to contact me off list. We have some cool
stuff.
-- 
"Never trust a computer you can't throw out a window."  -Steve Wozniak  




choice of mod_perl technology for news site

2002-02-06 Thread Nate Campi

Lets pretend I work for Wired News, and I really really hate Vignette's
content management system. I mean *really* hate it. I'm the Ops guy
supporting it and I have nightmares about the next unexplained CMS
crash.

Ok, we all know mod_perl is the right choice to replace their system,
but what is the right way to go when you have a full news staff with
many stories going out six days a week, and about a million hits a day?

You need all the workflow tools for the news staff, versioning, stories
going live at defined times and dates, etc, etc. I don't have the exact
requirements, as I'm just trying to collect my thoughts right now, to
bring my ideas to the software guys in a couple days. I can get the
exact requirements if needed.

I like Mason's way of doing things, and it works for salon.com (similar
needs), but now that we have AxKit, is that the right way to go? Seems
better to force the separation of content and display, and using XML
allows the stories to be easily shared for display on affiliated sites.

Thoughts? I'm thinking of even donating my mediocre coding skills if
they take my advice on this - die Vignette!! I'll do my part to slay the
evil beast.

Oh, I mean if this wasn't all hypothetical - I wouldn't discuss internal
issues like this with the general public ;)
-- 
Nate

"Usenet isn't a right. It's a right, a left, and a swift uppercut to the
jaw."  -Computer Museum (Boston)  




Re: Both global hanlder and cgi scripts

2001-10-10 Thread Nate Campi

On Tue, Oct 09, 2001 at 11:38:10AM +0200, Mat wrote:
> Hi everybody,
> 
>actually i'm working on a website where I want to have the following 
> possibilities :
>- a global handler that will treat a request hitting 
> http://myhost.com/
>- the ability to have execution of separate cgi scripts like 
> http://myhost.com/script.cgi

I had some trouble with this, and found a workable solution, for the
"Navbar" handler from the eagle book:

  
  SetHandler  perl-script
  PerlHandler Apache::NavBar
  PerlSetVar NavConf /etc/apache/perl/navigation.conf

  

Substitute the  directive for the  and this should
work. This works against .html and .htm files That's all I had for 
content on that server so it works great for me.
-- 
Nate Campi  <[EMAIL PROTECTED]>
GnuPG key: 0xC17AEF79   http://www.campin.net