Performance issues in Session State

Danielle Schlie 0 Reputation points
2024-09-06T00:41:07.7633333+00:00

Hi.
We are running a .Net Framework 4.8 mvc web application with redis session state setup. We are experiencing performance issues and the profiling we have done indicates that session state, specifically GetSessionStateItemAsync, is waiting for long periods of time.

Things we have done to resolve the issue:

  1. Increased network bandwidth on redis cache
  2. increased the number of available threads
  3. decreased the size of items stored in redis cache (not related to the session values)

But so far these changes have not helped.

The profiling revealed the following on a few of our slow running requests:
User's image

Any ideas on how we can identify the source of what is causing these performance issues would be great, thanks

Azure Cache for Redis
Azure Cache for Redis
An Azure service that provides access to a secure, dedicated Redis cache, managed by Microsoft.
248 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,453 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sina Salam 10,111 Reputation points
    2024-09-06T11:27:33.4066667+00:00

    Hello Danielle Schlie,

    Welcome to the Microsoft Q&A and thank you for posting your questions here.

    I understand that you are having performance issues in Azure Cache for Redis Session State.

    Since you've already tried several optimization strategies, issues with Redis session state in a .NET Framework MVC application can be complex. But here I will give a few more areas to identify and address the source of the problem in the links:

    I am sure that one of these lists will definitely solve the problem, but if you have a specific error cod in the log, kindly let us know.

    I hope this is helpful! Do not hesitate to let me know if you have any other questions.

    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.