After exiting MATLAB, it doesn't truly terminate in the Task Manager.
53 views (last 30 days)
Show older comments
After exiting MATLAB, it doesn't truly terminate in the Task Manager.
Even after closing the MATLAB software (including using the exit command), the memory usage remains the same as when MATLAB was running, and the related processes don't exit.
When MATLAB is reopened, new related tasks are created.
Consequently, after repeatedly opening and closing the software several times, the memory becomes completely full, causing the computer to malfunction.
18 Comments
Janis
on 2 Dec 2025 at 12:17
Edited: Janis
on 2 Dec 2025 at 12:18
I tested a little further. Correction: It has nothing to do directly with -batch -r command line callls. Happens also with open Matlab UI.
At least: Matlab 2025a and b on Windows Server 2025 generally has a problem quitting after having run our simulation.
I open Matlab UI. I run simulation. It finishes as it should. I execute quit(0, 'force') or without force -> UI closes but idling matlab.exe processes remain open and occupy RAM.
Never happened in years with simulation in 2019b.
Walter Roberson
on 2 Dec 2025 at 21:33
Datapoint:
I installed Windows Server 2025 Standard Evaluation inside a virtual machine, and installed MATLAB R2025b inside of it.
There was a notable delay in cleaning up the MATLAB process after quitting, but the most old processes I ever got was 2 (with one of them promptly ending.) One of the processes did seem a little stuck at first, but went away when I waited longer.
Answers (0)
See Also
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!