RE: Windows settings cause crash (originally: FAIL!!!)

2008-10-13 Thread greg augustine

Also, the ThreadsPerChild is 250 and MaxRequestsPerChild  5 From: [EMAIL 
PROTECTED] To: modperl@perl.apache.org Subject: FAIL!!! Date: Mon, 13 Oct 
2008 07:47:35 -0500   hello,  I'm trying to get mod_perl running under 
Windows. I used the latest perl from ActiveState (5.8.8.824), Apache 2.2.9 from 
apache.org, and mod_perl 2.0.4, installed from ppm. When I ran a simple perl 
script and had 20 simulated users hitting the page, it eventually said 'Out of 
memory!' and restarted with a status of 0. The second time it happened, it 
tried to restart, but couldn't. Does anyone know if these versions actually 
work together? If they do, any thoughts on what could be wrong?  code:  use 
strict;   my $err = 'eh';  my $body;  my $errstr = int(rand(2));  
print 'Content-type: text/html','\n\n',$err,': ',$errstr,'\nSERVER_ADDR: 
',($ENV{'SERVER_ADDR'} || $ENV{'COMPUTERNAME'}),'\n'; if($errstr){ $errstr =~ 
s/\://g;  $errstr =~ s/\n/ /g;  $body = 'Error Text: ',$errstr,'\n';  } 
print '\n'; print scalar(localtime()); if($body){ $body =~ s/\n//g; } print 
$body;   Apache error.log  Out of memory! [Fri Oct 10 14:25:34 2008] 
[notice] Parent: child process exited with status 0 -- Restarting. [Fri Oct 10 
14:25:34 2008] [notice] Apache/2.2.9 (Win32) mod_perl/2.0.3 Perl/v5.8.8 
configured -- resuming normal operations [Fri Oct 10 14:25:34 2008] [notice] 
Server built: Jun 13 2008 04:04:59 [Fri Oct 10 14:25:34 2008] [notice] Parent: 
Created child process 1712 [Fri Oct 10 14:25:34 2008] [debug] 
mpm_winnt.c(487): Parent: Sent the scoreboard to the child [Fri Oct 10 
14:25:34 2008] [notice] Disabled use of AcceptEx() WinSock2 API [Fri Oct 10 
14:25:34 2008] [notice] Child 1712: Child process is running [Fri Oct 10 
14:25:34 2008] [info] Parent: Duplicating socket 244 and sending it to child 
process 1712 [Fri Oct 10 14:25:34 2008] [debug] mpm_winnt.c(408): Child 1712: 
Retrieved our scoreboard from the parent. [Fri Oct 10 14:25:34 2008] [debug] 
mpm_winnt.c(605): Parent: Sent 1 listeners to child 1712 [Fri Oct 10 14:25:34 
2008] [debug] mpm_winnt.c(564): Child 1712: retrieved 1 listeners from parent 
[Fri Oct 10 14:25:34 2008] [notice] Child 1712: Acquired the start mutex. [Fri 
Oct 10 14:25:34 2008] [notice] Child 1712: Starting 250 worker threads. [Fri 
Oct 10 14:25:34 2008] [notice] Child 1712: Listening on port 80. Out of 
memory! [Fri Oct 10 15:07:14 2008] [notice] Parent: child process exited with 
status 0 -- Restarting.  
_ See how 
Windows connects the people, information, and fun that are part of your life. 
http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/
_
Get more out of the Web. Learn 10 hidden secrets of Windows Live.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008

Re: Windows settings cause crash (originally: FAIL!!!)

2008-10-13 Thread Foo JH

You may want to try 2 options:
1. Use an older version of the Apache build like 2.2.6. It has been 
known to be fairly stable.
2. Try the build from ApacheLounge. It's generally not favoured, but it 
seems to handle some things better.


greg augustine wrote:

Also, the ThreadsPerChild is 250 and MaxRequestsPerChild  5

  From: [EMAIL PROTECTED]
  To: modperl@perl.apache.org
  Subject: FAIL!!!
  Date: Mon, 13 Oct 2008 07:47:35 -0500
 
 
  hello,
 
  I'm trying to get mod_perl running under Windows. I used the latest 
perl from ActiveState (5.8.8.824), Apache 2.2.9 from apache.org, and 
mod_perl 2.0.4, installed from ppm. When I ran a simple perl script and 
had 20 simulated users hitting the page, it eventually said 'Out of 
memory!' and restarted with a status of 0. The second time it happened, 
it tried to restart, but couldn't. Does anyone know if these versions 
actually work together? If they do, any thoughts on what could be wrong?

 
  code:
 
  use strict;
 
 
  my $err = 'eh';
 
  my $body;
 
  my $errstr = int(rand(2));
 
  print 'Content-type: text/html','\n\n',$err,': 
',$errstr,'\nSERVER_ADDR: ',($ENV{'SERVER_ADDR'} || 
$ENV{'COMPUTERNAME'}),'\n';

  if($errstr){
  $errstr =~ s/\://g;
  $errstr =~ s/\n/ /g;
  $body = 'Error Text: ',$errstr,'\n';
  }
  print '\n';
  print scalar(localtime());
  if($body){ $body =~ s/\n//g; }
  print $body;
 
 
  Apache error.log
 
  Out of memory!
  [Fri Oct 10 14:25:34 2008] [notice] Parent: child process exited with 
status 0 -- Restarting.
  [Fri Oct 10 14:25:34 2008] [notice] Apache/2.2.9 (Win32) 
mod_perl/2.0.3 Perl/v5.8.8 configured -- resuming normal operations

  [Fri Oct 10 14:25:34 2008] [notice] Server built: Jun 13 2008 04:04:59
  [Fri Oct 10 14:25:34 2008] [notice] Parent: Created child process 1712
  [Fri Oct 10 14:25:34 2008] [debug] mpm_winnt.c(487): Parent: Sent the 
scoreboard to the child
  [Fri Oct 10 14:25:34 2008] [notice] Disabled use of AcceptEx() 
WinSock2 API

  [Fri Oct 10 14:25:34 2008] [notice] Child 1712: Child process is running
  [Fri Oct 10 14:25:34 2008] [info] Parent: Duplicating socket 244 and 
sending it to child process 1712
  [Fri Oct 10 14:25:34 2008] [debug] mpm_winnt.c(408): Child 1712: 
Retrieved our scoreboard from the parent.
  [Fri Oct 10 14:25:34 2008] [debug] mpm_winnt.c(605): Parent: Sent 1 
listeners to child 1712
  [Fri Oct 10 14:25:34 2008] [debug] mpm_winnt.c(564): Child 1712: 
retrieved 1 listeners from parent

  [Fri Oct 10 14:25:34 2008] [notice] Child 1712: Acquired the start mutex.
  [Fri Oct 10 14:25:34 2008] [notice] Child 1712: Starting 250 worker 
threads.

  [Fri Oct 10 14:25:34 2008] [notice] Child 1712: Listening on port 80.
  Out of memory!
  [Fri Oct 10 15:07:14 2008] [notice] Parent: child process exited with 
status 0 -- Restarting.

 
  _
  See how Windows connects the people, information, and fun that are 
part of your life.

  http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/


Get more out of the Web. Learn 10 hidden secrets of Windows Live. Learn 
Now 
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_getmore_092008




Re: Windows settings cause crash (originally: FAIL!!!)

2008-10-13 Thread William A. Rowe, Jr.
Before changing either detail that Foo JH pointed out, first try backing
down to activestate perl 5.8 build 820(?).  It seemed to be a very stable build
for most people's use.

Foo JH wrote:
 You may want to try 2 options:
 1. Use an older version of the Apache build like 2.2.6. It has been
 known to be fairly stable.
 2. Try the build from ApacheLounge. It's generally not favoured, but it
 seems to handle some things better.
 
 greg augustine wrote:
 Also, the ThreadsPerChild is 250 and MaxRequestsPerChild  5

   From: [EMAIL PROTECTED]
   To: modperl@perl.apache.org
   Subject: FAIL!!!
   Date: Mon, 13 Oct 2008 07:47:35 -0500
  
  
   hello,
  
   I'm trying to get mod_perl running under Windows. I used the latest
 perl from ActiveState (5.8.8.824), Apache 2.2.9 from apache.org, and
 mod_perl 2.0.4, installed from ppm. When I ran a simple perl script
 and had 20 simulated users hitting the page, it eventually said 'Out
 of memory!' and restarted with a status of 0. The second time it
 happened, it tried to restart, but couldn't. Does anyone know if these
 versions actually work together? If they do, any thoughts on what
 could be wrong?
  
   code:
  
   use strict;
  
  
   my $err = 'eh';
  
   my $body;
  
   my $errstr = int(rand(2));
  
   print 'Content-type: text/html','\n\n',$err,':
 ',$errstr,'\nSERVER_ADDR: ',($ENV{'SERVER_ADDR'} ||
 $ENV{'COMPUTERNAME'}),'\n';
   if($errstr){
   $errstr =~ s/\://g;
   $errstr =~ s/\n/ /g;
   $body = 'Error Text: ',$errstr,'\n';
   }
   print '\n';
   print scalar(localtime());
   if($body){ $body =~ s/\n//g; }
   print $body;
  
  
   Apache error.log
  
   Out of memory!
   [Fri Oct 10 14:25:34 2008] [notice] Parent: child process exited
 with status 0 -- Restarting.
   [Fri Oct 10 14:25:34 2008] [notice] Apache/2.2.9 (Win32)
 mod_perl/2.0.3 Perl/v5.8.8 configured -- resuming normal operations
   [Fri Oct 10 14:25:34 2008] [notice] Server built: Jun 13 2008 04:04:59
   [Fri Oct 10 14:25:34 2008] [notice] Parent: Created child process 1712
   [Fri Oct 10 14:25:34 2008] [debug] mpm_winnt.c(487): Parent: Sent
 the scoreboard to the child
   [Fri Oct 10 14:25:34 2008] [notice] Disabled use of AcceptEx()
 WinSock2 API
   [Fri Oct 10 14:25:34 2008] [notice] Child 1712: Child process is
 running
   [Fri Oct 10 14:25:34 2008] [info] Parent: Duplicating socket 244
 and sending it to child process 1712
   [Fri Oct 10 14:25:34 2008] [debug] mpm_winnt.c(408): Child 1712:
 Retrieved our scoreboard from the parent.
   [Fri Oct 10 14:25:34 2008] [debug] mpm_winnt.c(605): Parent: Sent 1
 listeners to child 1712
   [Fri Oct 10 14:25:34 2008] [debug] mpm_winnt.c(564): Child 1712:
 retrieved 1 listeners from parent
   [Fri Oct 10 14:25:34 2008] [notice] Child 1712: Acquired the start
 mutex.
   [Fri Oct 10 14:25:34 2008] [notice] Child 1712: Starting 250 worker
 threads.
   [Fri Oct 10 14:25:34 2008] [notice] Child 1712: Listening on port 80.
   Out of memory!
   [Fri Oct 10 15:07:14 2008] [notice] Parent: child process exited
 with status 0 -- Restarting.
  
   _
   See how Windows connects the people, information, and fun that are
 part of your life.
   http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/

 
 Get more out of the Web. Learn 10 hidden secrets of Windows Live.
 Learn Now
 http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_getmore_092008