[ 
https://issues.apache.org/jira/browse/VELOCITY-801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13032081#comment-13032081
 ] 

Christopher Schultz commented on VELOCITY-801:
----------------------------------------------

Alexander, one more comment:

If you are concerned about memory usage, consider /not/ using the singleton 
Velocity object. Instead, instantiate your own and then you always have the 
option of discarding it. If you use the singleton pattern that Velocity 
supports, you're right: the singleton will never be collected. Take control of 
your own objects and stop using the singleton. It will give you greater 
flexibility.

> 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]

Reply via email to