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]

