After exiting MATLAB, it doesn't truly terminate in the Task Manager.

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

What on earth is going on? Why can't I completely shut down MATLAB?
Is this Windows 11?
dpb
dpb 2025년 7월 9일
편집: dpb 2025년 7월 9일
Are there any processes after a reboot, maybe?
There seem to be so many issues from R2024 on, I've not ventured past R2022b and am still on Win10 so no direct applicability to compare, but I wonder if Mathworks has tried to do something clever about having a "fast start" stub remain in memory that has issues.
I don't see any processes left after opening/closing either R2021b or R2022b in Win10 for comparison with earlier releases/OS(?) behavior.
dpb
dpb 2025년 7월 10일
편집: dpb 2025년 7월 10일
What about any processes loaded on starrtup?
I think your only chance here is to call Mathworks support directly. It would seem if this were a universal problem, it would have raised a large number of complaints before...
I encountered the same issue on two computers running Windows 11: high memory usage that couldn't be turned off, which made it impossible to use them smoothly. I had no choice but to reluctantly roll back to the 2024 version.
Stephen23
Stephen23 2025년 7월 12일
편집: Stephen23 2025년 7월 12일
Contact technical support. Make a bug report:
If you do not tell TMW what problems you experience with R2025a, then they cannot fix them.
Is there anyone else with a similar situation? Or am I the only exception?
dpb
dpb 2025년 7월 18일
편집: dpb 2025년 7월 18일
Certainly nobody else has chimed in with a "Me, too!" and as I observed previously, it would seem if this were a widespread phenomenon it would have been a major issue. As also noted, I think the only possible solution here is to contact TMW support; the Answers forum is not the official support channel.
I recently installed Matlab 2025a, and I have the same trouble, not only that, it also consumes higher RAM than the previous releases. I think it is because of New Desktop (theme) of Matlab.
As suggested, above, submit this to Mathworks as an official support request/bug at <Product Support Page>
Janis
Janis 2025년 12월 1일
편집: Janis 2025년 12월 1일
having same problem with command line calls with -r and -batch. Same in 2025a and 2025b. I'm gonna report this. Matlab.exe processes are left open. Matlab window might close (-r). With -batch it doesn't finish (powershell stuck)).
I realized in my CI pipelines. Workaround ist to let matlab taskkill itself (exit and quit don't work properly) and read exit code from a previously written .txt .
I am not observing this on Windows 10.
I am not observing this on Windows 11 either. I do see that the MATLAB process takes several seconds to disappear, but not that many.
Heran Wang
Heran Wang 2025년 12월 2일
이동: Dyuman Joshi 2025년 12월 2일
MATLAB 2025b doesn't have this issue! A very good release.
Janis
Janis 2025년 12월 2일
편집: Janis 2025년 12월 2일
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.
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.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

릴리스

R2025a

질문:

2025년 7월 9일

댓글:

2025년 12월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by