4.11111

4.1 | 9 ratings Rate this file 83 downloads (last 30 days) File Size: 7.25 KB File ID: #7127

MATLAB Monitoring Tool

by Joe Conti

 

12 Mar 2005 (Updated 23 Oct 2007)

Code covered by BSD License  

Displays real time state of MATLAB, Handle Graphics, and Java.

Editor's Notes:

This file was a File Exchange Pick of the Week

Download Now | Watch this File

File Information
Description

This task manager like tool displays real time memory state of MATLAB, HG, and Java using time based strip charts.
 
The following information is displayed:
* Memory allocated by MATLAB
* Memory allocated by Java
* Memory allocted by the O/S
* Number of MFiles in MATLAB memory
* Size of m-file parsing stack
 
To see real time MATLAB memory allocation, start MATLAB with the O/S environment flag "MATLAB_MEM_MGR" set to a "debug" as in: set MATLAB_MEM_MGR = debug.
  
Example:
 
>> monitormatlab
>> bench
See the following link for more information on using O/S Memory to help with large data sets:

http://www.mathworks.com/company/newsletters/digest/nov04/newfeatures.html?ln

Acknowledgements
This submission has inspired the following:
MATLAB Memory Monitor v2.4
MATLAB release MATLAB 7.0.1 (R14SP1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (9)
25 May 2005 Elmar Tarajan

Nice idea - thanks you!

14 Jun 2005 gorden jemwa

A very useful tool, especially on WIN XP, which has poor RAM management capabilities!

08 Feb 2006 Tarzan Good

Very useful! Nice to know when to use >>clear all
:-)

14 Feb 2006 Cary Martin

Useful application for diagnosing memory management problems, including for the toolbox functions.

Note that under Windows XP you can easily set the required OS flag via
Control Panel --> System --> Advanced --> Environment Variables --> New
This is much easier than mucking around at the command prompt.

04 Jul 2006 Ofek Shilon

I had trouble running GUI-apps after running monitormatlab, and here's why:

At the function localShutDown, add the line -
' localSetHGCreateFcn([]); '
(undo some GUI defaults changes).

Other than that - nice and useful utility. Thanks!

03 Jan 2007 Paijit K

Well done. Thanks for all

01 Mar 2007 Rasool Kazemi  
14 Jun 2007 Shlomi Galperin

BEWARE: SEVER WARNING!!! This utility will mess up with your personal code (the "fig" files) and also with your windows registry. After installing it' it is impossible get rid ot it, and you must include it in your path or project, otherwise you will suffer from run-time warnings afterwards forever. Cleaning your PC will be a terrible heck. Absolutely not worth added value which you get from this utility. BEWARE!!!

06 May 2009 SeongHo Ju  
Please login to add a comment or rating.
Updates
20 May 2005

Added monitoring of MATLAB's memory allocation

09 Jun 2005

Improve error handling

09 Jun 2005

Improve error handling

23 Oct 2007

Fixing a bug that would cause warning messages to appear when creating HG objects (e.g. loading a figure).

Tag Activity for this File
Tag Applied By Date/Time
development environment Joe Conti 22 Oct 2008 07:43:13
diagnostic Joe Conti 22 Oct 2008 07:43:13
debugging Joe Conti 22 Oct 2008 07:43:13
monitor Joe Conti 22 Oct 2008 07:43:13
utilities Joe Conti 22 Oct 2008 07:43:13
development Joe Conti 22 Oct 2008 07:43:13
 

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