• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 262
  • Last Modified:

What is impact of size of Session attributes on Whole Web application????

Hi,
Can anybody please explain me how it will affect to speed & performance of my web application in following cases?
    1)When I am putting some simple primitive & string attributes in my session?
    2)When I am combining all the above attributes into Value Object & then putting VO into my session?
Which one will be good?
Also will it affect to my application's speed if I add more attributes to session scope of my web application?
Thanx
pras
0
Econify
Asked:
Econify
  • 4
1 Solution
 
TimYatesCommented:
So long as you aren't adding kilobytes of stuff, you should see little or no difference...

So long as your server has the memory to handle the increase in memory TIMES the number of concurrent sessions you get

And it's up to you with the choice...

I tend to do (2)

But have been known to do (1)

Tim
0
 
vikrant4u2Commented:
>> Also will it affect to my application's speed if I add more attributes to session scope of my web application?

yes surely it will effect performance,

try to use less number & size of session variables.
0
 
TimYatesCommented:
>> yes surely it will effect performance,

It really depends on the size of the server, and number of users though, whether the effect is noticable (even measurable) or not...
0
 
TimYatesCommented:
AND if the only other option is to store the variables in a database and have the server look them up from a single key stored in the session, storing everything in the session will probably be faster...
0
 
TimYatesCommented:
Good luck pras :-)

Basically, it's a balancing game with no hard and fast rules...

Memory these days is cheap however, and throwing as much as you can at the webserver won't do you any harm at all :-D

Good luck again!

Tim
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now