myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Müllan" <>
Subject Re: Leak in saveState?
Date Sat, 29 Mar 2008 12:15:34 GMT

> Using MessAdmin, I noticed that the size of the attribute
> 'org.apache.myfaces.application.jsp.JspStateManagerImpl.SERIALIZED_VIEW' in
> session is continualy increasing. Approximately 100K by viewed page.


With the web.xml setting org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION
you can influence the amount of stored views in the session in order
to restore them when navigating with the back button.

However, the JspStateManagerImpl holds *all* the views in the session
- regardless the setting - but with a weak reference. Means it will be
freed out of the memory if gc determines that memory consumption is

Because of this, the tool recognizes increasing memory consumption.




Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

View raw message