Solved

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

Posted on 2006-07-19
5
253 Views
Last Modified: 2012-05-05
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
Comment
Question by:Econify
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
5 Comments
 
LVL 35

Expert Comment

by:TimYates
ID: 17136897
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
 
LVL 2

Expert Comment

by:vikrant4u2
ID: 17137310
>> 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
 
LVL 35

Expert Comment

by:TimYates
ID: 17137388
>> 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
 
LVL 35

Accepted Solution

by:
TimYates earned 125 total points
ID: 17137398
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
 
LVL 35

Expert Comment

by:TimYates
ID: 17145256
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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
Article by: Justin
In light of the WannaCry ransomware attack that affected millions of Windows machines, you might wonder if your Mac needs protecting. Yes, it does and here is how to do it.
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question