Tag Info

New answers tagged


The short answer is: ulimit -m 1000000 ulimit -v 1000000 which will limit each process to 1 GB RAM. Limiting the memory the "right" way is in practice extremely complicated: Let us say you have 1 GB RAM. You start a process every 10 seconds and each process uses 1 MB more every second. So after 140 seconds you will have something like this: 10██▎ ...

Top 50 recent answers are included