MATLAB R2024a memory issues with Chromium Browser (JCEF) on Linux server
16 次查看(过去 30 天)
显示 更早的评论
Hi everyone.
We have installed R2024a rev. 5 on our multi-user (+100 users) Linux server, which is a power machine equipped with the following:
RHEL 8.8 ootpa
kernel 4.18.0-477.27.1.el8_8.x86_64
40 cores Intel(R) Xeon(R) Gold 6248 CPU @ 2.50GHz
1.2TB RAM
Previous Matlab releases at startup only require ~10GB of RAM; on the other hand, the new R2024a release at startup creates a lot of processes (e.g., MATLABWebUI), each requiring more than 40GB of Virtual Memory per user.
Mathworks confirmed that this is a normal behavior in a Linux server having dozens of cores and hundreds of GB of RAM (despite the system requirements for Matlab, available on their public website, only state of 8GB minimum required RAM)
I have to say that each MATLABWebUI process requires more than 40GB of Virtual Memory, although only a few GB are actually allocated in the RSS physical memory. BUT anyway, in our multi-user server, we must have mandatory memory limits per user, and we cannot afford to allow Matlab users to have such high limits on ulimits -v (as reader knows, ulimit only takes into account the whole Virtual Memory, and not the RSS)
Mathworks confirmed that such memory requirements are tied to the Java-based Chromium Browser (JCEF) default behavior, that is a Matlab GUI component on these new releases, and that in multi-core and huge RAM machines requires at startup a huge Virtual Memory.
Finally, my question: does anyone know a way to reduce the virtual memory requirements for the Chromium component of the Matlab GUI in R2024 Linux releases ?
cgroups or containers are not a solution in our case.
Best.
0 个评论
回答(1 个)
Kautuk Raj
2024-10-16
I understand you are looking to decrease the virtual memory usage of the Chromium components within the MATLAB GUI for the R2024a Linux versions.
According to a discussion on Stack Exchange at https://unix.stackexchange.com/questions/706243/why-google-chrome-is-reserving-terabytes-scale-virtual-memory, this level of virtual memory consumption is typical. The ‘MATLABWebUI’ process, which is a Java-based Chromium Browser (JCEF) process, handles the MATLAB UI and requires substantial virtual memory, leading to increased memory usage. These processes are essential for rendering the editor and other windows in MATLAB, such as the Add-On Explorer.
Consequently, reducing the virtual memory demands for these components isn't feasible. However, if graphical interfaces are not crucial for your work, you might consider launching MATLAB with the ‘-nodesktop’ flag.
另请参阅
类别
在 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!