We are having high CPU issues on our CD servers while running Sitecore 9. The CPU on each server (Quad core 2.6GHz Intel Xeon) are nearly maxed out while the memory usage remains fine. We have load balancing and our traffic isn't exceptionally high. Over the course of several hours the CPU usage will gradually increase until it maxes out at 100%. We have the servers to cycle the w3wp.exe process when this happens, but obviously this is not ideal. Any known issues or tips on troubleshooting this? Common issues to look for? We are caching our renderings. I am not highly experienced with Sitecore, but have a technical background and can figure things out. Thanks!
You can try the following to identify your issues:
Enable Sitecore Pipeline Profiling by setting
<setting name="Pipelines.Profiling.Enabled" set:value="true" /> <setting name="Pipelines.Profiling.MeasureCpuTime" set:value="false" />
and browsing to /sitecore/admin/pipelines.aspx
Profile a Sitecore Page by going into debug mode (add these parameters to your url ?sc_debug=1&sc_prof=1&sc_trace=1)
Use Visual Studio Profiler to identify your cpu issues. (Debug>Profiler>Performance Profiler)
There is also a very good blog post by Jeremy Davis to learn more on profiling. https://jermdavis.wordpress.com/2017/10/02/measure-if-you-want-to-go-faster/