Limit the memory usage for a user running process in cron

Solution Unverified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content