I have got 8 application (VB.NET) my server running with SQL Server 2008 R2. Each application with a database. Applications are on a server and the database on another server.
Just to let you know:
The server database is on average 30% of CPU use and the application server has on average 60% of CPU use.
2 servers with the same configurations. Basic configurations:
- 8CPUs
- 30GB Memory Ram
- Windows Server 2008 R2
We monitor the system 24 hours with the NewRelic. And the big problem: the NewRelic always points to a slowdown caused by "System.Web.HttpApplication.BeginRequest()".
In the second image, we can see that the problem is: "Application code ( System.Web.HttpApplication.BeginRequest())"
I searched a lot on internet and found that maybe it has to do with "sessionState". I use "StateServer" all the eight applications. (The reason to use "StateServer" was that the applications would be faster.)
Follow the "sessionState" configuration:
<sessionState
cookieless="UseCookies"
cookieName=".authz"
mode="StateServer"
regenerateExpiredSessionId="true"
stateConnectionString="tcpip=127.0.0.1:42424"
timeout="20"
useHostingIdentity="true" />
And everywhere, where I put the object the session, I use "Serializable()". Example:
<Serializable()> Public Class Example
Anyway, I wanted to explain the situation to you guys. What can I do to make it faster and solve this problem? Thank you