Questions about optimizing memory usage

2005-12-14 Thread Chase Venters
Greetings, I have some questions about optimizing memory usage. I could probably get some of these answers myself with more study of the mod_perl / perl source, but I was hoping someone might just know the answer and be able to tell me :) First off, am I correct in the assumption

Re: Good mp2 books?

2005-12-14 Thread Geoffrey Young
Jonathan Vanasco wrote: > > If you asked Santa to bring you one for Christmas he'd look at you, > stare for a moment, and give his jolly ol' laugh just before he says > "You're shit out of luck" > > To the best of my knowledge, there are 3 mod perl 1 (MP1) books : > practical mod_perl and th

Re: [mp2] local %ENV causes Segmentation fault or Bus error

2005-12-14 Thread Philip M. Gollucci
You will only get the Seg fault or Bus error when a process comes round for recycling. StartServers 1 MinSpareServers 1 MaxSpareServers 1 MaxClients 150 MaxRequestsPerChild 0 SetHandler perl-script PerlResponseHandler TEST::ENV TEST/ENV.pm package TEST::ENV;

Re: Good mp2 books?

2005-12-14 Thread Philip M. Gollucci
Has anyone heard of someone being contracted to write a MP2 book for O'reilly or another publisher? Or are the publishers just tossing money at potential authors php/mysql and rails books? Last I heard Orielly was looking but we were all busy. :)

Re: Good mp2 books?

2005-12-14 Thread Jonathan Vanasco
If you asked Santa to bring you one for Christmas he'd look at you, stare for a moment, and give his jolly ol' laugh just before he says "You're shit out of luck" To the best of my knowledge, there are 3 mod perl 1 (MP1) books : practical mod_perl and the mod_perl developers cookbook -- w

Good mp2 books?

2005-12-14 Thread Peter Leonard
So I'm looking at a library update, and my shelves are tragically thin on MP2 books. Since an early New Year's resolution is to start delving heavily into MP2, I'd love some recommendations on what everyone considers to be the best MP2 books out there at the moment? Thanks,

Re: [mp2] local %ENV causes Segmentation fault or Bus error

2005-12-14 Thread Philip M. Gollucci
First off a bit of CPAN wierdness. With perl -MCPAN 'install Sys::HostIP' you get version 1.0 (07 Jun 2000), rather than the latest version (1.3.1 29 Sep 2003), something to do with the change of owner (five->bluelines). Unfortunately 1.0 is the only version which doesn't use local %ENV (...and ho

Re: Persistent DB Connection problem

2005-12-14 Thread Jonathan Vanasco
This is a ThreeParter On Dec 14, 2005, at 10:43 AM, Thomas Schindl wrote: I brought about a few days ago a discussion about mod_dbd (available with Apache-2.2 ) which exactly acts like I think connection-pooling should work in Apache. on a side note, does mp2 work with apache-2.2 yet? i've

Re: Persistent DB Connection problem

2005-12-14 Thread Perrin Harkins
On Wed, 2005-12-14 at 16:43 +0100, Thomas Schindl wrote: > I've now taken a closer look into the whole thing and at the moment > it seems to possible to use mod_dbd to provide the physical connection on > C-level to DBD::mysql. I've already contacted the maintainer of DBD::mysql > and I hope until

Re: Persistent DB Connection problem

2005-12-14 Thread Thomas Schindl
Hi, you are right Jonathan at the moment there's no real DB-Pool implementation available like one knows it e.g. from Java. a. Connection-Pool(Connection1, Connection2) b. Apache-Child-1 "Request-Starts": -> Connection1 = Pool->fetchConnection(); -> Connection1->executeQuery("SELECT * FROM

Re: Persistent DB Connection problem

2005-12-14 Thread Kevin A. McGrail
I'm shocked that nobody mentioned Apache::DBI->connect_on_init() That's because he really doesn't want persistent connections. He's trying to get 1 db connection for XYZ number of child processes. ;-) Regards, KAM

[mp2] local %ENV causes Segmentation fault or Bus error

2005-12-14 Thread Peter Walsham
Phillip, Thanks for your reply. First off a bit of CPAN wierdness. With perl -MCPAN 'install Sys::HostIP' you get version 1.0 (07 Jun 2000), rather than the latest version (1.3.1 29 Sep 2003), something to do with the change of owner (five->bluelines). Unfortunately 1.0 is the only version wh