Heap usage

Lukas Krejci lkrejci at redhat.com
Fri Apr 16 10:50:56 UTC 2010


Hi Heiko,

I've been through this before and we settled on the value of 2 for the views 
in session (after monitoring the heap and cpu usage for 2,4,6,8,10,15, and 20 
views in session in various UI usage scenarios).

https://bugzilla.redhat.com/show_bug.cgi?id=577294 is the bug for this work.

This stuff is present in the nav-tree-flyweights branch.

Cheers,

Lukas

On Friday 16 April 2010 12:19:55 Heiko W.Rupp wrote:
> Am 16.04.2010 um 11:45 schrieb Heiko W.Rupp:
> > Tracking this down leads to org.ajax4jsf.application.AjaxStateHolder
> > which seems to hold information about the last 15 visited pages (and
> > their page areas for the render tree).
> 
> I found https://jira.jboss.org/jira/browse/RF-3878 about this.
> 
> While we seem not hit by this specific bug ( was fixed in an earlier
> version of RF ), the workaround mentioned seems what I was looking for:
> 
> <context-param>
>  <description>
>  </description>
>  <param-name>com.sun.faces.numberOfViewsInSession</param-name>
>  <param-value>1</param-value>
>  </context-param>
>  <context-param>
>  <description>
>  </description>
>  <param-name>com.sun.faces.numberOfLogicalViews</param-name>
>  <param-value>1</param-value>
> </context-param>
> 
> I don't know yet if 1 is a good value here, but I did not see any immediate
> bad effects with it. With 2 users logged in and after some clicking, heap
> size for all sessions went from 60 MB (31+29) with the default setting to
> 8 MB (6+2) with the '1' setting.
> 
>   Heiko
> _______________________________________________
> rhq-devel mailing list
> rhq-devel at lists.fedorahosted.org
> https://fedorahosted.org/mailman/listinfo/rhq-devel


More information about the rhq-devel mailing list