Hello
I've ASP.NET Web Site MVC 5, written in .NET 4.5. Application is fully precompiled before deplyolment. No View, no Code can be updated. In fact there is no View file in deployment package, only images, javascript, css and binary data.
When I deploy application in IIS 7/7.5 all is working as expected. Because application is already precompiled I do not expect to precompile it on first run. Which is what is happing on IIS 7/7.5 and my website is starting here very qucikly (cold start is less that 5 seconds)
After moving to Windows Server 2012 R2, I'm not seeing this behaviour. Insterad I'm seeing big memory peak and CPU peek during first run. It is trying take all possibile memory. Web site is starting much longer almost 30 seconds. I believe all of that is becuas eof precompilation.
I want to sptop this, becuase all is already precompiled and there is nothing to do. I have powerfull Windows Server 2012 R2 with twice memory as old server, twice core as old server and my app is starting much slower. This is not the worst. It is throwing OutOfMemory exceptions somteimes if server have bigger memory usage. This is unexpected.
UPDATE 1:
After few more test I think this is related rather to x64 bit architecture. If I setup AppPool on IIS 8.5. to run as 32 bits everything is fast as on IIS 7 computer. I understand why IIS process is taking twice as memory on 32 bits. But do not understand why compilation is 7 (seven) times longer, and compilation memory is 10 times bigger.
Regards
Marcin