Re: [mp2] Apache2::SizeLimit should be using $s->rss, not $s->size for Linux::Smaps

2010-02-03 Thread Max Kanat-Alexander
On 02/03/2010 04:57 AM, Torsten Förtsch wrote: > Well, I tend to disagree. (Fred, Adam please read on.) Okay. Have you looked at the actual output of test.cgi? Here's an example of these values just on my local machine, for my bash interpreter: [mka...@es-compy ~]$ cat /proc/self

Re: global variable

2010-02-03 Thread David Nicol
DirDB provides a very simple persistence, sharable data structure, using the file system.

Re: global variable

2010-02-03 Thread craig
Just thought to add: One of the most interesting uses of IPC::MMA is to create a shared memory in a PerlPostConfigHandler, and then use it to tie scalars or arrays or hashes in other modules into the shared memory. In write-seldom, read-mostly applications like the cache hash in Image::Size, thi

Re: global variable

2010-02-03 Thread Boysenberry Payne
Looks like a great module. It says early on in the docs that it doesn't use references; does that mean we need to dereference in order to store that values? Thanks, Boysenberry Payne On Feb 3, 2010, at 10:17 AM, macke...@animalhead.com wrote: > I rewrote IPC::MMA from an earlier CPAN module so

Re: global variable

2010-02-03 Thread mackenna
I rewrote IPC::MMA from an earlier CPAN module so that I could use shared memory among Apache children. You can read about it at http://search.cpan.org/~mackenna/IPC-MMA-0.6/MMA.pod On Feb 2, 2010, at 9:45 PM, m...@normalperson.e4ward.com wrote: Hello, Is there a method to setup a global vari

Re: Apache 1.3 end of life

2010-02-03 Thread Michael Peters
Well, that was embarrassing :) Please ignore. -- Michael Peters Plus Three, LP

Re: Apache 1.3 end of life

2010-02-03 Thread Michael Peters
This is the end for Apache 1.X, so we'll need to find some time to upgrade to the Apache 2.X series for our Arcos backend server (the proxy already runs Apache 2). This means upgrading mod_perl and might involve some code changes (although hopefully not too much). Don't need to do this super s

Re: Best way to pass arguments to an Apache2::SubProcess?

2010-02-03 Thread Tosh Cooey
Probably a stupid question but can't hurt to ask. In the docs they consistently use @argv = qw(foo bar); Is there a reason for this, can the args only be strings as semi-implied by somebody mentioning they used JSON in another thread? Or can I send $argv[0] = LARGE HASH ? Thanks! Tosh Ih

Apache 1.3 end of life

2010-02-03 Thread Adam Prime
FYI The Apache Software Foundation and the Apache HTTP Server Project are pleased to announce the release of version 1.3.42 of the Apache HTTP Server ("Apache"). This release is intended as the final release of version 1.3 of the Apache HTTP Server, which has reached end of life status. Ther

Re: global variable

2010-02-03 Thread Perrin Harkins
On Wed, Feb 3, 2010 at 2:20 AM, André Warnier wrote: > m...@normalperson.e4ward.com wrote: >> >> Hello, >> >> Is there a method to setup a global variable for all modperl child >> processes? >> Also this variable will be updated sometime, when it get updated, all >> processes will know it. >> > As

Re: [mp2] Apache2::SizeLimit should be using $s->rss, not $s->size for Linux::Smaps

2010-02-03 Thread Torsten Förtsch
On Tuesday 02 February 2010 22:58:13 Max Kanat-Alexander wrote: > All of my processes kept exiting with a report that they had a 300M > unshared size, which was clearly untrue, even from looking at top. After > some investigation, I discovered that Apache2::SizeLimit was calling > $s->size on the L

Re: global variable

2010-02-03 Thread Torsten Förtsch
On Wednesday 03 February 2010 06:45:06 m...@normalperson.e4ward.com wrote: > Is there a method to setup a global variable for all modperl child > processes? Also this variable will be updated sometime, when it get > updated, all processes will know it. > File::Map mmap()s a file and makes it vis

Re: global variable

2010-02-03 Thread Fayland Lam
why not use memcached or FastMmap? Thanks On 2010-2-3 16:19, m...@normalperson.e4ward.com wrote: On Wed, Feb 3, 2010 at 4:18 PM, wrote: On Wed, Feb 3, 2010 at 3:20 PM, André Warnier wrote: But if you give some more details about the platform, the Apache, and what you are trying t

Re: global variable

2010-02-03 Thread moli
On Wed, Feb 3, 2010 at 4:18 PM, wrote: > On Wed, Feb 3, 2010 at 3:20 PM, André Warnier wrote: > >> But if you give some more details about the platform, the Apache, and what >> you are trying to do, someone may be able to suggest an alternative. >> >> > > Something linke java servlet's global va

Re: global variable

2010-02-03 Thread moli
On Wed, Feb 3, 2010 at 3:20 PM, André Warnier wrote: > But if you give some more details about the platform, the Apache, and what > you are trying to do, someone may be able to suggest an alternative. > > Something linke java servlet's global variable. Maybe set it via environment variable? Tha