Got Questions? Get Answers.
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 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

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