?
Solved

configuration Session evaluation Session memory  Asp.net  Web.config

Posted on 2011-02-13
3
Medium Priority
?
738 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 2000 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

Industry Leaders: 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

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…
In the modern office, employees tend to move around the workplace a lot more freely. Conferences, collaborative groups, flexible seating and working from home require a new level of mobility. Technology has not only changed the behavior and the expe…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.
Suggested Courses

750 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