Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Java heap space

Subject: Java heap space

From: Chuck37

Date: 17 Apr, 2013 21:39:07

Message: 1 of 2

I'm trying to work with a large java object, about 5 GB. It will populate itself from file, and sometimes this works but often it crashes with a heap space error. I'm confused by this because I'm on a 64-bit linux box with ~164 GB of ram. I have the heap space slider in preference turned all the way up. What could be the problem?

Subject: Java heap space

From: thomas.ibbotson@mathworks.co.uk

Date: 18 Apr, 2013 10:50:18

Message: 2 of 2

Chuck37 <chuck3737@yahooremovethis.com> wrote:
> I'm trying to work with a large java object, about 5 GB. It will populate itself from file, and sometimes this works but often it crashes with a heap space error. I'm confused by this because I'm on a 64-bit linux box with ~164 GB of ram. I have the heap space slider in preference turned all the way up. What could be the problem?

You can increase the Java heap space using a java.opts file. This should
allow you to allocate more than the preferences dialog allows. See:

https://www.mathworks.com/support/solutions/en/data/1-18I2C/

Cheers,
Tom

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us