Immediately stop MATLAB if RAM usage exceeds a specified amount. Is there a way?

后端 未结 2 1493
夕颜
夕颜 2021-02-13 20:01

Title says it all.

Basically, I am getting tired of having to reset my comp every time I mistakenly make MATLAB use a large amount of RAM for a simulation with many par

2条回答
  •  温柔的废话
    2021-02-13 20:12

    You can set virtual memory quota for a process group. On Windows use a Job object. On *nix use ulimit. This works with any process, not just MatLab.

    See

    • Set Windows process (or user) memory limit
    • This answer shows it for Linux

提交回复
热议问题