Home > Net >  IIS automatic recovery solution
IIS automatic recovery solution

Time:09-16

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

CodePudding user response:

refer to the second floor kaoyan413 response:
MVC project, I am in Global. Asax Application_Start code is inside every 2 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

You can use a Windows service to do it, or you can get a scheduled task to run the console application

CodePudding user response:

The question now is whether the web project including the front part of the project integrated together, the demand is not allowed to use a Windows service, look the other way if not online, so ask what other method

CodePudding user response:

reference 4 floor kaoyan413 response:
the question now is whether the web project including the front part of the project of integrated together, the demand is not allowed to use a Windows service, look the other way if not online, so ask what other way

Outside the network can access it, can you do on their own machines have access to him, a recovery can restart the Application_Start event

CodePudding user response:

Don't have to code, manually configure a timing plan tasks,

As for other things, according to the big though moral emperor supreme instructions, this edition does not allow any extension nature of the discussion, or hit the newcomer, think that the couple are idiots,

So we won't tell you, will have a hot load selection, also won't tell you weight net core, owin, Nancy this sort of thing can be separated from the IIS exist alone

CodePudding user response:

In the formal environment, general IIS to do two necessary Settings:

http://bibaoke.com/post/66

CodePudding user response:

Use inside thread and timer webclient regularly visit the website homepage

CodePudding user response:

Why do these things to write inside the project, not write a daemon docking with him outside beauty zai?

CodePudding user response:

IIS automatic recovery of don't change, the somebody else to do so by default must be justified, some things can use the Windows service to replace, it is not necessary to do in the web,
Time to read database data, write TXT file, compressed into package, replace web site package for other people to download
You can own to write a Windows service

And said long socket connection must be used in the web access server, because IIS recycling question, then, ready to break line reconnection

CodePudding user response:

Windows service or winform procedure can provide HTTP lightweight services, and develop a pure web client site (a folder only HTML, js, resource files, and so on pure running in browser front file), before and after the end of the complete separation, this is the last 7, 8 years of tide, it is struggling with a web server page generator programming is very out of date,
  • Related