Hi,

This is some things I've come across.

Lineup:
  Apache/2.0.43 (Win32) mod_perl/1.99_09-dev Perl/v5.8.0 DAV/2

1. When adding 'PerlOptions +Parent' to httpd.conf (in <VirtualHost>),
apache starts ok, then exits without an error message after approx 1
second.

2. In docs config.html PerlOptions +Parent, PerlInterpMaxRequests,
PerlInterpStart, PerlInterpMax is shown inside a <Location>. Apache
returns 'not allowed here' for all of these.

3. PerlInterpMaxRequests doesn't seem to be working. Entering the
following directives inside a <VirtualHost>:

    PerlOptions +Clone
    PerlInterpMaxSpare 1
    PerlInterpMinSpare 1
    PerlInterpStart 1
    PerlInterpMax 1
    PerlInterpMaxRequests 10

(I'm overdoing it just to make sure) ...does not retire interpreter after
10 requests.

Tested this with the following module:

  package MyApache::Test::Rox;

  use strict;
  use warnings FATAL=>'all', NONFATAL=>'redefine';

  use Apache::RequestRec ();
  use Apache::RequestIO ();
  use Apache::Const -compile => qw(OK);
  use APR::OS;

  my $cnt=0;
  my $tid = APR::OS::thread_current();

  sub handler {
      my $r = shift;

      $r->log_error("[rox] $tid | NEW THREAD") if !$cnt;

      $r->content_type('text/plain');
      $r->puts("mod_perl 2.0 rocks nice!\n");

      $cnt++;
      print "Count: $cnt\n";

      $r->log_error("[rox] $tid  |  $cnt");

      return Apache::OK;
  }

  1;


Tried this with ab -c 10 -n 20. Log:

[Wed Feb 26 11:30:57 2003] [error] [rox] APR::OS::Thread=SCALAR(0x11ff6b8) | NEW THREAD
[Wed Feb 26 11:30:57 2003] [error] [rox] APR::OS::Thread=SCALAR(0x11ff6b8)  |  1
[Wed Feb 26 11:30:57 2003] [error] [rox] APR::OS::Thread=SCALAR(0x11ff6b8)  |  2
[Wed Feb 26 11:30:57 2003] [error] [rox] APR::OS::Thread=SCALAR(0x11ff6b8)  |  3
[Wed Feb 26 11:30:57 2003] [error] [rox] APR::OS::Thread=SCALAR(0x11ff6b8)  |  4
[Wed Feb 26 11:30:57 2003] [error] [rox] APR::OS::Thread=SCALAR(0x11ff6b8)  |  5
[Wed Feb 26 11:30:57 2003] [error] [rox] APR::OS::Thread=SCALAR(0x11ff6b8)  |  6
[Wed Feb 26 11:30:57 2003] [error] [rox] APR::OS::Thread=SCALAR(0x11ff6b8)  |  7
[Wed Feb 26 11:30:57 2003] [error] [rox] APR::OS::Thread=SCALAR(0x11ff6b8)  |  8
[Wed Feb 26 11:30:57 2003] [error] [rox] APR::OS::Thread=SCALAR(0x11ff6b8)  |  9
[Wed Feb 26 11:30:57 2003] [error] [rox] APR::OS::Thread=SCALAR(0x11ff6b8)  |  10
[Wed Feb 26 11:30:57 2003] [error] [rox] APR::OS::Thread=SCALAR(0x11ff6b8)  |  11
[Wed Feb 26 11:30:57 2003] [error] [rox] APR::OS::Thread=SCALAR(0x11ff6b8)  |  12
[Wed Feb 26 11:30:57 2003] [error] [rox] APR::OS::Thread=SCALAR(0x11ff6b8)  |  13
[Wed Feb 26 11:30:58 2003] [error] [rox] APR::OS::Thread=SCALAR(0x11ff6b8)  |  14
[Wed Feb 26 11:30:58 2003] [error] [rox] APR::OS::Thread=SCALAR(0x11ff6b8)  |  15
[Wed Feb 26 11:30:58 2003] [error] [rox] APR::OS::Thread=SCALAR(0x11ff6b8)  |  16
[Wed Feb 26 11:30:58 2003] [error] [rox] APR::OS::Thread=SCALAR(0x11ff6b8)  |  17
[Wed Feb 26 11:30:58 2003] [error] [rox] APR::OS::Thread=SCALAR(0x11ff6b8)  |  18
[Wed Feb 26 11:30:58 2003] [error] [rox] APR::OS::Thread=SCALAR(0x11ff6b8)  |  19
[Wed Feb 26 11:30:58 2003] [error] [rox] APR::OS::Thread=SCALAR(0x11ff6b8)  |  20


thanks,
-Kurt.
__________
kurt george gjerde <[EMAIL PROTECTED]>
intermedia uib, university of bergen

I don't work here.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to