WSMonitor is a handy tool based on AS3 to detect memory issues in Flash or Flex applications. It’s simple to use and it’s free – including full source.

Example

Press start button to run WSMonitor. All Flash movies running within this Browser are monitored, such as the maps.amung.us plugin located on right hand.

Get Adobe Flash player

 

Instruction

Just open your Flash or Flex app within Browser or Flash Standalone Player and start WSMonitor using WSMonitor.html or WSMonitor.swf located in folder named “deploy”.

Note: WSMonitor and your app have to run with the same Flash Player.

Free download

WSMonitor.zip
(Downloads: 3831)

WSMonitor is open source licensed under the Mozilla Public License 1.1.

Full source

Update on 08/29/09: Source code is moved to GitHub http://github.com/sectore/wsmonitor/

Acknowledgment

Thanks to Artjom Tarassov, who is one of the smartes Flash programmer I’ve ever met, for the active exchange of ideas during the last weeks ;-) .

Related Articles

15 Responses to “Detecting memory leaks in Flash or Flex applications using WSMonitor”

  1. Fraser Crosbie Says:

    Very cool. You should see if it’s possible to turn this into a Firefox extension.

  2. Michel Says:

    Great tool. Really comes in handy. Any suggestions on how to trace back the memory leak to its source in order to fix it?

    +1 for the firefox extension.

  3. sectore Says:

    @Michel: Sorry, I have no idea what the best way to trace back the memory leak to its “producer” is.

    @all: Is there anyone out there who can put WSMonitor into a Firefox extension? That would be great, because I’m not familar with Firefox Add-ons ;)

  4. VELO Says:

    Is there any way to make this monitor go slower, I wanna see more time on this window.

    VELO

  5. sectore Says:

    VELO,

    grab the source and customize it for all your needs. It’s open source ;-)

    -Jens

  6. Danny Says:

    PERFECT. Found a memory leak with your tool.

    Can you release it on Google code?

  7. sectore Says:

    VELO,

    thanks for your feedback!

    Currently I don’t plan any further development on this tool. So I think it makes no sense to release it on Google Code.

    However, you’ll find on my blog all what you need: The WSMonitor as a tool and its full source which is open source based on the Mozilla Public License 1.1. ;-)

    -Jens

  8. Garret Says:

    I know about the memory leaks, but I am having problems fixing the leaks. I have a few questions, can I ask them here?

  9. perottobc Says:

    Hi

    Great tool!

    When running it, it shows red and green bars in the graph? What does it mean?

    /perottobc

  10. sectore Says:

    @perottobc:

    green – decreasing memory
    red – increasing memory
    gray – unchanged memory

    -Jens

  11. Twitter Trackbacks for WS-Blog ยป Detecting memory leaks in Flash or Flex applications using WSMonitor [websector.de] on Topsy.com Says:

    [...] link is being shared on Twitter right now. @benhomie, an influential author, said Awesome tool to [...]

  12. anna Says:

    I just downloaded this tool to monitor an auto-looping slide presentation we built. In WSMonitor “memory usage” field I start off with a reading of 3.1MB which climbs up to about 3.7MB over an hour and then drops back to 3.1MB and the pattern repeats over and over. However, in Task Manager “PF Usage” just keeps climbing all this time and never drops. How do I interpret this?

  13. anna Says:

    Hm, ignore post above. Apparently running SWFs on their own didn’t actually work on my end. Now that I play both files though a browser, the numbers look more realistic. Thanks for the tool!

  14. ActionScript 3 Memory Optimization « Spontaneous Noise Says:

    [...] Detecting Memory Leaks in Flash and Flex:http://www.websector.de/blog/2007/10/01/detecting-memory-leaks-in-flash-or-flex-applications-using-w… [...]

  15. wagster Says:

    Awesome. Addressing memory leakage issues is a million times easier if you can see if and when they occur.

Leave a Reply

Follow sectore on Twitter