ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/checkrusage.ext
(Generate patch)

Comparing deliantra/server/ext/checkrusage.ext (file contents):
Revision 1.8 by root, Fri Feb 3 03:01:44 2012 UTC vs.
Revision 1.9 by root, Wed Nov 16 22:14:05 2016 UTC

18 $TIMER = cf::periodic 10, sub { 18 $TIMER = cf::periodic 10, sub {
19 sysseek $STAT_FH, 0, 0; 19 sysseek $STAT_FH, 0, 0;
20 sysread $STAT_FH, my $stat, 4096; # only a single line 20 sysread $STAT_FH, my $stat, 4096; # only a single line
21 my $vmsize = (split / /, $stat)[22]; 21 my $vmsize = (split / /, $stat)[22];
22 22
23 cf::cleanup "memory usage growing high, server would run out of memory soon", 0 23 cf::cleanup "memory usage growing high ($vmsize > $MAX_VMSIZE), server would run out of memory soon", 0
24 if $vmsize >= $MAX_VMSIZE; 24 if $vmsize >= $MAX_VMSIZE;
25 }; 25 };
26 }; 26 };
27}; 27};

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines