How can I give a shell script specific amount of memory to run? If I run a java program I can use -Xmx. But what if it is a shell script?
1 Answer
You could look into limiting the available memory with ulimit -m XXX
(see ulimit -a
for current settings and available options). It's not a question of "giving memory to a shell script" but "limiting the maximum memory".
-
actually i notice every time i run "top" that it gets a specific amount of memory and wondered if i can tell the shell to allocate more memory for it... Sep 18, 2014 at 16:33