Last post May 31, 2011 09:36 AM by PSP_152890
May 31, 2011 01:06 AM|khali Chennai|LINK
I am using ASP.NET2.0 and it uses extensive SQL server session. I am seeing some huge traffic during page processing and how to optimize my session data? Is there any compress session information.
May 31, 2011 02:00 AM|Mansoor Sulaiman|LINK
following article may be helpful for you.
May 31, 2011 02:30 AM|GPankaj|LINK
You might see higher CPU usage on the web server as due to compression and de-compression the session data on the server. So you might consider only those session data that are huge and frequently accessed.
You should consider serializing the objects. here are some links
Hope this helps
May 31, 2011 03:13 AM|sirdneo|LINK
I think that you should focus on root cause of the problem. Main reason for huge traffic is high usage of session in your application. If you use any compression based technique then it will increase CPU usage of your applicaiton.
here are few tips which can be usefull for you:-
1- On the pages where you do not need session, disable session like this:-
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs"
2- First look at the data which you are saving in session. Instead of stroing datatables in session try storing data in custom classes and then save it to session.
May 31, 2011 09:36 AM|PSP_152890|LINK
You dont have direct options to compress Session data in ASP.NET2.0 but it will be available in ASP.NET4.0.
sqlConnectionString="data source=dbserver;Initial Catalog=aspnetstate"
/>Make sure you have cleaned up session data after your usage. Custom compression leads again some performance issue.