Java heap space error

조회 수: 12 (최근 30일)
Azura Hashim
Azura Hashim 2019년 10월 20일
답변: Swastik Sanjay Chaudhury 2020년 1월 3일
Hi,
Got the error below:
Exception in thread "Thread-35": java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:3236)
at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:118)
at java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93)
at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:153)
at com.ib.client.EMessage.<init>(EMessage.java:18)
at com.ib.client.EReader.readSingleMessage(EReader.java:138)
at com.ib.client.EReader.putMessageToQueue(EReader.java:83)
at com.ib.client.EReader.run(EReader.java:61)
Tried using the java heap clean I found on this forum (see below) but didnt' help. Any other tips please? Thanks.
function [] = jheapcl(verbose)
if nargin < 1
verbose = 0;
end
org.dt.matlab.utilities.JavaMemoryCleaner.clear(verbose)

답변 (1개)

Swastik Sanjay Chaudhury
Swastik Sanjay Chaudhury 2020년 1월 3일
Hello Azura,
Usually the problem can happen if Java Heap Memory set for MATLAB is too low. Please try increasing the java heap space following the Article mentioned below or start MATLAB in -nojvm mode.

카테고리

Help CenterFile Exchange에서 Graphics Object Programming에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by