FAIL!!!

FAIL!!!

am 13.10.2008 14:47:35 von greg augustine

hello=2C

I'm trying to get mod_perl running under Windows. I used the latest perl f=
rom ActiveState (5.8.8.824)=2C Apache 2.2.9 from apache.org=2C and mod_perl=
2.0.4=2C installed from ppm. When I ran a simple perl script and had 20 s=
imulated users hitting the page=2C it eventually said "Out of memory!" and =
restarted with a status of 0. The second time it happened=2C it tried to r=
estart=2C but couldn't. Does anyone know if these versions actually work t=
ogether? If they do=2C any thoughts on what could be wrong?

code:

use strict=3B


my $err =3D 'eh'=3B

my $body=3B

my $errstr =3D int(rand(2))=3B

print 'Content-type: text/html'=2C"\n\n"=2C$err=2C': '=2C$errstr=2C"\nSERVE=
R_ADDR: "=2C($ENV{'SERVER_ADDR'} || $ENV{'COMPUTERNAME'})=2C"\n"=3B
if($errstr){
$errstr =3D~ s/\://g;
$errstr =3D~ s/\n/ /g;
$body =3D 'Error Text: '=2C$errstr=2C"\n";
}
print "\n"=3B
print scalar(localtime())=3B
if($body){ $body =3D~ s/\n//g=3B }
print $body=3B


Apache error.log

Out of memory!
[Fri Oct 10 14:25:34 2008] [notice] Parent: child process exited with statu=
s 0 -- Restarting.
[Fri Oct 10 14:25:34 2008] [notice] Apache/2.2.9 (Win32) mod_perl/2.0.3 Per=
l/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 score=
board 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 sendin=
g 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 listene=
rs 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 statu=
s 0 -- Restarting.

____________________________________________________________ _____
See how Windows connects the people=2C information=2C and fun that are part=
of your life.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/ =