You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ted Husted <hu...@apache.org> on 2001/09/21 23:36:15 UTC

Re: Will store large ActionForm (that contain form elements from multiple pages, if not the whole site) in session object slow down session replication in cluster environment?

Generally, most people discourage using the session context unless
absolutely necessary. The Struts ActionForms work very well in the
request context, and that is the usual default.

The only exception would be multipage Wizard-type forms, which Struts
does not handle very well. In that case a developer may need to resort
to the session to store data for the duration of the Wizard, but would
probably want to dispose it afterwards. There is a Workflow proposal
pending that addresses the Wizard issues directly. 

http://jakarta.apache.org/struts/proposal-workflow.html

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/about/struts/


Yao Zhu wrote:
> 
> Hi,
> 
> Upon reading the struts 1.0 user guide, I have a question: Isn’t it too
> expensive to do big session object replication in cluster environment that
> uses session replication?
> 
> For example, the user guide suggested using one ActionForm to store all user
> inputs (from multiple pages, if not whole site).  Of course, the form object
> will be stored in session object. It’s very good to maintain the user
> inputs.
> 
> Let’s say that we have a Weblogic cluster environment.  The session object
> will be replicated over the cluster to provide failover service.  Big
> ActionForm inside session object will be more expensive to replicate.  In
> single server environment, big session object is not an issue. It can
> possibly be a big issue in a cluster that replicates the session objects.
> As concurrent user session increases, the resources needed for replication
> of all the session objects will grow much faster, thus slow down the server.
> 
> Because of this, some people might want to keep the session object as small
> as possible to reduce the resources needed for replication operations.
> 
> Of course, those are just “in theory”? Does anyone have any real world
> experience that uses struts in high volume cluster environment?  If so, can
> you share your experience with the rest of us?
> 
> Thanks.
> 
> -Yao Zhu