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_perl2.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 partof your life.
http://clk.atdmt.com/MRT/go/msnnkwxp...mrt/direct/01/