Solved

configuration Session evaluation Session memory  Asp.net  Web.config

Posted on 2011-02-13
3
716 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
[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
  • 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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Survey branching tutorial 11 76
Azure Web App - HTTP Redirect - web.config file help 23 57
Validation for Passport expiry in asp.net 2 32
PDF Turn Look 7 34
A publishing tool, a Version Control System, or a Collaboration Platform! These can be some of the defining words for the two very famous web-hosting Git repositories: Bitbucket and Github. Git is widely used amongst the programmers and developers f…
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
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.

732 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