Thread Fehlermeldung versteh ich nicht (11 answers)
Opened by J-jayz-Z at 2005-09-14 23:26

J-jayz-Z
 2005-09-14 23:26
#31173 #31173
User since
2005-04-13
625 Artikel
BenutzerIn
[Homepage] [default_avatar]
Hi,

Mein error.log vom apache liefert mir eine Fehlermeldung, die manchmal ein Internal Server Error hervorruft und manchmal nicht.
e:
Code: (dl )
1
2
[Wed Sep 14 21:16:25 2005] [error] (12)Cannot allocate memory: fork: Unable to fork new process
[Wed Sep 14 21:20:25 2005] [error] [client 217.184.129.55] (12)Cannot allocate memory: couldn't spawn child process: /var/www/perl-tutor/cgi/perl_oo.pl


Der passende COde dazu ruft aber kein Fork auf...
Der sieht nur so aus:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/perl
use strict;
use warnings;

use HTML::Template;
use CGI qw/:standart fatalsToBrowser/;

my $template = HTML::Template->new(filename => '../template.tmpl');

open(OOP, "<oo.txt") || die "$!";
my @main = <OOP>;
close(OOP);

$template->param(MAIN => "@main");

print "Content-Type: text/html\n\n", $template->output;

jemand ne idee, woran das liegen könnte?
perl -Mstrict -Mwarnings -e 'package blub; sub new { bless {} } sub bar {my $self=shift; $self->{bla}="5065726c2d436f6d6d756e697479"; return $self->{bla};} my $foo=blub->new();print "Hallo ";print pack("H*",$foo->bar()); print "\n"'

http://perl-tutor.de

View full thread Fehlermeldung versteh ich nicht