PDA

View Full Version : Client memory usage is never released.


wb
11-10-2004, 03:21 AM
I'm currently evaluating laszlo but have seem to have come accross an issue that i cant seem to resolve.

It seems that 'resources' are never freed which inturn causes the application to slow down untill you have no choice but to restart the laszlo application.

Is there any way to call some kind of garbage collection so that, for example, resources for 'closed' windows are freed and made available to the client system again?

To be honest i *really* like what laszlo can do but unless there is a way to resolve issues like this i can't see it being much use for 'real' web applications that are intended to be used as 'desktop application replacements'.

(Sorry if that sounds like ranting but i'm only trying to get my point accross)

I have created an example application and below is the results of my testing...


Laszlo 'browser' memory usage...

Firefox 1.0 (WinXP):
start new tab.. 31596K
click 'window' button #1: 43840K
click 'window' button #2: 55784K
close window #1: 55784K
close window #2: 55784K
click 'window' button #3: 67148K
click 'window' button #4: 78220K
close window #4: 78220K
close window #3: 78212K
close tab: 27172K


I.e. 6 (WinXP sp2)
start.. 29636K
click 'window' button #1: 40904K
click 'window' button #2: 52268K
close window #1: 52268K
close window #2: 52268K
click 'window' button #3: 63032K
click 'window' button #4: 73396K
close window #4: 73396K
close window #3: 73396K

wb
11-10-2004, 03:24 AM
Forgot the file attachment :)

d~l
11-10-2004, 03:47 AM
does this work (I've not tried it out) ..?

http://www.laszlosystems.com/lps/docs/deployers-guide.html

allowRequestGC ?lzt=gc Runs the garbage collector

wb
11-10-2004, 03:57 AM
IIRC that performs garbage collection on the server.

I need it on the clients web browser.

blakely
11-10-2004, 09:39 AM
Isn't what you're seeing the expected behavior for Flash applications? How long have you waited to see if the resources get recovered? Although I'm not sure about this, I would expect that you'd have to wait around for the browser to page-out some memory.

You can "unload" resources that are loaded with the <resource> tag, of course. Maybe there are some other secret controls you could employ....

But any way you cut it, I think the behavior you're seeing is an artifact of Flash (maybe the version of the Flash plugin) and your browser, not Laszlo.