macromedia flash flashcom:
1. FMS is installed on a P4 3 Ghz cpu and 4 Gb memory
2. FMS is running in the 'application-scope' ; each application (main.asc) has
it's own core
3. both applications create +/- 30-60 instances (lets name them chat-rooms)
and those get abandoned when they are empty (they get removed by the idle or
garbage collector after 5 minutes in case no clients are in the instance any
more)
4. About 100-250 connections are in use, divided over 2 applications and about
40 active instances
5. We call in every instance for every user every 20 seconds an PHP script
using the XML.load method which validates the connected user (obj_xml = new
XML() ; obj_xml.load("phpscript.php"); obj_xml.onLoad = checktheaccessetc ;
delete obj_xml)
However using this setup both applications start with 0 Kb memory usage and
have grown to monsters, eating up to 3 Gigabyte of memory each. When the size
reaches approx. 3072 Kb of memory the core crashes and it sometimes takes down
the FMS master-service too resulting in rejected connections for ALL current
and new users to both applictions (!)
I think that's a serious memory-leak. (+/- 3072/24 = 150 Megabytes per hour).
We've made a graphic of the memory-usage and it shows a straight line from the
start (0 Kb) to 3 Gb of memusage after about 24 hours.
One application uses a shared-memory-object on the server (NOT persistent) the
other does not. Both applications use the XML object to load a php-script. (see
above).
Is anyone familiar with this crazy use of memory by FMS and knows how to deal
with it, besides restarting the FMS service every 12-24 hours to prevent a
lockup ?