Solved

configuration Session evaluation Session memory  Asp.net  Web.config

Posted on 2011-02-13
3
703 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Foreword (May 2015) This web page has appeared at Google.  It's definitely worth considering! https://www.google.com/about/careers/students/guide-to-technical-development.html How to Know You are Making a Difference at EE In August, 2013, one …
Using Quotation Marks in PHP This question (http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_28217211.html) seems to come up a lot for developers who are new to PHP.  And it got me thinking, "How can we explain the rule…
This video teaches users how to migrate an existing Wordpress website to a new domain.
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…

762 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

8 Experts available now in Live!

Get 1:1 Help Now