[
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: [email protected]
For additional commands, e-mail: [email protected]