Increase Memory in Matlab?

조회 수: 12 (최근 30일)
Nitin
Nitin 2012년 10월 8일
Hello,
I get some out of memory error when I am loading Matfiles (~20,000) from a folder to Matlab.
The error is:
Exception in thread "Thread-31" java.lang.OutOfMemoryError: GC overhead limit exceeded at java.lang.String.substring(Unknown Source)
----------------------------------------------------------------------
When I run the command, memory:
Maximum possible array: 39487 MB (4.140e+010 bytes) *
Memory available for all arrays: 39487 MB (4.140e+010 bytes) *
Memory used by MATLAB: 667 MB (6.992e+008 bytes)
Physical Memory (RAM): 24574 MB (2.577e+010 bytes)
Limited by System Memory (physical + swap file) available.
---------------------------------------------------------------------------
I would like to know if I increase the memory available to Matlab, would this fix the problem? Is it recommendable ? If yes, how?
I am running a Windows 7 64 bit.
Thanks a lot in advance.
Cheers,

채택된 답변

Walter Roberson
Walter Roberson 2012년 10월 8일
The problem appears to be in the memory allocated for java, rather than for MATLAB itself. There have been a few questions about how to increase the java memory, but I do not recall the exact solution at the moment; I think it involved the java.opts file.
  댓글 수: 2
Nitin
Nitin 2012년 10월 15일
Yes, it was a java memory allocation issue.
Increasing the size of the Java Heap Memory fixed the problem.
Thanks.
Walter Roberson
Walter Roberson 2012년 10월 15일
Thanks for finding the link and posting it!

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Andreas Goser
Andreas Goser 2012년 10월 8일
I suggest that you focus on reducing the amout of data, not increasing the memory. It depends on your application, but maybe you do not have to have all 20000 files in memory to do your task.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by