DSPRelated.com
Forums

Matlab caused computer to slow down

Started by Richard Dybowski January 31, 2003
Hi,

I am using Matlab Release 12.1 under Windows 98 SE. Recently, I ran an
iterative optimization routine in Matlab for several days and found that
this caused my computer to slow down considerably. For example, the clock
at the bottom right-hand corner of the Windows desktop started to slow down
significantly. Also, when I tried to move the mouse, the corresponding
pointer on the screen moved incredibly slowly. And the computer remained in
this state even when the optimization routine had finished. What is the
cause of this problem, and what can I do to prevent it happening again?

Thanks,

Richard

-------------------------------
Richard Dybowski, 143 Village Way, Pinner, Middlesex HA5 5AA, UK
Tel (mobile): 079 76 25 00 92



Richard-

The cause would be a memory leak like any other 100s of software packages out
there.
How to fix? Start with a minimum shell of your program and run for days to
verify
it's Ok, then start adding stuff back in until you find the culprit lines of
code.
Then submit to MathWorks. Hopefully it turns out to be just one function call
or
another, or a simple sequence that not many people tend to do.

Jeff Brower
DSP sw/hw engineer
Signalogic

Richard Dybowski wrote:
>
> Hi,
>
> I am using Matlab Release 12.1 under Windows 98 SE. Recently, I ran an
> iterative optimization routine in Matlab for several days and found that
> this caused my computer to slow down considerably. For example, the clock
> at the bottom right-hand corner of the Windows desktop started to slow down
> significantly. Also, when I tried to move the mouse, the corresponding
> pointer on the screen moved incredibly slowly. And the computer remained in
> this state even when the optimization routine had finished. What is the
> cause of this problem, and what can I do to prevent it happening again?
>
> Thanks,
>
> Richard
>
> -------------------------------
> Richard Dybowski, 143 Village Way, Pinner, Middlesex HA5 5AA, UK
> Tel (mobile): 079 76 25 00 92



Hi,

Did you try with the -nojvm option. This does not use
the java virtual machine and significantly reduces
memory usage. For compute intensive applications I
think it is useful to start matlab with this option.

Navan --- Richard Dybowski <> wrote:
> Hi,
>
> I am using Matlab Release 12.1 under Windows 98 SE.
> Recently, I ran an
> iterative optimization routine in Matlab for several
> days and found that
> this caused my computer to slow down considerably.
> For example, the clock
> at the bottom right-hand corner of the Windows
> desktop started to slow down
> significantly. Also, when I tried to move the mouse,
> the corresponding
> pointer on the screen moved incredibly slowly. And
> the computer remained in
> this state even when the optimization routine had
> finished. What is the
> cause of this problem, and what can I do to prevent
> it happening again?
>
> Thanks,
>
> Richard
>
> -------------------------------
> Richard Dybowski, 143 Village Way, Pinner, Middlesex
> HA5 5AA, UK
> Tel (mobile): 079 76 25 00 92 >
> _____________________________________
> Note: If you do a simple "reply" with your email
> client, only the author of this message will receive
> your answer. You need to do a "reply all" if you
> want your answer to be distributed to the entire
> group.
>
> _____________________________________
> About this discussion group:
>
> To Join:
>
> To Post:
>
> To Leave:
>
> Archives: http://www.yahoogroups.com/group/matlab
>
> More DSP-Related Groups:
> http://www.dsprelated.com/groups.php3
>
> ">http://docs.yahoo.com/info/terms/


__________________________________________________


Matlab leaks. See.

mathworks.com/support/solutions/data/27524.shtml

However, The last time I added an anti-leak patch from Mathworks it didn't
work. That was on a linux box with 1 gig of RAM. It may even have been the
same patch, but I'll have to get home to check that.

Dinoj On Fri, 31 Jan 2003, Richard Dybowski wrote:

> Hi,
>
> I am using Matlab Release 12.1 under Windows 98 SE. Recently, I ran an
> iterative optimization routine in Matlab for several days and found that
> this caused my computer to slow down considerably. For example, the clock
> at the bottom right-hand corner of the Windows desktop started to slow down
> significantly. Also, when I tried to move the mouse, the corresponding
> pointer on the screen moved incredibly slowly. And the computer remained in
> this state even when the optimization routine had finished. What is the
> cause of this problem, and what can I do to prevent it happening again?
>
> Thanks,
>
> Richard
>
> -------------------------------
> Richard Dybowski, 143 Village Way, Pinner, Middlesex HA5 5AA, UK
> Tel (mobile): 079 76 25 00 92 >
> _____________________________________
> Note: If you do a simple "reply" with your email client, only the author of
this message will receive your answer. You need to do a "reply all" if you want
your answer to be distributed to the entire group.
>
> _____________________________________
> About this discussion group:
>
> To Join:
>
> To Post:
>
> To Leave:
>
> Archives: http://www.yahoogroups.com/group/matlab
>
> More DSP-Related Groups: http://www.dsprelated.com/groups.php3
>
> ">http://docs.yahoo.com/info/terms/


Navaneetha Krishnan-

Do all versions of MATLAB now have a core Java virtual machine? Under
Win9x/WinXP,
what is the advantage in this? Can the Java machine be disabled under Linux
also?

Jeff Brower
DSP sw/hw engineer
Signalogic

> Hi,
>
> Did you try with the -nojvm option. This does not use
> the java virtual machine and significantly reduces
> memory usage. For compute intensive applications I
> think it is useful to start matlab with this option.
>
> Navan
>
> --- Richard Dybowski <> wrote:
> > Hi,
> >
> > I am using Matlab Release 12.1 under Windows 98 SE.
> > Recently, I ran an
> > iterative optimization routine in Matlab for several
> > days and found that
> > this caused my computer to slow down considerably.
> > For example, the clock
> > at the bottom right-hand corner of the Windows
> > desktop started to slow down
> > significantly. Also, when I tried to move the mouse,
> > the corresponding
> > pointer on the screen moved incredibly slowly. And
> > the computer remained in
> > this state even when the optimization routine had
> > finished. What is the
> > cause of this problem, and what can I do to prevent
> > it happening again?
> >
> > Thanks,
> >
> > Richard
> >
> > -------------------------------
> > Richard Dybowski, 143 Village Way, Pinner, Middlesex
> > HA5 5AA, UK
> > Tel (mobile): 079 76 25 00 92




Hi,
By versions if you mean platforms, then asnwer is yes.
It can be disabled in linux too. The fancy features,
in the desktop, like directory browser, command
history, workspace browser, tab completion, wont work
without jvm. The m-file editor, debugger and GUIDE
also wont work. In linux you wont get any desktop. It
will be only command line. You will still have all
plotting functions.

The advantages are Matlab will start faster and will
use less memory.

Navan

--- Jeff Brower <> wrote:
> Navaneetha Krishnan-
>
> Do all versions of MATLAB now have a core Java
> virtual machine? Under Win9x/WinXP,
> what is the advantage in this? Can the Java machine
> be disabled under Linux also?
>
> Jeff Brower
> DSP sw/hw engineer
> Signalogic
>
> > Hi,
> >
> > Did you try with the -nojvm option. This does not
> use
> > the java virtual machine and significantly reduces
> > memory usage. For compute intensive applications I
> > think it is useful to start matlab with this
> option.
> >
> > Navan
> >
> > --- Richard Dybowski <>
> wrote:
> > > Hi,
> > >
> > > I am using Matlab Release 12.1 under Windows 98
> SE.
> > > Recently, I ran an
> > > iterative optimization routine in Matlab for
> several
> > > days and found that
> > > this caused my computer to slow down
> considerably.
> > > For example, the clock
> > > at the bottom right-hand corner of the Windows
> > > desktop started to slow down
> > > significantly. Also, when I tried to move the
> mouse,
> > > the corresponding
> > > pointer on the screen moved incredibly slowly.
> And
> > > the computer remained in
> > > this state even when the optimization routine
> had
> > > finished. What is the
> > > cause of this problem, and what can I do to
> prevent
> > > it happening again?
> > >
> > > Thanks,
> > >
> > > Richard


__________________________________________________



Navaneetha Krishnan-

Thanks for the summary. To me it's interesting that The MathWorks would depend
so
much on Java, which has an uncertain future in both the market and the courts.

-Jeff

>
> Hi,
> By versions if you mean platforms, then asnwer is yes.
> It can be disabled in linux too. The fancy features,
> in the desktop, like directory browser, command
> history, workspace browser, tab completion, wont work
> without jvm. The m-file editor, debugger and GUIDE
> also wont work. In linux you wont get any desktop. It
> will be only command line. You will still have all
> plotting functions.
>
> The advantages are Matlab will start faster and will
> use less memory.
>
> Navan
>
> --- Jeff Brower <> wrote:
> > Navaneetha Krishnan-
> >
> > Do all versions of MATLAB now have a core Java
> > virtual machine? Under Win9x/WinXP,
> > what is the advantage in this? Can the Java machine
> > be disabled under Linux also?
> >
> > Jeff Brower
> > DSP sw/hw engineer
> > Signalogic
> >
> > > Hi,
> > >
> > > Did you try with the -nojvm option. This does not
> > use
> > > the java virtual machine and significantly reduces
> > > memory usage. For compute intensive applications I
> > > think it is useful to start matlab with this
> > option.
> > >
> > > Navan
> > >
> > > --- Richard Dybowski <>
> > wrote:
> > > > Hi,
> > > >
> > > > I am using Matlab Release 12.1 under Windows 98
> > SE.
> > > > Recently, I ran an
> > > > iterative optimization routine in Matlab for
> > several
> > > > days and found that
> > > > this caused my computer to slow down
> > considerably.
> > > > For example, the clock
> > > > at the bottom right-hand corner of the Windows
> > > > desktop started to slow down
> > > > significantly. Also, when I tried to move the
> > mouse,
> > > > the corresponding
> > > > pointer on the screen moved incredibly slowly.
> > And
> > > > the computer remained in
> > > > this state even when the optimization routine
> > had
> > > > finished. What is the
> > > > cause of this problem, and what can I do to
> > prevent
> > > > it happening again?
> > > >
> > > > Thanks,
> > > >
> > > > Richard



A minor comment - I use the nojvm option all the time when running matlab
with linux, and I do get tab completion*. And some command history - it's
saved (ie I can access it with the up arrow or tab) but scrolling is
limited to what's available with xterm.

The bright side - only crashing once every three months instead of three
times a day (with a memory intensive project I had) - is worth it though.

Dinoj

*Usually. Sometimes it goes into this mode where whenever I press up to
view the previous command, I just get AO (or was it OA?) for every
keypress. The other arrows also produce similar junk. I don't
remember what tabbing does. Restarting Matlab usually works. Is there a
way out of that?
On Sun, 2 Feb 2003, navaneetha krishnan wrote:

> Hi,
> By versions if you mean platforms, then asnwer is yes.
> It can be disabled in linux too. The fancy features,
> in the desktop, like directory browser, command
> history, workspace browser, tab completion, wont work
> without jvm. The m-file editor, debugger and GUIDE
> also wont work. In linux you wont get any desktop. It
> will be only command line. You will still have all
> plotting functions.
>
> The advantages are Matlab will start faster and will
> use less memory.
>
> Navan
>
> --- Jeff Brower <> wrote:
> > Navaneetha Krishnan-
> >
> > Do all versions of MATLAB now have a core Java
> > virtual machine? Under Win9x/WinXP,
> > what is the advantage in this? Can the Java machine
> > be disabled under Linux also?
> >
> > Jeff Brower
> > DSP sw/hw engineer
> > Signalogic
> >
> > > Hi,
> > >
> > > Did you try with the -nojvm option. This does not
> > use
> > > the java virtual machine and significantly reduces
> > > memory usage. For compute intensive applications I
> > > think it is useful to start matlab with this
> > option.
> > >
> > > Navan
> > >
> > > --- Richard Dybowski <>
> > wrote:
> > > > Hi,
> > > >
> > > > I am using Matlab Release 12.1 under Windows 98
> > SE.
> > > > Recently, I ran an
> > > > iterative optimization routine in Matlab for
> > several
> > > > days and found that
> > > > this caused my computer to slow down
> > considerably.
> > > > For example, the clock
> > > > at the bottom right-hand corner of the Windows
> > > > desktop started to slow down
> > > > significantly. Also, when I tried to move the
> > mouse,
> > > > the corresponding
> > > > pointer on the screen moved incredibly slowly.
> > And
> > > > the computer remained in
> > > > this state even when the optimization routine
> > had
> > > > finished. What is the
> > > > cause of this problem, and what can I do to
> > prevent
> > > > it happening again?
> > > >
> > > > Thanks,
> > > >
> > > > Richard > __________________________________________________ > _____________________________________
> Note: If you do a simple "reply" with your email client, only the author of
this message will receive your answer. You need to do a "reply all" if you want
your answer to be distributed to the entire group.
>
> _____________________________________
> About this discussion group:
>
> To Join:
>
> To Post:
>
> To Leave:
>
> Archives: http://www.yahoogroups.com/group/matlab
>
> More DSP-Related Groups: http://www.dsprelated.com/groups.php3
>
> ">http://docs.yahoo.com/info/terms/



Hi,
I was not fully correct in my earlier mail wrt to tab
completion. By command history I meant the command
history tab(window), not the recall of previous
commands using arrow keys.

Navan

--- Dinoj Surendran <> wrote:
> A minor comment - I use the nojvm option all the
> time when running matlab
> with linux, and I do get tab completion*. And some
> command history - it's
> saved (ie I can access it with the up arrow or tab)
> but scrolling is
> limited to what's available with xterm.
>
> The bright side - only crashing once every three
> months instead of three
> times a day (with a memory intensive project I had)
> - is worth it though.
>
> Dinoj
>
> *Usually. Sometimes it goes into this mode where
> whenever I press up to
> view the previous command, I just get AO (or was it
> OA?) for every
> keypress. The other arrows also produce similar
> junk. I don't
> remember what tabbing does. Restarting Matlab
> usually works. Is there a
> way out of that? >
> On Sun, 2 Feb 2003, navaneetha krishnan wrote:
>
> > Hi,
> > By versions if you mean platforms, then asnwer is
> yes.
> > It can be disabled in linux too. The fancy
> features,
> > in the desktop, like directory browser, command
> > history, workspace browser, tab completion, wont
> work
> > without jvm. The m-file editor, debugger and GUIDE
> > also wont work. In linux you wont get any desktop.
> It
> > will be only command line. You will still have all
> > plotting functions.
> >
> > The advantages are Matlab will start faster and
> will
> > use less memory.
> >
> > Navan
> >
> > --- Jeff Brower <> wrote:
> > > Navaneetha Krishnan-
> > >
> > > Do all versions of MATLAB now have a core Java
> > > virtual machine? Under Win9x/WinXP,
> > > what is the advantage in this? Can the Java
> machine
> > > be disabled under Linux also?
> > >
> > > Jeff Brower
> > > DSP sw/hw engineer
> > > Signalogic
> > >
> > > > Hi,
> > > >
> > > > Did you try with the -nojvm option. This does
> not
> > > use
> > > > the java virtual machine and significantly
> reduces
> > > > memory usage. For compute intensive
> applications I
> > > > think it is useful to start matlab with this
> > > option.
> > > >
> > > > Navan
> > > >
> > > > --- Richard Dybowski
> <>
> > > wrote:
> > > > > Hi,
> > > > >
> > > > > I am using Matlab Release 12.1 under Windows
> 98
> > > SE.
> > > > > Recently, I ran an
> > > > > iterative optimization routine in Matlab for
> > > several
> > > > > days and found that
> > > > > this caused my computer to slow down
> > > considerably.
> > > > > For example, the clock
> > > > > at the bottom right-hand corner of the
> Windows
> > > > > desktop started to slow down
> > > > > significantly. Also, when I tried to move
> the
> > > mouse,
> > > > > the corresponding
> > > > > pointer on the screen moved incredibly
> slowly.
> > > And
> > > > > the computer remained in
> > > > > this state even when the optimization
> routine
> > > had
> > > > > finished. What is the
> > > > > cause of this problem, and what can I do to
> > > prevent
> > > > > it happening again?
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Richard
> >
> >
> > __________________________________________________
> >
> >
> >
> > _____________________________________
> > Note: If you do a simple "reply" with your email
> client, only the author of this message will receive
> your answer. You need to do a "reply all" if you
> want your answer to be distributed to the entire
> group.
> >
> > _____________________________________
> > About this discussion group:
> >
> > To Join:
> >
> > To Post:
> >
> > To Leave:
> >
> > Archives: http://www.yahoogroups.com/group/matlab
> >
> > More DSP-Related Groups:
> http://www.dsprelated.com/groups.php3
> >
> > ">http://docs.yahoo.com/info/terms/
> >
> >
> _____________________________________
> Note: If you do a simple "reply" with your email
> client, only the author of this message will receive
> your answer. You need to do a "reply all" if you
> want your answer to be distributed to the entire
> group.
>
> _____________________________________
> About this discussion group:
>
> To Join:
>
> To Post:
>
> To Leave:
>
> Archives: http://www.yahoogroups.com/group/matlab
>
> More DSP-Related Groups:
> http://www.dsprelated.com/groups.php3
>
> ">http://docs.yahoo.com/info/terms/


__________________________________________________


Pretty interesting discussion......
Navan,
Is it that Matlab uses JAVA for all the core computations/fancy-GUI-stuff when
"-nojvm" is not used?
-priyank

--- Dinoj Surendran <> wrote:
> A minor comment - I use the nojvm option all the time when running matlab
> with linux, and I do get tab completion*. And some command history - it's
> saved (ie I can access it with the up arrow or tab) but scrolling is
> limited to what's available with xterm.
>
> The bright side - only crashing once every three months instead of three
> times a day (with a memory intensive project I had) - is worth it though.
>
> Dinoj
>
> *Usually. Sometimes it goes into this mode where whenever I press up to
> view the previous command, I just get AO (or was it OA?) for every
> keypress. The other arrows also produce similar junk. I don't
> remember what tabbing does. Restarting Matlab usually works. Is there a
> way out of that? >
> On Sun, 2 Feb 2003, navaneetha krishnan wrote:
>
> > Hi,
> > By versions if you mean platforms, then asnwer is yes.
> > It can be disabled in linux too. The fancy features,
> > in the desktop, like directory browser, command
> > history, workspace browser, tab completion, wont work
> > without jvm. The m-file editor, debugger and GUIDE
> > also wont work. In linux you wont get any desktop. It
> > will be only command line. You will still have all
> > plotting functions.
> >
> > The advantages are Matlab will start faster and will
> > use less memory.
> >
> > Navan
> >
> > --- Jeff Brower <> wrote:
> > > Navaneetha Krishnan-
> > >
> > > Do all versions of MATLAB now have a core Java
> > > virtual machine? Under Win9x/WinXP,
> > > what is the advantage in this? Can the Java machine
> > > be disabled under Linux also?
> > >
> > > Jeff Brower
> > > DSP sw/hw engineer
> > > Signalogic
> > >
> > > > Hi,
> > > >
> > > > Did you try with the -nojvm option. This does not
> > > use
> > > > the java virtual machine and significantly reduces
> > > > memory usage. For compute intensive applications I
> > > > think it is useful to start matlab with this
> > > option.
> > > >
> > > > Navan
> > > >
> > > > --- Richard Dybowski <>
> > > wrote:
> > > > > Hi,
> > > > >
> > > > > I am using Matlab Release 12.1 under Windows 98
> > > SE.
> > > > > Recently, I ran an
> > > > > iterative optimization routine in Matlab for
> > > several
> > > > > days and found that
> > > > > this caused my computer to slow down
> > > considerably.
> > > > > For example, the clock
> > > > > at the bottom right-hand corner of the Windows
> > > > > desktop started to slow down
> > > > > significantly. Also, when I tried to move the
> > > mouse,
> > > > > the corresponding
> > > > > pointer on the screen moved incredibly slowly.
> > > And
> > > > > the computer remained in
> > > > > this state even when the optimization routine
> > > had
> > > > > finished. What is the
> > > > > cause of this problem, and what can I do to
> > > prevent
> > > > > it happening again?
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Richard
> >
> >
> > __________________________________________________
> >
> >
> > _____________________________________
> > Note: If you do a simple "reply" with your email client, only the author of
> this message will receive your answer. You need to do a "reply all" if you
> want your answer to be distributed to the entire group.
> >
> > _____________________________________
> > About this discussion group:
> >
> > To Join:
> >
> > To Post:
> >
> > To Leave:
> >
> > Archives: http://www.yahoogroups.com/group/matlab
> >
> > More DSP-Related Groups: http://www.dsprelated.com/groups.php3
> >
> > ">http://docs.yahoo.com/info/terms/
> >
> >


__________________________________________________