Solved

configuration Session evaluation Session memory  Asp.net  Web.config

Posted on 2011-02-13
3
714 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

Independent Software Vendors: 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

Suggested Solutions

Title # Comments Views Activity
Technology Resume 7 66
Could not load file or assembly 'Microsoft.Web.Infrastructure 4 40
Finding the IIS version 5 37
asp.net open new page without popup blocker 8 33
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…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
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.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

713 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