First, preface
In recent times, there have been two problems with websites:
1. Memory usage increases slightly until the server memory fills up.
2. When you visit a page, the page responds too slowly and the CPU stays high.
An initial estimate of memory growth may be due to the fact that there are unsaved resources that are taking up memory, and that the CPU is high probably because of the time-consuming operations performed.
Here we use the Ants Performance Profiler and the Ants Memory Profiler to analyze the specific cause.
--------------------------------------------------------
Tools: ANTS Performance Profiler 8 installation package + Activation Tools + Tutorials
Official Document: Https://documentation.red-gate.com/dashboard.action
It is important to note that there will be two tools when the installation is complete, such as:
Second, the CPU analysis
We open the Memory analysis tool as follows:
Click the new Profiling session button:
Clicking the Start Profiling button results in the following:
The method of authorization is the most time-consuming and most frequently requested method, and for this phenomenon we can put the user's permissions in the session to reduce the number of connections to the database, thereby improving performance
Through analysis we can find the most time-consuming method, the most time-consuming request URL, the most time-consuming SQL statement, through which we can easily find the program's performance short board, thus targeted to optimize
Three, memory analysis
To start the Memory analysis tool:
Clicking the Start Profiling button results in the following:
By clicking on the class list, we can see which types of data occupy the highest memory:
Click on the circled area as follows:
Double hit the green bar, the result is as follows:
Enlarge the map to a green place the result is as follows:
Through the above method, we can find out the areas needing improvement, targeted optimization
Source: Http://www.cnblogs.com/eggTwo/p/6090245.html?utm_source=itdadao&utm_medium=referral
Using the ANTS Performance profiler&ants memory Profiler tool to analyze the IIS process with high CPU consumption