[
https://issues.apache.org/jira/browse/WICKET-4134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13128070#comment-13128070
]
lucius commented on WICKET-4134:
--------------------------------
OK. going to the exact same URL, One time the getCacheKey generates this key:
home-2:_autolink_5-3:_wicket_link-4-27-4-4-4-27-27-4-4-4-4-4-4-4-25-4-4-4-4-38-4-4-4-1-en_US-desktop-null
The subsequent hit will generate this.
home-2:_autolink_5-3:_wicket_link-4-27-4-4-4-27-27-4-4-4-4-4-4-4-25-4-4-4-4-38-4-4-4-4-1-en_US-desktop-null
Trying again a few mins later, 3 consecutive hits to same url:
home-2:_autolink_29-3:_wicket_link-4-27-4-4-4-27-27-4-4-4-4-4-4-4-25-4-4-4-4-38-4-4-4-4-28-1-en_US-desktop-null
home-2:_autolink_29-3:_wicket_link-4-27-4-4-4-27-27-4-4-4-4-4-4-4-25-4-4-4-4-38-4-4-4-4-28-28-1-en_US-desktop-null
home-2:_autolink_5-3:_wicket_link-4-27-4-4-4-27-27-4-4-4-4-4-4-4-25-4-4-4-4-38-4-4-4-4-28-28-4-1-en_US-desktop-null
> Localizer.getCacheKey() generating so much keys that application with low
> load run out of memory everyday
> ---------------------------------------------------------------------------------------------------------
>
> Key: WICKET-4134
> URL: https://issues.apache.org/jira/browse/WICKET-4134
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.5.1
> Environment: Linux, Jboss/Jetty 4g Ram
> Reporter: lucius
> Priority: Critical
> Labels: memory_leak
> Attachments: Screen Shot 2011-10-14 at 9.20.26 PM.png
>
>
> After running a web app for about a day, I will get out of mem exception.
> With a heap dump I will see most of the memory taken by Localizer, with keys
> such as:
> androidapp-10:_wicket_link-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-28-4-4-4-4-4-4-28-52-4-4-76-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-27-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-28-4-4-4-4-4-4-4-30-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-41-4-4-4-4-26-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-41-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4-4...
> Each of these types of keys are duplicated several thousand times. Here is a
> snipplet if the report:
> Found 60 occurrences of char[] with at least 10 instances having identical
> content. Total size is 401,451,248 bytes.
> Top elements include:
> 6,454 x androidapp-10:_wicket_link-4-4-4-4-4-4-4-4-4-4-4-4... (15,722 bytes)
> 6,453 x facebook-10:_wicket_link-4-4-4-4-4-4-4-4-4-4-4-4-4... (15,720 bytes)
> 5,866 x home-9:_autolink_5-10:_wicket_link-4-4-4-4-4-4-4-4... (15,720 bytes)
> 5,183 x candidates-9:_autolink_7-10:_wicket_link-4-4-4-4-4... (15,614 bytes)
> 686 x candidates-9:_autolink_8-10:_wicket_link-4-4-4-4-4... (16,567 bytes)
--
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