Change Java Heap Memory Settings Without Starting Matlab?
古いコメントを表示
I am running Matlab R2012a on a 32 bit Linux box (Ubuntu version 10.04). I recently set the Java Heap Memory settings to ~ 6 GB, as I had forgotten that this machine was a 32 bit build. When I try to launch matlab from the command line now (matlab -nosplash), I get an error:
Invalid maximum heap size: -Xmx6057m
The specified size exceeds the maximum representable size.
Fatal Error on startup: Unable to start the JVM because of an invalid Java option.
I did some Googling and found out that the problem is my available Java heap space can't exceed 1.6 GB since this is a 32 bit machine, which is fine. However, I cannot restart matlab to get to the preferences menu to reset the number to something more reasonable (like 1.5 GB), since it keeps crashing out on launch with the above error.
Is there a configuration file somewhere in my Matlab directory where this preference value gets saved, so I can just manually rewrite the config file and start Matlab again?
Or is there a way to force it to reset to the default allocated Java Heap Memory size?
Thanks for any answers, Brady C. Jackson
1 件のコメント
Brady Jackson
2013 年 5 月 2 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Startup and Shutdown についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!