Re: How to track memory usage?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: How to track memory usage?

From: VK <schools_ring@yahoo.com>
Date: Mon Feb 27 2006 - 21:55:45 CET

Adrian wrote:
> Hi
> I have a JS program that runs localy (under IE6 only) on a PC but it has
> a memory leak (probably the known MS one!)

How do you define "memory leak"? You browser goes on blue screen after
certain time? After certain time your interface gets too slow? You
cannot open certain applications / files while IE is running? (just
used memory growth is not qualified for memory leak).

> What applications are there that I could use to look at the memory usage of
> each object within my JS app to help locate my problem?

Well, you may start with Start > Accessories > System Tools > System
Monitor. On download.com you can find more sophisticated tools. I'm
using RAM Idle for common purposes
<http://www.pcworld.com/downloads/file_description/0,fid,7604,00.asp>
(but never bother to look at it for JScript / JavaScript).

You can also download one year free trial of Visual Studio 2005 Express
<http://msdn.microsoft.com/vstudio/express/vwd/> to have more memory
tracking tools than you ever really needed :-)

But again: before to fight the ennemy it would be nice to check that he
exists ;-)
Received on Mon May 1 03:40:06 2006