Reputation: 1487
I am running MATLAB in my MAC OSX 10.12 (16 GB of memory). I want to increase the JVM 1.8 max heap for using MATLAB without issues. The current size I have is:
uintx MaxHeapSize := 4294967296 {product}
To increase, I used the following command to set 8GB max memory:
$java -Xms1g -Xmx8g MATLAB_R2016b.app
but I get this error
Error: Could not find or load main class MATLAB_R2016b.app
I don't know how to solve that. I googled it but still not finding the solution. Thank you
Upvotes: 0
Views: 14388
Reputation: 1666
You need to add -Xms1g -Xmx8g options in MATLAB specific file "java.opts" and recreate the app and run
Upvotes: 0
Reputation: 1426
Try system preferences-> java control panel-> java -> click on view... then modify the Runtime args for the user
Upvotes: 2