[ 
https://issues.apache.org/jira/browse/WICKET-4164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13134857#comment-13134857
 ] 

Martin Grigorov commented on WICKET-4164:
-----------------------------------------

The old version of the test works with 10k iterations, the new one with 1k.
The old one ran for ~ 45secs, the new for ~27secs on my computer. 

old : 0.0045s per iteration
new: 0.027s per iteration
0.027 / 0.0045 = 6 times slower

Not 15 but still slower :-)
                
> StoredResponsesMap not threadsafe
> ---------------------------------
>
>                 Key: WICKET-4164
>                 URL: https://issues.apache.org/jira/browse/WICKET-4164
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5.1
>            Reporter: Sverre Boschman
>         Attachments: WICKET-4164.patch
>
>
> The StoredResponsesMap is based on the not so threadsafe LinkedHashMap. This 
> map is filled from multiple threads by the WebPageRenderer, which can lead to 
> the internal table property of hashmap going out of sync with the header 
> property of linkedhashmap. As the hashmap entries are not gc'able this leads 
> to out of memory exceptions.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to