good good. looks like we're on the right track. thanks for doing this testing!
Chris Turner wrote:
I've re-run my cluster tests for linkomatic and everything now looks fine. I've run the action link click 5000 times in succession. The clustered session size has been constant at 2700 bytes / request. The initial processing time was 16ms (7ms wicket, 9ms cluster) per request but by the end of the run HotSpot had optimised this down to 7ms (2ms wicket, 5ms cluster) per request :) (Running 2x Tomcat instances + the client application on a Pentium M 1.7GHz laptop, 1Gb RAM) This seems pretty good considering the linkomatic has a number of components including clickable image maps to generate.
I'm now pretty confident that we have the bulk of the clustering issues nailed down. We still probably need to do some more realistic load and cluster testing with more complex applications - particularly those that submit form data - and also test multiple clients all hitting the cluster/application at the same time. I think CD app would probably be a good candidate for this. Would first need some HttpUnit/JWebUnit tests and then a nice bunch of machines to act as clients. Some fun for another day though.......
regards, Chris
Jonathan Locke wrote:
anyway, i'm on the case and i think i've got a fix now... Jonathan Locke wrote:
okay, i'm confused. action link doesn't create a new page. why are autolinks being resolved at all...
Christopher Turner wrote:
Hi All,
I've been having some performance problems with my cluster while doing some load testing which I have traced down to a memory leak. I have been using a dual Tomcat cluster with a single client invoking the Action Link in the Linkomatic application 1000 times in succession with the requests alternating between servers.
At the start of the test performance is good, with the request taking about 29ms to process, where 17ms is the time spent in the request and 12ms spent synchronizing the session across the cluster. The session starts at about 3k.
By the time you reach 1000 requests the processing time is 98ms (51ms Wicket, 47ms cache) with the session synchronisation at about 40k per request!
Using my company copy of Your Kit Java Profile I have tracked down the problem to the resolve() method in AutolinkComponentResolver. Basically this method results in the creation of a brand new BookmarkablePageLink every time the Linkomatic page is rendered (because it contains an autolink component). Thus the collection of the children in the page grows continuously each time the page is redrawn.
The problem also occurs using the Linkomatic application in a non-clustered environment but the performance degrade is not really noticable because the session is just held in memory and 40k of memory is not much really!
I've raised a bug on SourceForge for this problem.
Regards, Chris
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop
