You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Christopher Schultz (JIRA)" <de...@velocity.apache.org> on 2011/05/11 23:21:47 UTC
[jira] [Commented] (VELOCITY-801) Velocity 1.7 uses string
interning
[ https://issues.apache.org/jira/browse/VELOCITY-801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13032077#comment-13032077 ]
Christopher Schultz commented on VELOCITY-801:
----------------------------------------------
This is a relatively easy fix if String.intern is proven to be holding onto these references inappropriately for some reason: just provide a simple, local String interning mechanism that can be discarded when the instance of (for instance) the Velocity object is discarded.
I'm actually glad to see Velocity is interning strings, though :)
> Velocity 1.7 uses string interning
> ----------------------------------
>
> Key: VELOCITY-801
> URL: https://issues.apache.org/jira/browse/VELOCITY-801
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Affects Versions: 1.7.x
> Environment: n.a.
> Reporter: Alexander Veit
> Priority: Critical
>
> String interning consumes memory that cannot be reclaimed by the java runtime even if the velocity runtime singleton is being discarded.
> This is an issue for server applications that use Velocity (e.g. we have a software product that may use tens of thousands of Velocity files to create content dynamically).
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org