[CentOS] Limit RAM used by a perl script

John Doe

jdmls at yahoo.com
Tue Jul 21 14:22:23 UTC 2009


From: Sean Carolan <scarolan at gmail.com>
> > While having hard limits makes it safer, wouldn't it be better to control the 
> > memory usage of the script instead of setting limits that would trigger an "out 
> > of memory"...?
> How would you control the memory usage of the script if it's run by
> the root user?

By control I meant to design the script to use a specific amount of RAM, 
instead of letting it vampirise all available memory...

JD


      




More information about the CentOS mailing list