Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
We are experiencing periods of time when CPU utilization of our application goes to %100 percent for several seconds. I tracked this down to two CLR methods which are called when ‘new’ objects are created. The first being ?JIT_New@@YIPAVObject@@PAUCORINFO_CLASS_STRUCT_@@@Z. The second being ?JIT_NewArr1@@YIPAVObject@@PAUCORINFO_CLASS_STRUCT_@@H@Z. The size of the objects being created are relatively small. I understand that there is more to memory allocation then just getting memory, and that Garbage Collection might also be involved. I also understand that it might spike the CPU. But why would the spike last so long, upwards to 5+ seconds? Any insight would be greatly appreciated.
Thanks
Dan

What I have tried:

I’ve bypassed some of the critical areas where memory allocation is causing high CPU, and it helps. Thing is, it can theoretically happen at any time and the bypass is more of a patch to the symptom, not a solution to the problem.
Posted
Updated 15-Jul-16 22:17pm
v2
Comments
Richard MacCutchan 16-Jul-16 4:18am    
As with your other question you need to find out what is going on inside your application to cause these problems.
Kornfeld Eliyahu Peter 17-Jul-16 8:17am    
100% CPU - as for itself - is meaningless...It has to be checked in connection to the overall behavior of the system (getting slow, unresponsive)...
(After all a single counting loop can get 100% CPU if no other tasks demands resources at that point)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900