Solved

configuration Session evaluation Session memory  Asp.net  Web.config

Posted on 2011-02-13
3
708 Views
Last Modified: 2013-11-10
We have ASP.NET project . More the 1000  users running this application
Session is configrated in ceparate process
this is tag from WEB.config
<sessionState mode="StateServer" stateConnectionString="tcpip=localhost:42424" cookieless="false" timeout="95"/>
our developer had an assigment  to implement Document Listing.
She implemenetd this way :
1) She put all Data into  Session ,its about 13 763 KB for one user.
2 ) then  she  implemets  paging , basing on  this data
I guess this is not best implementation , cause  we can have lack of memory.

How to evaluate if have memory enouhg for this listing implementation?

   
0
Comment
Question by:Yampolka
  • 2
3 Comments
 
LVL 16

Expert Comment

by:Swapnil Piparia
ID: 34883918
Hi Yampolka,

      From your explaination it seems custom paging (only fetch data which is requires for the page, if you show 10 rows to the user then only fetch 10 rows from database rather than all the rows in session and do the paging) is best solution if you are implementing paging.

      13, 763 KB is very huge data as you already know it is not recommended to keep it in session. However you have to see how many concurrrent (simultaneous login) users will be available in the system at a time. As in many scenario all the user is not accessing system simultaneously.

       so if you have 1000 users and 100 concurrent user in peak time than you need atleast 13, 763 00 KB memory for state server.

       You can use load test or stress test tool to measure load / performance of application server and state server.

Thanks,
Netswap.
0
 

Author Comment

by:Yampolka
ID: 34884201
Than you
Unfortunatelu I  am not alowed to change this code
I understand that it's wrong approach
! When I look at the Task Manager  Process Tab : I see that
ASPNET_state process takes about 16 000KB.
Can I encrease  memory for this process? Or it is encreasing automatically during fullfilg  some operation like I described?
Thanks,
Yampolka
0
 
LVL 16

Accepted Solution

by:
Swapnil Piparia earned 500 total points
ID: 34886796
Hi Yampolka,

     There is one attribute in machine.config of your system. Which specifies percentage of memory aspnet_wp process uses, so if it goes beyond that percentage than process get killed.

     As such by default it increase memory utilization automatically depend on your application operation.

For more info : http://msdn.microsoft.com/en-us/library/7w2sway1%28vs.71%29.aspx

Thanks,
Netswap.
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
Choosing a motherboard 10 70
Recieving large files from China 4 106
Class object 2 27
Turn on intranet settings 1 41
If I have to fix slow responding website my first thoughts are server side optimizations: the database may not be optimized or caching is not enabled, or things like that. We often overlook another major part of our web application: the client. We o…
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
This video teaches users how to migrate an existing Wordpress website to a new domain.
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.

867 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

20 Experts available now in Live!

Get 1:1 Help Now