- Before starting MATLAB, set "MATLAB_DISABLE_SERVICEHOST=true" (e.g., export MATLAB_DISABLE_SERVICEHOST=true; matlab).
- Edit your shell startup script (e.g., .bashrc) and add export "MATLAB_DISABLE_SERVICEHOST=true".
Disable MATLABConnector on Linux Cluster
19 ビュー (過去 30 日間)
古いコメントを表示
I run a Linux Cluster and my users run hundereds of jobs, and for each job Matlab R2024a creates ~/.MathWorks/ServiceHost/<hostname>/v2024.2.0.3 as well as ~/.MathWorks/ServiceHost/<hostname>/logs
This is wasting space and also causing about 20% of jobs to hang indefintely with the follwing in the logs:
00015945 2024-05-21 16:23:20 0x00007fb526ab3640 ddux D logging JSON: MSH_INSTALL_ERROR
{"logDDUXData":{"keyValues":{"error_message":"Extract task invalid argument error: Package cannot be read or empty.","install_timestamp":"2024-05-21 14:17:13.666","post_background_update_code":"","post_install_code":"","pre_uninstall_code":"","start_msh_code":"","stop_msh_code":"","triggered_by":"TRIPWIRE_DESKTOP_SERVICES","update_version":"2024.2.0.3"},"product":""}}
00015946 2024-05-21 16:23:20 0x00007fb526ab3640 ddux D Added to event stats, eventkey [ MSH_INSTALL_ERROR ], bytes [ 370 ], count [ 1 ]
00015947 2024-05-21 16:23:20 0x00007fb526ab3640 ddux D logging JSON: MSH_INSTALL_ERROR
{"logDDUXData":{"keyValues":{"error_message":"Extract task invalid argument error: Package cannot be read or empty.","install_timestamp":"2024-05-21 14:17:13.668","post_background_update_code":"","post_install_code":"","pre_uninstall_code":"","start_msh_code":"","stop_msh_code":"","triggered_by":"TRIPWIRE_DESKTOP_SERVICES","update_version":"2024.2.0.3"},"product":""}}
Matlab as a package is available from a central folder, I don't want or need the above to happen. How do I disable this? On our older cluster this did not happen with R2022 etc.
0 件のコメント
回答 (1 件)
UDAYA PEDDIRAJU
2024 年 6 月 14 日
Hi Andrew,
To prevent directory creation and job stalls caused by MATLABConnector (R2024a Linux cluster), disable it using one of these methods:
Apart from this I found following related query in the community: https://www.mathworks.com/matlabcentral/answers/2050132-how-can-i-permanently-disable-matlab-drive-in-linux and https://www.mathworks.com/matlabcentral/answers/452867-how-can-i-log-out-of-matlab-drive-connector
Caution: Disabling ServiceHost might affect features like cloud connectivity. The solutions should give an idea on how to proceed.
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!