Solved

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

Posted on 2006-07-19
5
222 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Java Exception example issues 11 84
How to find missing packages when using Netbeans IDE 8.1 ? 19 46
main method of string class 3 101
How can I   ajax html table  rows? 20 60
Lotus Notes – formerly IBM Notes – is an email client application, while IBM Domino (earlier Lotus Domino) is an email server. The client possesses a set of features that are even more advanced as compared to that of Outlook. Likewise, IBM Domino is…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

932 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now