Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. aspnet_wp.exe hangs

aspnet_wp.exe hangs

Scheduled Pinned Locked Moved C#
questionasp-net
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Manish K Agarwal
    wrote on last edited by
    #1

    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

    P 1 Reply Last reply
    0
    • M Manish K Agarwal

      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

      P Offline
      P Offline
      Paresh Gheewala
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups