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$>
References: <kkn4pr$o8r$>
X-Trace: 1366282218 22667 (18 Apr 2013 10:50:18 GMT)
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: comp.soft-sys.matlab:793813

Chuck37  <> 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: