You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Claude Brisson (JIRA)" <ji...@apache.org> on 2016/07/21 20:55:20 UTC
[jira] [Resolved] (VELOCITY-833) ASTStringLiteral.interpolateimage
consumes large amounts of memory [PATCH]
[ https://issues.apache.org/jira/browse/VELOCITY-833?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claude Brisson resolved VELOCITY-833.
-------------------------------------
Resolution: Fixed
Assignee: Claude Brisson
Fix Version/s: 2.x
fixed by commit 1753736
> ASTStringLiteral.interpolateimage consumes large amounts of memory [PATCH]
> --------------------------------------------------------------------------
>
> Key: VELOCITY-833
> URL: https://issues.apache.org/jira/browse/VELOCITY-833
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Affects Versions: 1.7
> Reporter: Alexander Veit
> Assignee: Claude Brisson
> Priority: Critical
> Labels: memory_leak
> Fix For: 2.x
>
> Attachments: VELOCITY-833.patch
>
>
> interpolateimage is only used in the init method of ASTStringLiteral and thus should not be an instance member of this class.
> The assignment
> interpolateimage = image + " ";
> is really bad since it allocates a new string objects that are responsible for a great part of the objects' retained heap size.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org