--- deliantra/server/ext/checkrusage.ext 2007/01/27 00:14:03 1.4 +++ deliantra/server/ext/checkrusage.ext 2007/11/14 08:09:46 1.5 @@ -6,19 +6,13 @@ $^O eq "linux" or die "only linux supported right now.\n"; -Event->timer ( - reentrant => 0, - data => cf::WF_AUTOCANCEL, - interval => 10, - after => 10, - cb => sub { - open my $fh, "= $MAX_VMSIZE; - }, -); + cf::cleanup "memory usage growing high, server would run out of memory soon", 0 + if $vmsize >= $MAX_VMSIZE; +};