Monday, March 02, 2015

[Solved] Out of Memory error in Matlab solution, increase memory in java

Matlab Out of Memory error:

The error in Matlab is due less memory allocated to matlab

In matlab type below command to know maximum allocated memory.
>> memory
  Maximum possible array:             583 MB 
  Memory available for all arrays:   1515 MB 
  Memory used by MATLAB:              386 MB 
  Physical Memory (RAM):             2014 MB 
 

 Solutions:

1. To increase memory, we need to increase memory allocated to java virtual machine.

In matlab increase java heap memory to higher value

File-> Preferences-> General-> Java Heap Memory.


2. Set 3GB Switch in Windows operating system

https://www.google.com/search?q=3GB+switch+in+windows&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a&channel=sb

 3. Increase windows virtual swap memory space

(Right click )My Computer --> properties -> advanced system settings -> click settings in performance tab -> In performance options click advance -> change -> (set a higher value)

Also check link

http://www.mathworks.in/help/matlab/matlab_prog/resolving-out-of-memory-errors.html


Tags:

matlab java out of memory error, how to fix out of memory error in matlab, how to solve out of memory error in matlab,error using == mtimes out of memory. type help memory for your options,how to allocate more memory to matlab,matlab out of memory. type help memory for your options,

No comments: