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

  • From: girishvenkatachalam@xxxxxxxxx (Girish Venkatachalam)
  • Date: Sat, 28 Sep 2013 19:28:56 +0530

setrlimit(2)?

On Sat, Sep 28, 2013 at 7:04 PM, km <srikrishnamohan at gmail.com> wrote:

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
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines



-- 
Gayatri Hitech
http://gayatri-hitech.com

Other related posts: