Author Topic: Memory management question  (Read 1164 times)

bwaters2000

  • Newbie
  • *
  • Posts: 2
Memory management question
« on: September 01, 2009, 11:41:26 pm »
Hi everyone,

While experimenting with a customized MegaZine interface (by loading megazine.swf into a custom shell, suppressing the built-in navigation, then adding my own nav and communicating via events), I noticed that the RAM usage for my 64-page book kept growing more than I expected as I flipped back and forth, even when setting the maxloaded attribute to 64.

To test if my custom code was a contributing factor to the RAM usage, I put aside my version and downloaded the standard v1.38 zipped binaries, just modified the XML to load my SWF pages, then ran the results in IE 7 and Firefox 3 with non-debug versions of Flash Player 10.0.32.18 under 64-bit Windows Vista. (The SWF pages were produced by the pdf2swf component, and no videos were added.)

With maxloaded set to 64, memory usage at initial load climbed to 153-183 MB after all pages seemed to be loaded. Then, as I flipped through each page of the book to the end, RAM usage grew to between 285-350 MB. When I started skipping around and going back through the book, memory usage started increasing further. Repeating the above with maxloaded set to 12, RAM usage got to 400 MB fairly easily. Again, this was just with the standard v1.38 binaries and my own SWF pages, no custom code.

Am I missing anything obvious to try to stabilize if not limit the memory consumed by my 64-page book? Putting aside any potential interface customizations, I had hoped that setting maxloaded to 64 would result in an initial maximum allocation that wouldn’t increase (much) as I navigated between pages. Or that setting maxloaded lower would allow older pages to be released from memory as I navigated forward. Any recommendations, suggestions or workarounds are greatly appreciated!

Thanks in advance,
Brian


Hans Nücke

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 787
  • MegaZine3 Sales Manager
Re: Memory management question
« Reply #1 on: September 01, 2009, 11:54:35 pm »
We just provided version 2.0 (see here: http://megazine.mightypirates.de/forum/index.php/topic,472.0.html ).
If you are curious enough, you could do some tests with it. And I am sure if the same problem still exists, you'll get (higher and almost immediate) attention from Florian ;-)
Thanks

bwaters2000

  • Newbie
  • *
  • Posts: 2
Re: Memory management question
« Reply #2 on: September 02, 2009, 12:37:31 am »
Thanks for the info on version 2.0! I just did some very quick initial testing with the beta and so far, so good --- memory usage seems capped at 222-229 MB as I flip back and forth. I'll read the documentation updates and continue testing a bit more thoroughly.

Thanks,
Brian