Java heap size is not accessing all available RAM
8 visualizaciones (últimos 30 días)
Atifah el 28 de Abr. de 2017
I am currently running 64-bit Matlab (making use of 64-bit Java) on a server with 128GB of RAM. Matlab version is R2016a.
In my Matlab preferences, I cannot increase the Java heap size beyond 32GB - this is causing my code to fail (it is unable to read ~70 million rows of data from SQL).
This has worked in the past, and the java heap size setting gave me the option to slide across to 128GB, but as I said it is now only letting me increase to 32GB.
I am not in a position to change the code - this was written by someone else, and I do not have the sign off to change this at the moment.
Any help will be appreciated.
Prannay Jain el 1 de Mayo de 2017
If the maximum value, allowed by this slider, is too small for the requirements, it could be directly adjusted by editing:
You can get this path using,
1. Open this file with a text editor.
2. Modify "JavaMemHeapMax" value. It should look like
3. Restart MATLAB for changes to reflect.
The Preferences UI will display a warning in Java Heap Memory, that it is larger than recommended.