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]

Reply via email to