Limit the memory usage for a user running process in cron
Issue
- We would like to limit the memory usage for a user running in cronjob. How can we do it ?
- I found it's not working if I put the following line in /etc/security/limits.conf
lamccm hard memlock 524288
lamccm hard fsize 10240
Environment
- Red Hat Enterprise Linux 5
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.