sysopen(my $fh, "/proc/$pid/statm", 0) or die $!; [download]
In reply to Re^4: Allocated memory to Script by Anonymous Monk in thread Allocated memory to Script by Anonymous Monk