Off on a wild tangent unrelated to Webtest, but:

Am I correct in interpreting this to mean that the ICEfaces framework requires 
clients to send a POST to a certain URL when they unload the page, to help 
prevent excessive memory usage?

That sounds like a pretty wacky design - you shouldn't build something 
serverside that will fail unless the client's browsers play nice.

In other words, doesn't this mean someone could DOS an ICEfaces app simply by 
generating lots of http requests and never calling the /dispose-views URL?



-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of Stefan Frenzel
Sent: Tuesday, October 06, 2009 1:14 PM
To: [email protected]
Subject: [Webtest] onunload

Hi,

I am load testing an ICEfaces application with WebTest.
The tests succeed until the application server's JVM runs out of memory. 
The used heap is increasing continuously.
Regarding to http://www.icefaces.org/JForum/posts/list/13140.page the JS 
onunload handler must be called to avoid a memory leak.
Normally this is done by the browser when closing the page, etc. But does 
WebTest/HtmlUnit also take care of it?
I started investigating the source code of HtmlUnit, however it seems to me 
that no such handler exists.
There is the OnbeforeunloadHandler which is implemented only in a HtmlPageTest 
test case. I am using WebTest R_1768.
I'll try to include a invoke step in my test to call 
http://<contextRoot>//block/dispose-views
<http://%3ccontextRoot%3e/block/dispose-views>. Do you have any other 
suggestions?


Bye, Stefan
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to