Web Service stops responding to outside requestshttp://forums.asp.net/t/1465803.aspx/1?Web+Service+stops+responding+to+outside+requestsThu, 01 Mar 2012 15:27:25 -050014658033381298http://forums.asp.net/p/1465803/3381298.aspx/1?Web+Service+stops+responding+to+outside+requestsWeb Service stops responding to outside requests <p>We have a web service that we've been running for months. It process reports and emails for us. It hasn't changed much over the last couple of months. However, just within the last week, we've had issues where it stops responding or runs really slowly for requests starting outside of the server the web service is hosted on. For example, one of the web applications tries to make a request to it and it just doesn't respond or responds slowly. We have a page that we added to the web service so that we can monitor it and it won't load up remotely for us either.</p> <p>Here are some additional details:</p> <ul> <li>If we log into the web service box and attempt to hit our status page, it responds quickly as if there is no issue.</li><li>There are no errors in the event log that lead us to any conclusion as to the problem we are having.</li><li>We originally had the maxconnection property set to 10 in the web.config, removed it (supposedly it will set to the correct value automatically because we have the processModel of autoConfig=true), and we set it to 96. In has had the issue with all of these settings. We currently have it at 10 since that seems to have the fewest number of issue.</li></ul> <p>If anyone has any idea or things to check, I will respond quickly. Today alone, it has stopped responding to outside request 5 times. Usually we run for weeks without any issues.</p> <p>Thanks,</p> <p>Adam</p> 2009-09-01T16:02:31-04:003381883http://forums.asp.net/p/1465803/3381883.aspx/1?Re+Web+Service+stops+responding+to+outside+requestsRe: Web Service stops responding to outside requests <p>If these requests are originating outside the network, then check with your admin guys whether there's a load balancer in between or some sort of a Cisco switch that's causing all this grief.&nbsp; </p> <p>I'd also run a trace and hit the web service a few times to see where it's slowing down.&nbsp; (Have you tried recycling the app pool as well?)</p> <p><br> </p> <p>To run a trace, add this to the config file:</p> <p><br> </p> <p><pre class="prettyprint">&lt;system.diagnostics&gt; &lt;sources&gt; &lt;source name=&quot;System.ServiceModel.MessageLogging&quot; switchValue=&quot;Warning, ActivityTracing&quot; &gt; &lt;listeners&gt; &lt;add name=&quot;ServiceModelTraceListener&quot;/&gt; &lt;/listeners&gt; &lt;/source&gt; &lt;source name=&quot;System.ServiceModel&quot; switchValue=&quot;Verbose,ActivityTracing&quot; &gt; &lt;listeners&gt; &lt;add name=&quot;ServiceModelTraceListener&quot;/&gt; &lt;/listeners&gt; &lt;/source&gt; &lt;source name=&quot;System.Runtime.Serialization&quot; switchValue=&quot;Verbose,ActivityTracing&quot;&gt; &lt;listeners&gt; &lt;add name=&quot;ServiceModelTraceListener&quot;/&gt; &lt;/listeners&gt; &lt;/source&gt; &lt;/sources&gt; &lt;sharedListeners&gt; &lt;add initializeData=&quot;App_tracelog.svclog&quot; type=&quot;System.Diagnostics.XmlWriterTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&quot; name=&quot;ServiceModelTraceListener&quot; traceOutputOptions=&quot;Timestamp&quot;/&gt; &lt;/sharedListeners&gt; &lt;/system.diagnostics&gt;</pre><br> <br> </p> 2009-09-01T23:04:09-04:003381895http://forums.asp.net/p/1465803/3381895.aspx/1?Re+Web+Service+stops+responding+to+outside+requestsRe: Web Service stops responding to outside requests <p>I'm sorry, I forgot to mention that in order for it to start responding again, we usually do an IISRESET. All of the requests are coming from within the local network and are not going through a firewall. This leads me to believe it's not network related because after we do an IISRESET, it starts responding again for a while.</p> <p>What does the tracing do? Where does it log the data to? How badly will it affect performance if we left it in there a few days?</p> <p>Thanks,</p> <p>Adam<br> </p> 2009-09-01T23:18:36-04:003382573http://forums.asp.net/p/1465803/3382573.aspx/1?Re+Web+Service+stops+responding+to+outside+requestsRe: Web Service stops responding to outside requests <p>The tracing creates an svclog file and it grows fast, so only do it for a few hits, not a few days! </p> <p>That you have to perform an IISRESET indicates that it could be either an exception or a memory leak somewhere that's slowing down the application response.&nbsp; </p> <p>Have a look at the performance and memory usage of the running process.&nbsp; You can run perfmon as well to see how it's doing. If it spikes, then there's definitely a resource problem. <br> </p> 2009-09-02T08:57:30-04:003383064http://forums.asp.net/p/1465803/3383064.aspx/1?Re+Web+Service+stops+responding+to+outside+requestsRe: Web Service stops responding to outside requests <p>I'm pretty sure it's not a memory issue. The server has 32GB of memory and 8 processor cores. When this happened, the process was only consuming 3 gigs of memory and it has safely used over 20GB before. The application continue to responds quickly as if there is no issue from the server itself. It's only outside requests that are incredibly slow or timeout. We've been monitoring perfmon and haven't seen anything out of the ordinary.</p> 2009-09-02T12:41:18-04:003696106http://forums.asp.net/p/1465803/3696106.aspx/1?Re+Web+Service+stops+responding+to+outside+requestsRe: Web Service stops responding to outside requests <p>Unfortunately, we're still having issues.&nbsp;The problem seems to be a little different than last time. Requests to the web service seem to slow down to the point where the application calling the web service ends up timing out. The slowness is even showing up in the server itself, which was not&nbsp;originally the case.&nbsp;We have increased the executionTimeout in the web.config of the web service to 240 seconds. However, yesterday we started getting operation timed out errors. I checked and it was responding pretty well for me when I hit our status page that we built into the web service. About 2-3 hours later though, they started coming more frequently. Eventually, we had to IISRESET the box to make it responsive again. It appears that the request to the web service are being completed, since the data is appearing in the database. However, it's just taking the web service a long time to send a response back to the application saying that it's done. This is odd, because normally during the day, the process is fast. It just decides to get a to a point where everything starts to slow down and the responses start timing out.</p> <p>If there is anything I should be looking for, please let me know. I've added some additional logging in our web service to hopefully find something, but haven't been able to dig anything up yet. I would imagine that this machine should be able to easily handle the number of requests were asking it to do, but I could be wrong.</p> 2010-02-23T13:51:02-05:004859263http://forums.asp.net/p/1465803/4859263.aspx/1?Re+Web+Service+stops+responding+to+outside+requestsRe: Web Service stops responding to outside requests <p>I am wondering if you were able to resolve this issue as I am experiencing a similar problem. Any leads you could provide would be helpful. Thanks.</p> 2012-03-01T15:27:25-05:00