[Ilugc] limit a /c++ executable memory usage

  • From: srikrishnamohan@xxxxxxxxx (km)
  • Date: Sat, 28 Sep 2013 19:04:26 +0530

Dear All.

How do I limit memory requirement of  a c/c++ executable in linux ?
Generally the program would takeup as much memory available and then it
gets killed by kernel.
How do I avoid this situation ?  and make it run under a specified memory
limit ? ofourse I udnertand that the run time increases accordingly.

pls let me know.
Thanks
Regards,
Krishna

Other related posts: