.MathWorks/ServiceHost directory fills up for NFS-Installed MATLAB
조회 수: 16 (최근 30일)
이전 댓글 표시
Dear all,
we have a network-install running for MATLAB, where the MATLAB-installation (also in several versions) resides in a NFS-mounted (read-only) directory /global/....
I recognize that ~/.MathWorks/ServiceHost/COMPUTERNAME and ~/.MathWorks/ServiceHost/-mw_shared_installs/VERSION-NUMBER have a size of larger than 800MB. As we are using different computers per user (called client-server architecture on Linux), that means that we have large part of our 10GB user quota taken by Matlab for directories that basically contain the same stuff over and over again.
We installed Matlab in a network folder to prevent this from happening (i.e. we don't have to install it on every computer). Now, the situation gets even worse that we have 800MB for every computer used.
How can I prevent this from happening? This is a waist of ressources from my point of view!
Regards,
Christian Stemmer
댓글 수: 0
채택된 답변
Vanita
2025년 8월 21일
편집: Vanita
2025년 8월 21일
Hi Christian,
I understand that you are encountering with space issues when working with MATLAB Service Host. The large per-user directories are created by the MathWorks Service Host. This was addressed starting with MSH v2024.6.0.6, where hosts now share the same data directory. Updating MATLAB/MSH to this version (or newer) will prevent the duplication.
On clusters or HPC setups with network-mounted home directories, older MSH versions (< v2024.6.0.6) create a separate copy for each host. After upgrading, you can reclaim space by stopping MATLAB/MSH and removing the old directories,
killall MATLAB
killall MathWorksServiceHost
rm -rf ~/.MathWorks/ServiceHost
rm -rf ~/.MATLABConnector
For more details, please refer to the MATLAB Answers posts:
Hope this works!
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!