Configuration file memory usage for session status ASP.NET

I am trying to figure out the size of a particular session state. In one of our heavy pages (a large amount of data in the table), it gradually slowed down. The problem was solved by logging out the system. < p>

I’m looking for a page looking for JavaScript memory leaks, but I didn’t find anything. My next attack plan is to check ViewState and Session State. ViewState is simple, but session state brings challenges .

Does anyone know of any tricks or tools that can help figure out the size of the session state?

Edit

The session state is InProc.

Measure it:

int totalBytes;
var formatter = new BinaryFormatter();
for(int i = 0; i {
using (var stream = new MemoryStream())
{
formatter.Serialize(stream, Session[i]);
stream. Flush();
totalBytes += stream.Length;
}
}

In addition, I believe that if you enable tracing it will tell you some details about the session (not Ok this, never tried).

I tried to figure out the size of a specific session state. In one of our heavy pages (a lot of data in the table), it Gradually slowed down. The problem was solved by logging out of the system.

I was looking for pages looking for JavaScript memory leaks, but I didn’t find anything. My next attack plan is to check ViewState and Session State. ViewState is simple, but session state brings challenges.

Does anyone know of any tips or tools that can help figure out the size of session state?

Edit

The session state is InProc.

Measure it:

int totalBytes;
var formatter = new BinaryFormatter();
for(int i = 0; i {
using (var stream = new MemoryStream())
{
formatter.Serialize(stream, Session[i]);
stream.Flush();
totalBytes += stream .Length;
}
}

Also I believe if you enable tracing it will tell you some details about the session (not sure about this, never tried it).

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 2137 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.