# Maximum size of heap

**URL:** https://forum.kirupa.com/t/maximum-size-of-heap/275919
**Category:** flash
**Created:** [November 20, 2008, 3:06am UTC](https://forum.kirupa.com/t/maximum-size-of-heap/275919 "2008-11-20T03:06:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![RichSad](https://avatars.discourse-cdn.com/v4/letter/r/df788c/32.png) [@RichSad](https://forum.kirupa.com/u/RichSad)
#### Post date: [November 20, 2008, 3:06am UTC](https://forum.kirupa.com/t/maximum-size-of-heap/275919/1 "2008-11-20T03:06:01Z")

</div>

Hi all. I am wondering if anyone knows that maximum size of a AS3 program’s heap (free total memory)? I thought I read somewhere that Flash Player imposed some hard limit on this.

I have a SWF movie that needs LOTS (and I mean LOTS) of heap space to cache bitmaps (BitmapData objects actually). I monitor System.totalMemory to watch my memory usage and check for memory leaks. But there does not seem to be a similar variable/function to determine the amount of free total memory.
