Professional Web Applications Themes

aspnet_wp uses up 98~99% of CPU power - ASP.NET Web Services

Hi I'm running a webservice that acts as a server for instance messanger. The problem I encounter is that when I run the server for several days, suddenly aspnet_wp.exe process uses up 98~99% of all CPU power. I'm using one thread (created through new ThreadStart() etc) to listen to all the incoming TCP connections, and I suspect that this thread causes the problem. Any known problem on thread safety of accepting incoming TCP connections in one of the thread of aspnet_wp ?...

  1. #1

    Default aspnet_wp uses up 98~99% of CPU power

    Hi

    I'm running a webservice that acts as a server for
    instance messanger. The problem I encounter is that when I
    run the server for several days, suddenly aspnet_wp.exe
    process uses up 98~99% of all CPU power.

    I'm using one thread (created through new ThreadStart()
    etc) to listen to all the incoming TCP connections, and I
    suspect that this thread causes the problem. Any known
    problem on thread safety of accepting incoming TCP
    connections in one of the thread of aspnet_wp ?
    inho yi Guest

  2. #2

    Default Re: aspnet_wp uses up 98~99% of CPU power

    If I were building this, I would build a "Service" (= Windows Service) to
    handle the incoming TCP connections.
    If you also want a web service, maybe for some admin operations, I would
    make that a separate ASMX.
    Then if they need to communicate, use .NET remoting between them.

    I would not listen for incoming connections in a thread started by a web
    service.

    -D

    "inho yi" <anonymousdiscussions.microsoft.com> wrote in message
    news:074101c3d5a9$6d3a4330$a401280aphx.gbl...
    > Hi
    >
    > I'm running a webservice that acts as a server for
    > instance messanger. The problem I encounter is that when I
    > run the server for several days, suddenly aspnet_wp.exe
    > process uses up 98~99% of all CPU power.
    >
    > I'm using one thread (created through new ThreadStart()
    > etc) to listen to all the incoming TCP connections, and I
    > suspect that this thread causes the problem. Any known
    > problem on thread safety of accepting incoming TCP
    > connections in one of the thread of aspnet_wp ?

    Dino Chiesa [Microsoft] Guest

Similar Threads

  1. aspnet_wp.exe
    By Ching-Lung in forum ASP.NET General
    Replies: 2
    Last Post: November 9th, 03:59 PM
  2. aspnet_wp.exe Exception
    By Ravikanth[MVP] in forum ASP.NET General
    Replies: 2
    Last Post: August 9th, 02:55 PM
  3. aspnet_wp,exe
    By S. Justin Gengo in forum ASP.NET General
    Replies: 1
    Last Post: July 29th, 08:53 PM
  4. aspnet_wp.exe could not be started
    By Alek Davis in forum ASP.NET General
    Replies: 2
    Last Post: July 26th, 02:15 AM
  5. aspnet_wp.exe could not be launched
    By Asfhan in forum ASP.NET General
    Replies: 1
    Last Post: July 5th, 01:20 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139