Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2070
Will Session deployment cause Performance decrease?
posted

Hi

What is the best option to do in performance wise in order to delete the chart images? I want to delete the chart images in order stop growing images in server. If I use session as in below link

http://geekswithblogs.net/devin/archive/2006/08/09/87482.aspx

means will there any performance affected/decreased?  I want to know what are the advantages/disadvantages for both session and file system especially in performance wise. Let me clarify to proceed further. Thanks in advance.

Sridhar

Parents
No Data
Reply
  • 28496
    Suggested Answer
    Offline posted

    In session deployment, chart images are stored in the session state, which will use more memory (RAM) on the server while the charts are being delivered to the client, if session state is stored in the process memory (this is the default behavior).  if multiple web servers are being used, session state must be stored using Sql Server or an ASP.NET state server.

    there is also a slight increase in CPU usage since the SecureImagePipe control must execute some code to fetch the images out of the session state and stream them through the .aspx page.

    since file system deployment requires disk writes, the performance is dependent on the read/write speeds of the hdd.

    so the specs of your web server(s) can determine which solution is better, and if you really want to find the best option, you should use a load testing tool.  i think you'll find the two methods are quite close in terms of overall performance.

Children