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
