Re: 32 & 64 bit memory differences

2007-11-06 Thread Mark Maunder
I forgot to mention, lighttpd consumes about 12 megs of RAM with my config. It's very small because it uses non-blocking sockets to do everything with a single thread. On Nov 6, 2007 1:17 PM, Mark Maunder <[EMAIL PROTECTED]> wrote: > I can't overstate the efficiency gains f

Re: 32 & 64 bit memory differences

2007-11-06 Thread Mark Maunder
e-proxy or am I missing out on > something, would a reverse-proxy help us with our setup. We are unable to > cache content and hit live databases for every dynamic page we serve. > Images, js and css are all served from a slimmed down apache server so > these > aren't a problem. &g

Re: 32 & 64 bit memory differences

2007-11-04 Thread Mark Maunder
gt; mod_perl applications that have a version for Windows and one for Linux? > > I need to develop under Windows and use in production under Linux, and I > would like to use the same setup. > > Thanks. > > Octavian > > - Original Message - > *From:* Mark Maunder &

Re: 32 & 64 bit memory differences

2007-11-04 Thread Mark Maunder
res compiling your own kernel, in > an age where that's no longer very common. Even getting 4GB of RAM to > work in 32-bit Linux was fairly tricky until recently. > > There's a summary of information about memory limits in 32-bit Linux here: > http://www.spack.org/wiki/LinuxRamLimits > > - Perrin > -- Mark Maunder <[EMAIL PROTECTED]> http://markmaunder.com/ +1-206-6978723

Re: 32 & 64 bit memory differences

2007-11-03 Thread Mark Maunder
one 200Mb on the 64 bit servers. I'm > sure we are going wrong somewhere. > > > > > > Many Thanks. > > GS > > Internal Virus Database is out-of-date. > Checked by AVG Free Edition. > Version: 7.5.503 / Virus Database: 269.15.11 - Release Date: 25/10/2007 > 00:00 > -- Mark Maunder <[EMAIL PROTECTED]> http://markmaunder.com/ +1-206-6978723

Re: Mod_Perl and MaxRequestsPerChild

2007-10-17 Thread Mark Maunder
based on Perrin's suggestions yesterday. Thanks to you guys, for the first time in 10 days I didn't get any timeout warnings this morning during our peak hour from our site monitor - and our traffic increases daily. Thanks again!! Mark. On 10/17/07, Perrin Harkins <[EMAIL PROTECTED]&

Re: Mod_Perl and MaxRequestsPerChild

2007-10-17 Thread Mark Maunder
y it seems you're emulating the threaded model with lots of lightweight connection handlers and a few heavyweight processes that are quickly freed up after doing the heavy lifting for each connection. Mark. On 10/17/07, Perrin Harkins <[EMAIL PROTECTED]> wrote: > On 10/16/07, Mark M

Re: redirect

2007-10-16 Thread Mark Maunder
Hi, I may have missed some data earlier in this thread but, a few questions: It sounds like you're trying to use a mod_perl handler to read the location header from the client? Why are you doing this if your objective is to redirect the client to another page. Shouldn't you be sending the client

Re: Mod_Perl and MaxRequestsPerChild

2007-10-16 Thread Mark Maunder
#x27;s memory usage and of course it solves my original problem (so far anyway) of the number of processes doubling for an unknown reason. It also seems to be a little more CPU efficient. Thanks very much for all the help!! Mark. On 10/16/07, Perrin Harkins <[EMAIL PROTECTED]> wrote: > O

Re: Mod_Perl and MaxRequestsPerChild

2007-10-16 Thread Mark Maunder
Hi Perrin, Thanks so much for the quick reply. I've commented your original email below: On 10/16/07, Perrin Harkins <[EMAIL PROTECTED]> wrote: > On 10/16/07, Mark Maunder <[EMAIL PROTECTED]> wrote: > > My mod_perl app works with some fairly > > large data struct

Re: Mod_Perl and MaxRequestsPerChild

2007-10-16 Thread Mark Maunder
che? then memcached. Are they important? Then some > sort of shared memory, BDB, SQLite or MySQL might be more appropriate. > > -- > Michael Peters > Developer > Plus Three, LP > > -- Mark Maunder <[EMAIL PROTECTED]> http://markmaunder.com/ +1-206-6978723

Re: Mod_Perl and MaxRequestsPerChild

2007-10-16 Thread Mark Maunder
my config because my app is smaller than most apps I've written. BTW, most of my app is written as handlers and all modules are loaded in startup.pl. Regards, Mark. On 10/16/07, Mark Maunder <[EMAIL PROTECTED]> wrote: > Thanks guys. I assumed worker would save me memory bec

Re: Mod_Perl and MaxRequestsPerChild

2007-10-16 Thread Mark Maunder
I agree, if you're > concerned about memory, don't use threads. Prefork will save you > memory because of copy-on-write. > > - Perrin > -- Mark Maunder <[EMAIL PROTECTED]> http://markmaunder.com/ +1-206-6978723

Mod_Perl and MaxRequestsPerChild

2007-10-16 Thread Mark Maunder
Hi All, I have a high traffic mod_perl2 web server (40 requests/second and all are dynamic data - no images or static html) and I have a slow memory leak in mod_perl2. I haven't tracked the leak down yet, but to deal with it I have set MaxRequestsPerChild to 5000. I'm using the worker MPM with the

Re: [QUESTION] How to include content from another site (on the same server)?

2006-10-20 Thread Mark Maunder
up with a sense of humor, click here: <http://www.grist.org/signup/> -- Mark Maunder <[EMAIL PROTECTED]> +1-206-6978723

"Can't find apr include/ directory"

2006-10-20 Thread Mark Maunder
Hi all, This was going to be a post asking for help but I just solved it. If you're building mod_perl2 statically and get: "Can't find apr include/ directory" and it's driving you nuts because you're untarring a clean mod_perl, a clean httpd, and you're making no reference to any existing direc

Re: "Can't find apr include/ directory"

2006-10-20 Thread Mark Maunder
this helps someone else. Also... Is there a mod_perl wiki for brain dumps like these? On 10/19/06, Mark Maunder <[EMAIL PROTECTED]> wrote: Hi all, This was going to be a post asking for help but I just solved it. If you're building mod_perl2 statically and get: "Can't find

Re: [QUESTION] How to include content from another site (on the same server)?

2006-10-19 Thread Mark Maunder
Come to think of it, you'll want to combine mod_rewrite and mod_proxy - I think there's an example of how to do this on the mod_rewrite docs. On 10/19/06, Mark Maunder <[EMAIL PROTECTED]> wrote: Chris, I've done something like this with mod_proxy. You can map url&#x

Re: [OT] Forcing httpd's to not swap out of memory

2004-02-29 Thread Mark Maunder
Thanks. I think the idea of sending a useless signal is the best so far. I'm also going to upgrade my kernel and see if I can get more meaningful output from ps. btw, is anyone using the 2.6 kernel on live servers yet? On Sun, 2004-02-29 at 12:50, Render Web wrote: > Mark Maunder wrote:

Re: [OT] Forcing httpd's to not swap out of memory

2004-02-29 Thread Mark Maunder
On Sun, 2004-02-29 at 12:43, Ged Haywood wrote: > If I read you right, this only happens when your Apache processes are > inactive for some time. So why not set up a process which keeps them > active, like a kind of watchdog? It would be very simple using LWP or > something like that. Definite

Re: [OT] Forcing httpd's to not swap out of memory

2004-02-29 Thread Mark Maunder
can't find anything about mlock and apache. On Sun, 2004-02-29 at 11:33, Ged Haywood wrote: > Hi there, > > On Sun, 29 Feb 2004, Mark Maunder wrote: > > > Is there a way to force apache to stay in memory. > > Don't mount the swap space? > > 73, > Ged

[OT] Forcing httpd's to not swap out of memory

2004-02-29 Thread Mark Maunder
Is there a way to force apache to stay in memory. My linux box swaps children out (shown in brackets in ps) during long periods of low activity, and swapping them back in is causing latency for my users. Thanks, Mark. -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl

Re: reloading modules in a handler with eval

2004-02-27 Thread Mark Maunder
I forgot about that. I guess once all Apache kids exist, there's no way to overwrite that module in shared memory without restarting Apache? Silly question I guess. That's why they call it copy-on-write. mark. On Fri, 2004-02-27 at 13:15, Perrin Harkins wrote: > Mark Maunder wrote:

Re: reloading modules in a handler with eval

2004-02-27 Thread Mark Maunder
Thanks for this Charles. I've never heard of vmstat, and after playing with it for a few mins am amazed at my ignorance and its usefulness. On Fri, 2004-02-27 at 21:07, Charles C. Fu wrote: > In <[EMAIL PROTECTED]> on 27 Feb 2004, >Mark Maunder <[EMAIL PROTECTED]> wr

Re: reloading modules in a handler with eval

2004-02-27 Thread Mark Maunder
For what I'm doing the only performance hit is the stat() on every module, which means disk access. That's 20 stats per request because there are 20 modules. The 'touch' option means only one stat instead of 20. Much better. Moving slightly OT. Anyone know if the linux filesystem cache caches di

reloading modules in a handler with eval

2004-02-27 Thread Mark Maunder
Hi, In a perl handler, I'm doing a stat on a module file, and if the file has been modified, I'm reloading the module by slurping the file into a scalar and eval'ing it. The module has a few subs and global vars that have defaults set on initialization. I have about 20 modules I'm doing this with

Re: Apache::Status 'PADLIST summary' and memory usage

2004-02-11 Thread Mark Maunder
Thanks very much Stas, and the list for the archived info. On Thu, 2004-02-12 at 02:43, Stas Bekman wrote: > Mark Maunder wrote: > > I'm creating some fairly big scalars (6 megs) under mod_perl containing > > strings, and was doing some memory profiling using Apache::Status.

Apache::Status 'PADLIST summary' and memory usage

2004-02-11 Thread Mark Maunder
I'm creating some fairly big scalars (6 megs) under mod_perl containing strings, and was doing some memory profiling using Apache::Status. I noticed at the end of the memory usage for a particular sub, in a module, there is a 'PADLIST summary', and that there is some hefty memory usage by certain v