Kjetil Kjernsmo wrote: > Hi and a little dahut to all cryptids! > > I was trying out the Apache2::Resource module, and decided to try it out > using just the default configuration. All I got was > Can't locate object method "server" via package "Apache2" > at /usr/lib/perl5/Apache2/Resource.pm line 133. > > So, I started hacking the source code, putting in Apache2::ServerUtil in > there, and now it works for me. I must admit that my understanding of > mp2 is still superficial and it may not be necessary, and that case, > please clue me in.
It was indeed necessary, and a slightly modified patch has been checked into the trunk as revision 345367 > If it is indeed a bug, I have made a little patch on the SVN trunk: > > [...] > > I haven't actually tested the SVN trunk, just with the mp 2.0.1 I run on > my system, but I'm sure you guys can see with a blink if this was > indeed a bug. Yes, it was. > BTW, there's a comment in the POD that Linux doesn't support the DATA > limit, but it is in the manpage on my system, and setting it really low > seemed to limit it. I'm really no kernel hacker, but googling shows > that it was discussed in a Linux 2.2 context. So, here's a little diff > to remove that line, if you also find that it is supported: I'd try and figure out at which point linux started supporting it and document it as "linux honors RLIMIT_DATA only after 2.4.n" > Index: Resource.pod > =================================================================== > --- Resource.pod (revision 345000) > +++ Resource.pod (working copy) > @@ -11,7 +11,6 @@ > # default is 64 Meg > PerlSetEnv PERL_RLIMIT_DATA 32:48 > > - # linux does not honor RLIMIT_DATA > # RLIMIT_AS (address space) will work to limit the size of a process > PerlSetEnv PERL_RLIMIT_AS 32:48 > -------------------------------------------------------------------------------- Philippe M. Chiasson m/gozer\@(apache|cpan|ectoplasm)\.org/ GPG KeyID : 88C3A5A5 http://gozer.ectoplasm.org/ F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3A5A5
signature.asc
Description: OpenPGP digital signature