Re: [mp2] PAR in production?

2006-11-09 Thread Foo JH
I don't understand. What do you mean by 'perl is not relocatable'? I've put (Active)Perl in the same directory as the apache server in a copy-paste operation. But this is in Windows. Michael Peters wrote: Fred Moyer wrote: I like this approach, but it still requires a perl binary to make

Re: Apache::DProf giving empty tmon.out files

2006-11-09 Thread Miles Crawford
Interesting idea - I seem to be able to write to them as the apache user though ;( I'd never thought they were written half before and half after the permission drop. -miles On Thu, 9 Nov 2006, Perrin Harkins wrote: On Thu, 2006-11-09 at 13:56 -0800, Miles Crawford wrote: It *is* writi

Re: Apache::DProf giving empty tmon.out files

2006-11-09 Thread Perrin Harkins
On Thu, 2006-11-09 at 13:56 -0800, Miles Crawford wrote: > It *is* writing to the directory - it writes little empty stub files that > look > like this Sure, but maybe it writes those as root before forking. - Perrin

Re: Apache::DProf giving empty tmon.out files

2006-11-09 Thread Miles Crawford
It *is* writing to the directory - it writes little empty stub files that look like this: #fOrTyTwO $hz=100; $XS_VERSION='DProf 20050603.00'; # All values are given in HZ $over_utime=4; $over_stime=0; $over_rtime=3; $over_tests=1; $rrun_utime=100; $rrun_stime=13; $rrun_rtime=3148; $total_m

Re: Apache::DProf giving empty tmon.out files

2006-11-09 Thread Philip M. Gollucci
Miles Crawford wrote: Hmm. Thanks for the hints guys, but it's still not working. My config has this now: PerlModule Apache::DProf use APR::Pool (); use Apache::DB (); Apache::DB->init(); Are you using prefork or a threaded mpm(worker,event) ? I don't think I've tried it with thread

Re: Apache::DProf giving empty tmon.out files

2006-11-09 Thread Perrin Harkins
On Thu, 2006-11-09 at 13:51 -0800, Miles Crawford wrote: > Any other ideas or things I could check that might help? Make sure that the user your server runs as (nobody?) can write to that directory. - Perrin

Re: Apache::DProf giving empty tmon.out files

2006-11-09 Thread Miles Crawford
Hmm. Thanks for the hints guys, but it's still not working. My config has this now: PerlModule Apache::DProf use APR::Pool (); use Apache::DB (); Apache::DB->init(); As you recommend, but the files are still totally empty. I'm not checking them until I issue an "apache2ctl stop" and

Re: Apache::DProf giving empty tmon.out files

2006-11-09 Thread Philip M. Gollucci
Perrin Harkins wrote: On Thu, 2006-11-09 at 12:29 -0800, Philip M. Gollucci wrote: In 2.x its this: http://search.cpan.org/~fwiles/Apache-DB-0.13/DB.pm use APR::Pool (); use Apache::DB (); Apache::DB->init(); Thanks Philip. Any reason why it can't use APR::Pool for you in Apache 2? You'd ha

Re: Apache::DProf giving empty tmon.out files

2006-11-09 Thread Perrin Harkins
On Thu, 2006-11-09 at 12:29 -0800, Philip M. Gollucci wrote: > In 2.x its this: > http://search.cpan.org/~fwiles/Apache-DB-0.13/DB.pm > > use APR::Pool (); > use Apache::DB (); > Apache::DB->init(); Thanks Philip. Any reason why it can't use APR::Pool for you in Apache 2? - Perrin

Re: Apache::DProf giving empty tmon.out files

2006-11-09 Thread Philip M. Gollucci
I think it doesn't write these out until the child process shuts down. Did you shut down your server? No it writes as you go -- just doesn't flush completely until child shutdown. require Apache::DB; Apache::DB->init; In 2.x its this: http://search.cpan.org/~fwiles/Apache-DB-0

Re: Apache::DProf giving empty tmon.out files

2006-11-09 Thread Perrin Harkins
On Thu, 2006-11-09 at 12:02 -0800, Miles Crawford wrote: > The trouble is the tmon files all contain nothing but: > > #fOrTyTwO > $hz=100; > $XS_VERSION='DProf 20050603.00'; > # All values are given in HZ > $over_utime=3; $over_stime=2; $over_rtime=6; > $over_tests=1; I think it doesn't write

Apache::DProf giving empty tmon.out files

2006-11-09 Thread Miles Crawford
Heya, I'm using Apache::DProf in an attempt to profile my application. This has worked great for me in the past under Apache 1.3, but this is a new installation with Apache 2. At first, I thought it was working great under apache2 as well - the dprof dir was created, the $$/tmon.out files w

Re: [mp2] PAR in production?

2006-11-09 Thread Perrin Harkins
On Thu, 2006-11-09 at 11:10 -0800, Fred Moyer wrote: > Have you found a way > of shipping a custom perl build in addition to all the other components? I don't think it would be hard to do, but perl takes so long to compile that most people would object. - Perrin

Re: [mp2] PAR in production?

2006-11-09 Thread Michael Peters
Fred Moyer wrote: > I like this approach, but it still requires a perl binary to make > everything happen. The default perl compile on a lot of systems out > there is threaded, and built for general use. Have you found a way of > shipping a custom perl build in addition to all the other compon

Re: [mp2] PAR in production?

2006-11-09 Thread Fred Moyer
On Wed, 8 Nov 2006, Perrin Harkins wrote: On Mon, 2006-11-06 at 12:28 -0600, Frank Wiles wrote: What I have always done is package my applications as if they are CPAN modules using ExtUtils::MakeMaker or in more recent days Module::Build. Never had a problem with it, but it probably

Re: Weak references, problem with apache2/mod_perl2

2006-11-09 Thread Perrin Harkins
On Thu, 2006-11-09 at 11:24 +0100, Michael Frankl wrote: > Ok, I testet this: > perl -e "use Scalar::Util qw/weaken blessed/;" > > Runs without any complains. Used directly in the script started by > Apache writes the same message to errorlog: > - > [Thu Nov 09 10:37:23 2006] [

Re: Is Apache::TestRequest for me?

2006-11-09 Thread Anthony Gardner
Thanks for the suggestions, I'll check them out. as for Apache::TestRequest, I agree with what you say . I thought it'd be a lot of work to write 'test' handlers but didn't know of any other options.cheers"Philip M. Gollucci" <[EMAIL PROTECTED]> wrote: Anthony Gardner wrote:> I'm trying to

SV: SV: Mod_perl + cronolog

2006-11-09 Thread Tue Topholm
Sweet, it works just perfect now Med venlig hilsen / Best Regards Tue Topholm Device.Webbureau M: +45 26 74 07 41 P: +45 70 21 00 04 LinkedIN: http://www.linkedin.com/in/ttopholm -Oprindelig meddelelse- Fra: Perrin Harkins [mailto:[EMAIL PROTECTED] Sendt: 9. november 2006 06:32 Til:

Re: Weak references, problem with apache2/mod_perl2

2006-11-09 Thread Michael Frankl
Am Mittwoch, den 08.11.2006, 12:39 -0500 schrieb Perrin Harkins: > > It can not be my perl itself, because the standalone server is running, > > or am i wrong? > > It probably means that your mod_perl was not compiled with the same perl > that you're running the standalone server on. Either that,

Re: Is Apache::TestRequest for me?

2006-11-09 Thread Philip M. Gollucci
Anthony Gardner wrote: I'm trying to think of a way to do a test plan for a site that is already well developed but is going through a structural change rather than a content change. To cut a long story short, for future development we want to implement a good test suite to test the html in t

Is Apache::TestRequest for me?

2006-11-09 Thread Anthony Gardner
I'm trying to think of a way to do a test plan for a site that is already well developed but is going through a structural change rather than a content change.To cut a long story short, for future development we want to implement a good test suite to test the html in the response. At present, they

Re: [RELEASE CANDIDATE] Apache-Test-1.27 RC2 + mod_perl2.03-RC2 + apreq 2.09-RC2

2006-11-09 Thread Philip M. Gollucci
Issac Goldstand wrote: Win32 (VS2003) - httpd/2.2.3 - ActivePerl 5.8.8.819 PASS Apache-Test PASS mod_perl FAIL libapreq2 libapreq passed the 2 sets of C-based tests and failed the 3rd set (quite miserably), so it may just be a bug in Apache-Test. I'll look into it and send a proper bug report

Re: [RELEASE CANDIDATE] Apache-Test-1.27 RC2 + mod_perl2.03-RC2 + apreq 2.09-RC2

2006-11-09 Thread Issac Goldstand
Win32 (VS2003) - httpd/2.2.3 - ActivePerl 5.8.8.819 PASS Apache-Test PASS mod_perl FAIL libapreq2 libapreq passed the 2 sets of C-based tests and failed the 3rd set (quite miserably), so it may just be a bug in Apache-Test. I'll look into it and send a proper bug report with details to apreq-dev