Re: experiencing Out of memory errors

2011-01-27 Thread Michiel Beijen
Hi John, On Wed, 2011-01-26 at 10:17 -0500, John Deighan wrote: > However, we're also not sure if either of these are needed to escape the > 2 GB memory limitation. E.g., can 64 bit Perl be used with a 32 bit > Apache and/or mod_perl? You should use the same architecture for Perl and Apache. > A

Re: experiencing Out of memory errors

2011-01-27 Thread Zeno Davatz
Hi Am 27.01.2011 um 12:57 schrieb Michiel Beijen : > Hi John, > > On Wed, 2011-01-26 at 10:17 -0500, John Deighan wrote: >> However, we're also not sure if either of these are needed to escape the >> 2 GB memory limitation. E.g., can 64 bit Perl be used with a 32 bit >> Apache and/or mod_perl?

Re: experiencing Out of memory errors

2011-01-27 Thread John Deighan
I'd forgotten about Strawberry Perl (came across it about a year ago, but never got around to trying it). One question, though: I'm thinking there's not much point to using a 64-bit version of mod_perl unless I'm using it with a 64-bit version of Apache. Where can I get a 64-bit version of Apache

[QUESTION] Some tests fail on Debian

2011-01-27 Thread Alexander Aparzev
Hi. I have a problem installing mod_perl. Some tests fail. Configuration: - mod_perl 2.0.4 - Linux version 2.6.26-1-amd64 (Debian 2.6.26-13lenny2) - Apache/2.2.9 (Debian) Failing tests: t/modperl/pnotes2...NOK 1/12# Failed test 1 in t/modperl/pnotes2.t at line 25 t/modper

POST method and PerlAuthenHandler

2011-01-27 Thread James B. Muir
Hello, I am writing a perl authentication module for Apache2 that must inspect some request parameters before authorizing the requestor and forwarding the request to a tomcat server via mod_jk. With the GET request method this is easy, I can inspect the parameters using $r->args and forward th

Re: POST method and PerlAuthenHandler

2011-01-27 Thread Joe Schaefer
Use apreq. > >From: James B. Muir >To: "modperl@perl.apache.org" >Sent: Thu, January 27, 2011 11:08:24 AM >Subject: POST method and PerlAuthenHandler > > >Hello, > >I am writing a perl authentication module for Apache2 that must inspect some >request parameters before authorizing the reque

Re: [QUESTION] Some tests fail on Debian

2011-01-27 Thread Fred Moyer
Can you try the unofficial release candidate here? http://people.apache.org/~phred/mod_perl-2.0.5-rc1.tar.gz On Thu, Jan 27, 2011 at 6:39 AM, Alexander Aparzev wrote: > Hi. > > I have a problem installing mod_perl. Some tests fail. > > Configuration: > > - mod_perl 2.0.4 > - Linux version 2.6.26

Re: [QUESTION] Some tests fail on Debian

2011-01-27 Thread Alexander Aparzev
On 27.01.2011 18:08, Fred Moyer wrote: Can you try the unofficial release candidate here? http://people.apache.org/~phred/mod_perl-2.0.5-rc1.tar.gz On Thu, Jan 27, 2011 at 6:39 AM, Alexander Aparzev wrote: Hi. I have a problem installing mod_perl. Some tests fail. Thank you for the hint,

Re: [QUESTION] Some tests fail on Debian

2011-01-27 Thread Fred Moyer
On Thu, Jan 27, 2011 at 11:25 AM, Alexander Aparzev wrote: > On 27.01.2011 18:08, Fred Moyer wrote: >>> I have a problem installing mod_perl. Some tests fail. > > Thank you for the hint, Fred. Gave it a try. Regrettably, the same result. > There is nothing unusual in t/logs/error_log either. Can

Re: Authentication and cookies

2011-01-27 Thread Joe Schaefer
OP, see https://svn.apache.org/repos/infra/websites/cms/webgui/lib/ASF/CMS/Cookie.pm for typical APR::Request::Cookie usage with FreezeThaw as serializer. Unless you want to use arrays this is one of the ways to deal with hashrefs as cookie values. In your calling code you'd do something like

Re: [QUESTION] Some tests fail on Debian

2011-01-27 Thread Alexander Aparzev
On 27.01.2011 20:19, Fred Moyer wrote: Can you run the failing tests with verbose mode and post the results here? ./t/TEST -verbose t/modperl/pnotes2.t Sure. Did it: [warning] setting ulimit to allow core files ulimit -c unlimited; /usr/bin/perl /home/justme/sources/mod_perl-2.0.5-rc1/t/TE

Re: [QUESTION] Some tests fail on Debian

2011-01-27 Thread Fred Moyer
On Thu, Jan 27, 2011 at 11:44 AM, Alexander Aparzev wrote: > On 27.01.2011 20:19, Fred Moyer wrote: >> >> Can you run the failing tests with verbose mode and post the results here? >> >>  ./t/TEST -verbose t/modperl/pnotes2.t > > Sure. Did it: > > [warning] setting ulimit to allow core files > uli

Re: experiencing Out of memory errors

2011-01-27 Thread Michiel Beijen
Hi John, On Thu, January 27, 2011 15:10, John Deighan wrote: > One question, though: I'm thinking there's not much point to using a > 64-bit version of mod_perl > unless I'm using it with a 64-bit version of Apache. Where can I get a > 64-bit version of Apache that > will with with the mod_perl be

Re: [QUESTION] Some tests fail on Debian

2011-01-27 Thread Alexander Aparzev
On 27.01.2011 20:55, Fred Moyer wrote: On Thu, Jan 27, 2011 at 11:44 AM, Alexander Aparzev wrote: On 27.01.2011 20:19, Fred Moyer wrote: Can you run the failing tests with verbose mode and post the results here? ./t/TEST -verbose t/modperl/pnotes2.t Sure. Did it: [warning] setting ulim

build of libapreq2 fails

2011-01-27 Thread James B. Muir
Hi, I am trying to build libapreq2 so that I may use it with Apache2 and mod_perl. I'm on a Solaris 10 system. The version of Apache I am using is old: ./bin/apachectl -v Server version: Apache/2.0.59 Server built: Aug 22 2006 11:38:34 I receive the following surprising errors during the build

Re: [QUESTION] Some tests fail on Debian

2011-01-27 Thread Fred Moyer
My guess is that your 64 bit setup with ithreads is causing this error. Does anyone else here have 64 bit they can test with an ithreads enabled perl? On Thu, Jan 27, 2011 at 12:18 PM, Alexander Aparzev wrote: > On 27.01.2011 20:55, Fred Moyer wrote: >> >> On Thu, Jan 27, 2011 at 11:44 AM, Alexa

Re: build of libapreq2 fails

2011-01-27 Thread John D Groenveld
In message <527c4914f1b2ea47b38422de0fa05a65064b1ba...@dh201.dhmcmaster.dh.hitc hcock.org>, "James B. Muir" writes: >Hi, I am trying to build libapreq2 so that I may use it with Apache2 and mo= >d_perl. I'm on a Solaris 10 system. The version of Apache I am using is old= >: > >./bin/apachectl -v >S

Re: experiencing Out of memory errors

2011-01-27 Thread Dave Hodgkinson
On 26 Jan 2011, at 15:17, John Deighan wrote: > What we would like is to run this application in a 64 bit environment, thus > allowing us to use more than the 2 GB memory that the Apache process ('httpd') > is limited to (the "Out of memory" errors always occur as the memory usage > of the httpd

Re: experiencing Out of memory errors

2011-01-27 Thread Michael Peters
On 01/27/2011 07:05 PM, Dave Hodgkinson wrote: Can I just say: WTF? 2G in an Apache? Surely there's a better way of architecting this? One thing to remember is that he's running Windows which doesn't have Copy-On-Write memory, so depending on what he's doing it might not take up as much mem

Re: experiencing Out of memory errors

2011-01-27 Thread Michael Ludwig
Michael Peters schrieb am 27.01.2011 um 19:14 (-0500): > But, even after all that I have applications where we consistently > run 3-4G just for mod_perl/Apache. But surely not in one process as the OP said he'd like to do? -- Michael Ludwig

Re: experiencing Out of memory errors

2011-01-27 Thread Michael Peters
On 01/27/2011 07:41 PM, Michael Ludwig wrote: Michael Peters schrieb am 27.01.2011 um 19:14 (-0500): But, even after all that I have applications where we consistently run 3-4G just for mod_perl/Apache. But surely not in one process as the OP said he'd like to do? No you're right, but I'm g

Re: experiencing Out of memory errors

2011-01-27 Thread William A. Rowe Jr.
On 1/27/2011 7:16 PM, Michael Peters wrote: > On 01/27/2011 07:41 PM, Michael Ludwig wrote: >> Michael Peters schrieb am 27.01.2011 um 19:14 (-0500): >> >>> But, even after all that I have applications where we consistently >>> run 3-4G just for mod_perl/Apache. >> >> But surely not in one process