[
https://issues.apache.org/jira/browse/WICKET-4164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13134016#comment-13134016
]
Sverre Boschman edited comment on WICKET-4164 at 10/24/11 12:23 PM:
--------------------------------------------------------------------
yes, just add
[code]
endLatch.await();
System.out.println(map.size());
[/code]
output: 500253 or 500602 or 500439 or ...
but max entries is 1000, so map.size() should never be more than 1000.
was (Author: boschman):
yes, just add
[code]
endLatch.await();
System.out.println(map.size());
[/code]
output: 500253 or 500602 or 500439
but max entries is 1000, so map.size() should never be more than 1000.
> 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
>
> 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