the problem with memory was my programming mistake
I included this array in every external component in my application (I have 
around 50 components) by mistake
so I assume that with creation of every component the same array was created 
but in different memory space
am I right?

btw
is there something like include_once from PHP in Action Script?
I wonder if including the same piece od code (function) twice makes the 
final application with doubled code?

krzysiek


>
> How much ram would be recommended?
>
> -- Matthew
>
>
> On Mon, 21 Mar 2005 14:54:37 -0800, Gordon Smith <[EMAIL PROTECTED]> 
> wrote:
>>  That's a tiny amount of RAM for a Flex server.
>>
>>  - Gordon
>>
>>  -----Original Message-----
>>  From: Krzysztof Szlapinski [mailto:[EMAIL PROTECTED]
>>  Sent: Monday, March 21, 2005 2:33 PM
>>  To: [email protected]
>>  Subject: Re: [flexcoders] internal representation of an array
>>
>>
>>
>>  > Is it running out of memory when being compiled, or when being run?
>>  during compilation
>>  server allocates around 230MB of ram and then, probably while creating 
>> new
>>  objects, it runs out of mem and crushes
>>  it is a 256MB machine
>>
>>  krzysiek
>>
>>
>>  >
>>  > - Gordon
>>  >
>>  > -----Original Message-----
>>  > From: Peter Farland [mailto:[EMAIL PROTECTED]
>>  > Sent: Monday, March 21, 2005 1:19 PM
>>  > To: [email protected]
>>  > Subject: RE: [flexcoders] internal representation of an array
>>  >
>>  >
>>  >
>>  > Do any of these Arrays contain very sparse, non-dense, ordinal indexed
>>  > elements?
>>  >
>>  > For example, are there any Arrays like this structure?
>>  >
>>  > myarray[0] = "A";
>>  > myarray[1] = "B";
>>  > myarray[1000000] = "Z";
>>  >
>>  > The serialization of these sorts of arrays in AS2 via AMF may,
>>  > unfortunately, cause many undefined elements to be sent in the gaps
>>  > between non-dense elements.
>>  >
>>  > I'm assuming your posting this to the Flex server via RemoteObject... 
>> if
>>  > so:
>>  >
>>  > Have you also tried to get a sense of where it is running out of 
>> memory?
>>  >
>>  > Have you enabled AMF debug level logging and turned on stacktraces in
>>  > your /WEB-INF/flex/gateway-config.xml file and then checked your flex
>>  > logs to see how much of the request was successfully deserialized?
>>  >
>>  > Are you using stateless-class (default) or stateful-class typed
>>  > RemoteObejcts
>>  >
>>  >
>>  >
>>  > -----Original Message-----
>>  > From: Krzysztof Szlapinski [mailto:[EMAIL PROTECTED]
>>  > Sent: Monday, March 21, 2005 4:11 PM
>>  > To: [email protected]
>>  > Subject: Re: [flexcoders] internal representation of an array
>>  >
>>  >
>>  >
>>  > no there are no circular references
>>  >
>>  >>
>>  >> Are there any circular references between elements of your array
>>  >> elements?
>>  >>
>>  >> There is a known issue in Flex 1.5 for circular references between
>>  >> non-Typed (i.e. generic unregistered ActionScript class instances)
>>  >> Objects, Arrays.
>>  >>
>>  >>
>>  >>
>>  >>
>>  >> -----Original Message-----
>>  >> From: Krzysztof Szlapinski [mailto:[EMAIL PROTECTED]
>>  >> Sent: Monday, March 21, 2005 3:29 PM
>>  >> To: [email protected]
>>  >> Subject: [flexcoders] internal representation of an array
>>  >>
>>  >>
>>  >>
>>  >> Hi,
>>  >>
>>  >> Does anybody know what is the internal memory representation of an
>>  > array
>>  >> in
>>  >> Flex?
>>  >> I used an array like in the example below but much longer and the
>>  >> servlet
>>  >> execution threw this exception: "java.lang.OutOfMemoryError"
>>  >>
>>  >> here is the sample array structure:
>>  >> form['vb8'] = new Array();
>>  >> form['vb8']['type'] = 5;
>>  >> form['vb8']['pid'] = 55;
>>  >> form['vb8']['fid'] = 'vb8';
>>  >> form['vb8']['rbgs'] = new Array();
>>  >> form['vb8']['rbgs'][0] = new Array();
>>  >> form['vb8']['rbgs'][0]['fid'] = 'rbg0';
>>  >> form['vb8']['rbgs'][0]['pid'] = 88;
>>  >> form['vb8']['rbgs'][0][0] = 'rb0';
>>  >> form['vb8']['rbgs'][0][1] = 'rb1';
>>  >> form['vb8']['rbgs'][0][2] = 'rb2';
>>  >> form['vb8']['rbgs'][0][3] = 'rb3';
>>  >> form['vb8']['rbgs'][0][4] = 'rb4';
>>  >> form['vb8']['rbgs'][0][5] = 'rb5';
>>  >> form['vb8']['rbgs'][0][6] = 'rb6';
>>  >> form['vb8']['rbgs'][1] = new Array();
>>  >> form['vb8']['rbgs'][1]['fid'] = 'rbg1';
>>  >> .......
>>  >> form['vb46']['rbs'][6] = new Array();
>>  >> form['vb46']['rbs'][6]['pid'] = 165;
>>  >> form['vb46']['rbs'][6]['fid'] = 'rb353';
>>  >>
>>  >> krzysiek
>>  >>
>>  >>
>>  >>
>>  >>
>>  >>
>>  >>
>>  >>
>>  >> Yahoo! Groups Links
>>  >>
>>  >>
>>  >>
>>  >>
>>  >>
>>  >>
>>  >>
>>  >>
>>  >>
>>  >>
>>  >> Yahoo! Groups Links
>>  >>
>>  >>
>>  >>
>>  >>
>>  >>
>>  >>
>>  >>
>>  >>
>>  >>
>>  >
>>  >
>>  >
>>  >
>>  > Yahoo! Groups Links
>>  >
>>  >
>>  >
>>  >
>>  >
>>  >
>>  >
>>  >
>>  >
>>  >
>>  > Yahoo! Groups Links
>>  >
>>  >
>>  >
>>  >
>>  >
>>  >
>>  >
>>  >
>>  >
>>  >
>>  > Yahoo! Groups Links
>>  >
>>  >
>>  >
>>  >
>>  >
>>  >
>>  >
>>  >
>>  >
>>
>>
>>
>>
>>
>>  Yahoo! Groups Links
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>  Yahoo! Groups Sponsor
>>
>>  ADVERTISEMENT
>>
>>
>>  ________________________________
>>  Yahoo! Groups Links
>>
>>
>> To visit your group on the web, go to:
>> http://groups.yahoo.com/group/flexcoders/
>>
>> To unsubscribe from this group, send an email to:
>> [EMAIL PROTECTED]
>>
>> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>
>
> -- 
> -=============================================-
> Matthew Alan Shirey
> Software Engineer
> Center for Teaching, Learning, and Technology
> Washington State University
> E-mail: [EMAIL PROTECTED]
> Office: 5-0476
> -=============================================-
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
> 




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to