You can try to set your test to slow, slow so that you can see how the processor gradually increases and then starts the profiler before you click on the high processor. There is no point in trying to profile the code when the CPU is at its maximum, because at that moment everything will be slow. In fact, you really only need a small load to get useful data from the profiler.
In addition, by gradually increasing the load, you can better understand whether there is a gradual increase in the number of processors (which indicates a processor bottleneck) or a sudden jump in the CPU (suppose this is another problem, it will not necessarily be solved by a large number of processors).
Try using something like Cosntant's bandwidth timer to speed up requests, this will prevent JMeter from getting into and overloading the system.
source share