Hi,

I downgraded to freemarker 2.3.8, the version specified into struts2
pom.xml. It looks the same, even worse i may say. I'll try to make an
"hello world" app to reproduce it.

Size    Count   Class description
-------------------------------------------------------
358174944       431805  char[]
23134784        361481  freemarker.ext.util.ModelCache$ModelReference
17351088        361481  freemarker.ext.util.IdentityHashMap$Entry
15681984        326708  java.util.HashMap$Entry
13291680        138455  freemarker.ext.jsp.TagTransformModel$TagWriter
11677944        78618   * ConstMethodKlass
8604904 38188   java.util.HashMap$Entry[]
8184880 78618   * MethodKlass
8151624 7256    * ConstantPoolKlass
7691400 192285  java.lang.String
7122824 38711   org.apache.struts2.views.jsp.URLTag
6291472 1       freemarker.ext.util.IdentityHashMap$Entry[]
5586112 99752   java.io.CharArrayWriter
5367168 7256    * InstanceKlassKlass
5113080 91305   freemarker.ext.jsp.TagTransformModel$JspWriterAdapter
5040704 10150   byte[]
4815392 6040    * ConstantPoolCacheKlass
4449832 91426   * SymbolKlass
4207520 52594   org.apache.struts2.views.jsp.TextTag
3772000 47150   org.apache.struts2.views.jsp.ParamTag


On Wed, Apr 1, 2009 at 4:31 PM, Musachy Barroso <[email protected]> wrote:
> A new version of FreeMarker is used with 2.1.x, can you downgrade it
> to the version you had before and see if the problem is still there?
>
> thanks
> musachy
>
> On Wed, Apr 1, 2009 at 7:03 AM, Bogdan Serban <[email protected]> wrote:
>> Hi,
>>
>> I have upgraded from 2.0.9 to 2.1.2 and after some tests i saw that
>> the jvm increased memory usage from 16-19% to 85%. I've made a heap
>> dump and i saw that i have a lot of freemarker objects into memory, it
>> seems that beans are cached and never released, i had the same
>> settings for the 2.0.9 but never experienced such behavior until now.
>> I have compared this with an old heap dump and i saw that no
>> freemarker class had more than 1,000 count.
>>
>> My freemarker settings:
>> struts.freemarker.templatesCache=true
>> struts.freemarker.beanwrapperCache=true
>> struts.freemarker.wrapper.altMap=true
>>
>> Size    Count   Class description
>> -------------------------------------------------------
>> 5246528 81977   freemarker.ext.util.ModelCache$ModelReference
>> 4943352 37945   java.lang.Object[]
>> 3934896 81977   freemarker.ext.util.IdentityHashMap$Entry
>> 2653464 4948    * MethodDataKlass
>> 2644952 17401   java.lang.reflect.Method
>> 2450784 25529   freemarker.ext.jsp.TagTransformModel$TagWriter
>> 2444240 61106   freemarker.ext.beans.StringModel
>> 1986304 31036   java.util.HashMap
>> 1633280 9280    java.lang.Class
>> 1572880 1       freemarker.ext.util.IdentityHashMap$Entry[]
>> 1494632 8123    org.apache.struts2.views.jsp.URLTag
>> 1412320 17654   org.apache.tomcat.util.buf.MessageBytes
>> 1301472 10722   java.util.Hashtable$Entry[]
>> 1227240 30681   java.util.ArrayList
>> 1187328 18552   org.apache.tomcat.util.buf.ByteChunk
>> 1141320 13563   java.lang.Object[]
>> 1137376 24782   java.lang.String[]
>> 1048264 18719   freemarker.ext.jsp.JspWriterAdapter
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to