Is there a way to limit the memory used by a process in Ubuntu?
Is there a way to limit the memory used by a process in Ubuntu?
You can use the
ulimit -v unlimited
before calling the process. Also see if there is any restriction on the /etc/security/limits.conf file. This will limit the use of virtual memory. Apparently there is no way to set a resident memory constraint if you are not writing the program code itself.
Source: link