Increasing virtual memory for JVM in MCR. plzz help!

12 views (last 30 days)
I am getting an error while calling MCR through my .NET application that "could not start JVM because of low virtual memory","Could not reserve enough space for object heap". I have MCR 7.16
Thanks In advance.

Accepted Answer

Friedrich
Friedrich on 22 Mar 2012
Hi,
This is basically an out of memory error thrown by the JVM. You can either lower the heap space of the JVM, or move to a 64bit System with enough RAM.
For lowering the heap space see here:
put that java.opts in:
Or if you don't use any graphic on the MATLAB side, consider disabling the JVM completly:
  1 Comment
Aya
Aya on 8 May 2012
Friedrich, thank you SO much for this reply. I have been suffering with this issue for a couple days now. I disabled the JVM using the link you provided and now all is well!
:)

Sign in to comment.

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!