MVC project, c # code, threads, and timer is written in the Application_Start method over a period of time inside, about 50 minutes to stop, Reason is the result of the IIS automatic recovery, what good method is to stop the IIS automatic recovery,
CodePudding user response:
The application pool advanced Settings Recycling Configuration changes to ban recycling to True Fixed time interval (minutes) to 0 Virtual memory limit (KB) to 0 Dedicated memory limit (KB) to 0 Process model Idle timeout (minutes) to 0
What words you write code, and see if I can put in a Windows service to do You don't recycle IIS process is easy to be the memory of the CPU has been rising problems
CodePudding user response:
MVC project, I am in Global asax Application_Start write inside of the code is every two hours, the time to read database data, write TXT file, compressed into package, replace the web site package, for others to download, set the IIS application pool properties can be, but there will be a hidden danger, which resulted in increased memory