How to set a RAM limit, so that if it gets passed, the simulation gets killed?

18 views (last 30 days)
Hello,
I just want to know if there's a way to set a memory limit for MATLAB, so that it doesn't get too high on memory and crashes the computer or the server.
Thank you !

Accepted Answer

Mhamad Hantro
Mhamad Hantro on 13 Oct 2022
Edited: Mhamad Hantro on 13 Oct 2022
A summary for the answer posted by @Walter Roberson is that the solution for windows can be found on the link below:

More Answers (1)

Torsten
Torsten on 12 Oct 2022
  10 Comments
Mhamad Hantro
Mhamad Hantro on 13 Oct 2022
I did some quick search and found this answer posted last year, which redirected me to the same link you've sent, which apparently means that there's still no official tool from Microsoft to this yet.
I will try the third-party tools,
Thank you all !
Mhamad Hantro
Mhamad Hantro on 13 Oct 2022
Edited: Mhamad Hantro on 13 Oct 2022
@Walter Roberson If you can post your reply as an answer so that I accept it and delete the answer I posted now, the solution was given by you afterall.

Sign in to comment.

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!