(Noone's biting on Matlab Answers, so I'm re-posting here)
Matlab 2013a CentOS 6.1 64-bit
Matlab (with GUI) allocates/reserves (not sure which is proper for VIRT) almost 4.2G of virtual memory when it launces, even though it's only using a few hundred M, as shown by top:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 15396 mgstauff 20 0 4131m 355m 75m S 1.0 0.6 0:14.97 MATLAB
The problem for me is that I'm running a Rocks cluster and want to limit the users by default to 3.9G of memory/virtual-memory usage/allocation. Rocks sets limits using ulimit. If I set 3.9G, Java/Matlab exits immediately on startup with out-of-memory error.
1) Can I setup my matlab installation to by default allocate/reserve less virtual memory for all users? If not, is there a manual way?
2) I'm assuming this allocation is not a fixed limit, but rather an initial allocation to have memory ready for use? That is, if users want more memory than shown above under VIRT while running matlab, this will expand?