Termination of all sessions followed by an application termination event

We encounter strange phenomena in our production environment, every few hours the application starts all users, ending their sessions with Session_End and fires the Application_End event. In our journal, all user sessions are closed at the same mill-second. We encountered this problem in our test environment, but only in rare cases, and we could not duplicate it. Everything else seems fine, another application running on this server works great, there is no memory leak or excessive CPU usage. The application is based on ExtJS version 3.3, NHibnernate 3.2, and ASP.NET 4.0. This is not like a Timeout error, some of the users worked just a few minutes before the end of the session. Has anyone encountered similar problems?

+4
source share
1 answer

There are several reasons why the application pool recycles (and thus ends all open sessions and ends the application). See http://blogs.msdn.com/b/johan/archive/2007/05/16/common-reasons-why-your-application-pool-may-unexpectedly-recycle.aspx for details.

We had a similar problem in a production environment. The reason for the reuse was a virus scanner, which touched the web.config file with each scan, because of which the application pool was launched. Try disabling the anti-virus scanner on the server or excluding the application directory in the anti-virus scanner.

Changing the following files will also restart the application pool immediately:

  • web.config
  • machine.config
  • global.asax
  • Everything in the bin directory or its subdirectories

This post: http://weblogs.asp.net/scottgu/archive/2005/12/14/433194.aspx gives you the opportunity to catch the end event of the application with more detailed logging. This can help you find the reason for the reboot.

+5
source

Source: https://habr.com/ru/post/1391641/


All Articles