Reputation: 4446
I tend to have Matlab open all the time, just in case I need to do some quick calculations. But recently I've been programming in Java, and with uncanny consistency, if I run my Java application off and on for an hour or so (as one tends to do when debugging), then Matlab throws some error and becomes unresponsive.
The error tends to be a Java out of memory error, but I've seen other, more exotic errors thrown as well.
This this a normal/known thing? Either way, is there some way I might prevent my Java work from interfering with my Matlab instance?
Note that this isn't even unique to my Java applications, pretty much all Java apps I download eventually cause the same problems.
Upvotes: 2
Views: 772
Reputation: 632
Increase the Java heap size in MATLAB so that MATLAB doesn’t crash.
Works cited: http://blogs.mathworks.com/community/2010/04/26/controlling-the-java-heap-size/
Upvotes: 3