MATLAB: HUGE memory usage at matlab startup

MATLABmemory

Lately, when starting matlab (R2015b), I'm noticing that it uses an incredibly huge amount of memory, before even doing anything or loading any data. Generally, memory usage is between 2.5Gb and 3GB at startup. Additionally, when using parpool to create threads, each thread starts out using 2.5Gb of RAM before doing anything. Has anyone ever encountered this, any way to fix it? This (especially with parpool) is really limiting what I can do.
Thanks!

Best Answer

Problem solved, the TMP directory had a huge number of files, by changing TMP to a different folder, matlab is now only using 350MB at startup
Related Question