Bug 572342

Summary: 10-20 simultaneous GUI sessions can quickly cause the Server to run out of heap
Product: [Other] RHQ Project Reporter: Ian Springer <ian.springer>
Component: Core UIAssignee: Ian Springer <ian.springer>
Status: CLOSED DUPLICATE QA Contact: John Sefler <jsefler>
Severity: high Docs Contact:
Priority: high    
Version: 1.3.1CC: ccrouch, lkrejci
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-04-01 12:07:10 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 574133    

Description Ian Springer 2010-03-10 22:27:33 UTC
After 11 users logged into the GUI and surfed around a bit, the used heap shot up by about 400 MB. Analysis of the heap dump showed that the culprits were very fat org.ajax4jsf.util.LRUMaps inside org.ajax4jsf.application.AjaxStateHolders inside Tomcat Sessions. Googling for these misbehaving classes brought me to https://jira.jboss.org/jira/browse/RF-3878. There is a workaround described in the forum post linked off this issue which entails adding the following context params to web.xml:

<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>

We should test out this workaround this asap.

Note, RF-3878 is closed and says it was fixed in RF 3.3.0, but it doesn't describe what the fix was. We should ping the RF team for more details...

Comment 1 Lukas Krejci 2010-04-01 12:07:10 UTC
Marking as duplicate because bug 577294 deals with the core issue at hand.

*** This bug has been marked as a duplicate of bug 577294 ***