[
https://issues.apache.org/jira/browse/WICKET-4134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13128083#comment-13128083
]
lucius commented on WICKET-4134:
--------------------------------
As a work around for now I am changing getCacheKey so the following is
happening, skipping the appedending of id for TransparentWebMarkupContainer.
It will probably break some applications but it's ok for mine.
final boolean skip = parent instanceof AbstractRepeater || cursor instanceof
TransparentWebMarkupContainer;
if (skip == false)
{
buffer.append(':').append(cursor.getId());
}
> 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