Path: news.mathworks.com!not-for-mail
From: thomas.ibbotson@mathworks.co.uk
Newsgroups: comp.soft-sys.matlab
Subject: Re: Java heap space
Date: Thu, 18 Apr 2013 10:50:18 +0000 (UTC)
Organization: The MathWorks, Inc., Natick, MA 01760
Lines: 10
Message-ID: <kkoj5a$m4b$1@newscl01ah.mathworks.com>
References: <kkn4pr$o8r$1@newscl01ah.mathworks.com>
NNTP-Posting-Host: uk-tibbotso-deb6-64.dhcp.mathworks.com
X-Trace: newscl01ah.mathworks.com 1366282218 22667 172.16.27.192 (18 Apr 2013 10:50:18 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 18 Apr 2013 10:50:18 +0000 (UTC)
User-Agent: tin/1.9.6-20100522 ("Lochruan") (UNIX) (Linux/2.6.32-5-amd64 (x86_64))
Xref: news.mathworks.com comp.soft-sys.matlab:793813

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