You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Gary <gu...@rediffmail.com> on 2003/05/20 15:02:45 UTC

Performance related. (OT and Not Urgent)

We generally put objects in session/request scope right ?
(request.getSession().setAttribute("xyz", muObj))
Is there any max limit on the size of the object we put ?
i know the servlet engine itself doent put any restriction
but what is the general guideline for such things
i am looking for some optimal value


___________________________________________________
Get www. mycompany .com and 5 matching email ids.
Just Rs. 1499/ year.
Click here http://www.rediffmailpro.com


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Performance related. (OT and Not Urgent)

Posted by Vic Cekvenich <vc...@baseBeans.com>.
The smaller each session, the more concurrent sessions your app. server 
can scale to.
I just have one bean there, usersSessionBean, and then each form has 
it's bean that I kill.

Also, not sure if ever there is a need to put something in session 
manually like you did there in code, since action mapping does it for 
you (and does a new)

The question is similar to how many "new Object()" is OK?
Each "new" needs a GC so .... the less "new" the better. But you have to 
do some "new" to make the app work. Also, most of the time you can add a 
box and solve your Java salability cheaply, say for $3K you can support 
more users instead of spending $3K on consulting. A machine like 
SuperMicro 6013 should be able to support way over a thousand + 
concurrent users sub. second response in my testing.
Slowest part is almost always Data Access in J2EE, hence... you get more 
for $ by focusing on store procedures for example.

There is no number for session size, less is better.

hth,

Gary wrote:

> We generally put objects in session/request scope right ?
> (request.getSession().setAttribute("xyz", muObj))
> Is there any max limit on the size of the object we put ?
> i know the servlet engine itself doent put any restriction
> but what is the general guideline for such things
> i am looking for some optimal value
>
>
> ___________________________________________________
> Get www. mycompany .com and 5 matching email ids.
> Just Rs. 1499/ year.
> Click here http://www.rediffmailpro.com


-- 
Vic Cekvenich,
Struts Instructor,
1-800-917-JAVA

Advanced <a href ="baseBeans.com">Struts Training</a> and project recovery in North East. 
Open Source <a href ="baseBeans.com">Content Management</a>  basicPortal sofware
Best practice<a href ="baseBeans.com">Struts Support</a> v.1.1 helper ScafflodingXPress




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org