Thread Subject: java heap space error

Subject: java heap space error

From: Dave Brackett

Date: 1 Sep, 2008 06:45:03

Message: 1 of 3

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

Subject: java heap space error

From: Sachin

Date: 2 Sep, 2008 16:47:02

Message: 2 of 3

"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

Subject: java heap space error

From: Dave Brackett

Date: 3 Sep, 2008 15:32:01

Message: 3 of 3

"Sachin " <skbhate@ngi.msstate.edu> wrote in message
<g9jqm6$brh$1@fred.mathworks.com>...
> "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

Thanks I have changed that now, so hopefully won't get the
same error again. cheers.

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

Tag Activity for This Thread
Tag Applied By Date/Time
java heap space Dave Brackett 1 Sep, 2008 17:12:53
genetic algorithm Dave Brackett 1 Sep, 2008 17:12:53
rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com