aspnet_wp.exe hangs
-
When I call StartService() Web Method of my Web Service, aspnet_wp.exe consumes around 100% cpu utilization. What is wrong with this? [WebMethod] public void StartService() { threadListener = new Thread(new ThreadStart(Listen)); threadListener.Start(); } private void Listen() { //Some code for creating a init tcp listner threadListener.Suspend(); } Sonork ID 100:25668
-
When I call StartService() Web Method of my Web Service, aspnet_wp.exe consumes around 100% cpu utilization. What is wrong with this? [WebMethod] public void StartService() { threadListener = new Thread(new ThreadStart(Listen)); threadListener.Start(); } private void Listen() { //Some code for creating a init tcp listner threadListener.Suspend(); } Sonork ID 100:25668
Plz, examine the memory consumption using some tools. Tools such as System Monitor or Task Manager can isolate those processes. When using System Monitor, if both the "Private Bytes" counter and the ".NET # of Bytes in all Heaps" counter increase at the same rate, this is evidence of managed memory consumption. Look at the size of allocated managed memory and consider what the garbage collector is doing. The allocation profiler might be helpful to you: http://www.gotdotnet.com/userfiles/MaheshP/AllocationProfiler.zip also check this article on MSDN, [1] http://support.microsoft.com/default.aspx?scid=kb;en-us;q286350 [2] http://support.microsoft.com/default.aspx?scid=kb;en-us;q321792 hope this helps though, - Paresh