When creating this web service and the application that calls it, we noticed that the first call to the web service every day is extremely slow. It will even shut down after a few days. However, every call after that works fine. Can anyone shed some light on why this might be and how we can get rid of this pain?
Thanks in advance!
If it is an ASP.NET web service, it could be the CLR, initializing and loading and checking assemblies for the first time. You may consider precompiling
, .. , - ( SQL Server, Windows, - ?), , .
- ASP.NET, , -, - , 20 IIS7.
IIS7
- ASP.NET, - , , - .
? db, ( , date?).
Are there many static constructors or customize code in the Global.asax class? Because IIS periodically processes workflows, the startup code may run again.
Rule for optimization: do not guess. Place profiling to find out what exactly is slow, and then work to make it faster. Everything that has already been published gives excellent tips on where to start looking for slowness.
Source: https://habr.com/ru/post/1711019/More articles:JQuery SSN mask - jqueryhow do you show page load time in php? - performanceFlex apps for iPhone - flexCan my website contain GPL code if I provide an API? - apiIs there anything that makes memory management easier for programming iPhone / iPod Touch applications? - memory-managementHow a Windows service returns information from a user command - c #Visual Studio - Code Bending Improvement - asp.netHow can I align two containers? - htmlПочему этот вложенный код ArrayList генерирует исключение? - javaHow to handle creating / editing an entity in a master part - entityAll Articles