We are using the Tridion ASP.NET Web application for our website. Every time we publish the content the CPU usage of the server goes very high. After checking we found it is the IIS worker process related to the web application goes high with every new content as it tries to compile.
The web application is a mix of static and dynamic content (ASCX and REL). We are not sure which causes the high CPU. There are almost 25-30 websites which are grouped in to two application pools.
We found the issue after the web application based on Tridion 2011 was migrated to SDL Web 8.5. Also the operating system was upgraded from Windows Server 2008 to Windows Server 2012 R2.
Can anyone help here to resolve the issue, if we are missing any specific configuration related to the web hosting.