Issue Details (XML | Word | Printable)

Key: VELOCITY-450
Type: Wish Wish
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: coumaravel
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Velocity

Reduce memory usage for Velocity templates

Created: 15/Aug/06 11:19 AM   Updated: 15/Aug/08 09:35 PM
Return to search
Component/s: Engine
Affects Version/s: 1.4
Fix Version/s: 1.6

Time Tracking:
Not Specified

Environment: Windows 2000, Jdk1.4.2, Tomcat4.1.29

Resolution Date: 15/Aug/08 09:35 PM


 Description  « Hide
Hi,

We are using the velocity templates extensively to
generate HTML reports. Normally our templates size on
the Disk is around 20-50kb, when it gets loaded into
Application(Tomcat) memory it turns to 3-5MB.

As of now we have 500 templates, in near future we are
planning to increase this to 1500.

Any Idea why this is happening. Any help in this is
much appreciated, as this is becoming a bottleneck for
the scalability of our application.

Thanks in advance.

Regards,
Coumar


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Nathan Bubna added a comment - 15/Aug/06 03:05 PM
Hi Coumar,

I've recently been talking about ways to reduce memory usage with someone else on the user list. I've add the highlights of that conversation to the VelocityFAQ:

See http://wiki.apache.org/jakarta-velocity/VelocityFAQ

If you have further questions about it, feel free to ask on the velocity-user@jakarta.apache.org list.

peace,
nathan

Nathan Bubna made changes - 15/Aug/06 03:05 PM
Field Original Value New Value
Priority Blocker [ 1 ] Major [ 3 ]
Issue Type Bug [ 1 ] Wish [ 5 ]
Summary Why Velocity Templates takes larger memory Reduce memory usage for Velocity templates
Henning Schmiedehausen added a comment - 05/Nov/06 12:40 PM
Memory usage is an issue that moves higher and higher on the prio list for 1.6. Retargetting the bug report there.

Henning Schmiedehausen made changes - 05/Nov/06 12:40 PM
Fix Version/s 1.6 [ 12310290 ]
Component/s Engine [ 12311337 ]
Component/s Source [ 12310214 ]
tomcat added a comment - 15/Apr/08 07:08 PM
Hello,

Are there any updates regarding issue?

There seems to be almost no development activity in Velocity community.


Ronald Klop added a comment - 16/Apr/08 09:38 AM
Hi,

I fixed something in https://issues.apache.org/jira/browse/VELOCITY-570. But I don't know if this helps for your problem.
So there is development activity.

Can you generate and analyze memory dumps of your problem? It is very nice to know what classes are holding what objects which use the memory.

Ronald.

Nathan Bubna added a comment - 15/Aug/08 02:30 AM
I'm guessing this has largely been dealt with via a number of different changes since 1.5. Does anyone still see this as a problem?

Nathan Bubna made changes - 15/Aug/08 09:35 PM
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]