Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: java heap space error
Date: Tue, 2 Sep 2008 16:47:02 +0000 (UTC)
Organization: Mississippi State University
Lines: 32
Message-ID: <g9jqm6$brh$1@fred.mathworks.com>
References: <g9g31f$g6j$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1220374022 12145 172.30.248.37 (2 Sep 2008 16:47:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 2 Sep 2008 16:47:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1363347
Xref: news.mathworks.com comp.soft-sys.matlab:488272



"Dave Brackett" <davebrackett@hotmail.com> wrote in message
<g9g31f$g6j$1@fred.mathworks.com>...
> I am running a lengthy genetic algorithm optimisation but 
> after some time of running I get the following error 
> causing the optimisation to cease, even though Matlab still 
> says it is busy. Anyone got any ideas of how I can avoid 
> this? Thanks.
> 
> Exception in thread "TimerQueue" 
> java.lang.OutOfMemoryError: Java heap space
> 	at java.awt.EventQueue.invokeLater(Unknown Source)
> 	at javax.swing.SwingUtilities.invokeLater(Unknown 
> Source)
> 	at javax.swing.Timer.post(Unknown Source)
> 	at javax.swing.TimerQueue.postExpiredTimers(Unknown 
> Source)
> 	at javax.swing.TimerQueue.run(Unknown Source)
> 	at java.lang.Thread.run(Unknown Source)
> ??? Error using ==> gadsplot at 114
> A read error occurred while reading from lab 3.  This is 
> causing:
> java.lang.OutOfMemoryError: Java heap space
> 


Dave,

Look at this for increasing java heap space on your system
for matlab..
http://www.mathworks.com/support/solutions/data/1-18I2C.html

-Sachin