You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "coumaravel (JIRA)" <ji...@apache.org> on 2006/08/15 13:20:13 UTC

[jira] Created: (VELOCITY-450) Why Velocity Templates takes larger memory

Why Velocity Templates takes larger memory
------------------------------------------

                 Key: VELOCITY-450
                 URL: http://issues.apache.org/jira/browse/VELOCITY-450
             Project: Velocity
          Issue Type: Bug
          Components: Source
    Affects Versions: 1.4
         Environment: Windows 2000, Jdk1.4.2, Tomcat4.1.29
            Reporter: coumaravel
            Priority: Blocker


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


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org


Re: [jira] Commented: (VELOCITY-450) Reduce memory usage for Velocity templates

Posted by Erron Austin <er...@gmail.com>.
Also, my application uses many templates (>500) and it uses hardly any
memory. I'm able to confirm this using yourkit. Granted my templates
are not macro intensive.



On 4/16/08, Ronald Klop (JIRA) <de...@velocity.apache.org> wrote:
>
>     [
> https://issues.apache.org/jira/browse/VELOCITY-450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12589481#action_12589481
> ]
>
> Ronald Klop commented on VELOCITY-450:
> --------------------------------------
>
> 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.
>
>
> > Reduce memory usage for Velocity templates
> > ------------------------------------------
> >
> >                 Key: VELOCITY-450
> >                 URL: https://issues.apache.org/jira/browse/VELOCITY-450
> >             Project: Velocity
> >          Issue Type: Wish
> >          Components: Engine
> >    Affects Versions: 1.4
> >         Environment: Windows 2000, Jdk1.4.2, Tomcat4.1.29
> >            Reporter: coumaravel
> >             Fix For: 1.6
> >
> >
> > 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
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
> For additional commands, e-mail: dev-help@velocity.apache.org
>
>

-- 
Sent from Gmail for mobile | mobile.google.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


[jira] Commented: (VELOCITY-450) Reduce memory usage for Velocity templates

Posted by "tomcat (JIRA)" <de...@velocity.apache.org>.
    [ https://issues.apache.org/jira/browse/VELOCITY-450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12589193#action_12589193 ] 

tomcat commented on VELOCITY-450:
---------------------------------

Hello,

Are there any updates regarding issue? 

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



> Reduce memory usage for Velocity templates
> ------------------------------------------
>
>                 Key: VELOCITY-450
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-450
>             Project: Velocity
>          Issue Type: Wish
>          Components: Engine
>    Affects Versions: 1.4
>         Environment: Windows 2000, Jdk1.4.2, Tomcat4.1.29
>            Reporter: coumaravel
>             Fix For: 1.6
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


[jira] Updated: (VELOCITY-450) Reduce memory usage for Velocity templates

Posted by "Nathan Bubna (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/VELOCITY-450?page=all ]

Nathan Bubna updated VELOCITY-450:
----------------------------------

       Summary: Reduce memory usage for Velocity templates  (was: Why Velocity Templates takes larger memory)
    Issue Type: Wish  (was: Bug)
      Priority: Major  (was: Blocker)

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

> Reduce memory usage for Velocity templates
> ------------------------------------------
>
>                 Key: VELOCITY-450
>                 URL: http://issues.apache.org/jira/browse/VELOCITY-450
>             Project: Velocity
>          Issue Type: Wish
>          Components: Source
>    Affects Versions: 1.4
>         Environment: Windows 2000, Jdk1.4.2, Tomcat4.1.29
>            Reporter: coumaravel
>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org


[jira] Resolved: (VELOCITY-450) Reduce memory usage for Velocity templates

Posted by "Nathan Bubna (JIRA)" <de...@velocity.apache.org>.
     [ https://issues.apache.org/jira/browse/VELOCITY-450?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nathan Bubna resolved VELOCITY-450.
-----------------------------------

    Resolution: Fixed

> Reduce memory usage for Velocity templates
> ------------------------------------------
>
>                 Key: VELOCITY-450
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-450
>             Project: Velocity
>          Issue Type: Wish
>          Components: Engine
>    Affects Versions: 1.4
>         Environment: Windows 2000, Jdk1.4.2, Tomcat4.1.29
>            Reporter: coumaravel
>             Fix For: 1.6
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


[jira] Commented: (VELOCITY-450) Reduce memory usage for Velocity templates

Posted by "Nathan Bubna (JIRA)" <de...@velocity.apache.org>.
    [ https://issues.apache.org/jira/browse/VELOCITY-450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12622779#action_12622779 ] 

Nathan Bubna commented on VELOCITY-450:
---------------------------------------

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?

> Reduce memory usage for Velocity templates
> ------------------------------------------
>
>                 Key: VELOCITY-450
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-450
>             Project: Velocity
>          Issue Type: Wish
>          Components: Engine
>    Affects Versions: 1.4
>         Environment: Windows 2000, Jdk1.4.2, Tomcat4.1.29
>            Reporter: coumaravel
>             Fix For: 1.6
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


[jira] Updated: (VELOCITY-450) Reduce memory usage for Velocity templates

Posted by "Henning Schmiedehausen (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/VELOCITY-450?page=all ]

Henning Schmiedehausen updated VELOCITY-450:
--------------------------------------------

      Component/s: Engine
                       (was: Source)
    Fix Version/s: 1.6

Memory usage is an issue that moves higher and higher on the prio list for 1.6. Retargetting the bug report there.

> Reduce memory usage for Velocity templates
> ------------------------------------------
>
>                 Key: VELOCITY-450
>                 URL: http://issues.apache.org/jira/browse/VELOCITY-450
>             Project: Velocity
>          Issue Type: Wish
>          Components: Engine
>    Affects Versions: 1.4
>         Environment: Windows 2000, Jdk1.4.2, Tomcat4.1.29
>            Reporter: coumaravel
>             Fix For: 1.6
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org


[jira] Commented: (VELOCITY-450) Reduce memory usage for Velocity templates

Posted by "Ronald Klop (JIRA)" <de...@velocity.apache.org>.
    [ https://issues.apache.org/jira/browse/VELOCITY-450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12589481#action_12589481 ] 

Ronald Klop commented on VELOCITY-450:
--------------------------------------

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.


> Reduce memory usage for Velocity templates
> ------------------------------------------
>
>                 Key: VELOCITY-450
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-450
>             Project: Velocity
>          Issue Type: Wish
>          Components: Engine
>    Affects Versions: 1.4
>         Environment: Windows 2000, Jdk1.4.2, Tomcat4.1.29
>            Reporter: coumaravel
>             Fix For: 1.6
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org