Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Web Service randomly hangs when being called from SOAP::Lite

Reply
Thread Tools

Web Service randomly hangs when being called from SOAP::Lite

 
 
Gary W. Smith
Guest
Posts: n/a
 
      08-04-2009
I have a web service that hits a database and generates a generic list
to be returned to the caller. Currently there are 45 items in that
list. The database response time is negligable and everything is
wrapped in a try/catch, return an empty list.

When I run the client from my perl script (whic is running under
CentOS 5.3), I can execute it countless times (>50) consecutively.
Basically, it runs as fast as I can hit up and then enter. So, I have
it set as a cronjob to run once every 3 minutes. This process runs on
3 machines. So, at max, is web service gets 3 hits per minutes. Now,
with cron, it usually all comes in roughly at the same time. So the
real access is 3 hits in 1 second, every 3 minutes.

Anyway, if I let this thing run for an hour or so the web service just
hangs. If I run the script manually, it will time out after 60
seconds (the timeout value I have set inside of the SOAP::Lite
request).

So, I stop all of the jobs, wait 10 minutes, and the .net web services
are still in a hung state. Running netstat on all machines (including
IIS) shows no active connections on the web service port (it's not
using port 80, rather a custom port). Looking into the IIS logs there
are a number of requests and it just stops. So obviously it's not
logging the failures because it's not getting to that point.

I have tweaked the machine.config based on some other articles,
without success.

<processModel autoConfig="false" maxWorkerThreads="200"
maxIoThreads="100" minWorkerThreads="100" />

and in the web.config

<httpRuntime executionTimeout="60" />

Two things that stick out from the MS site is A) HTTP 1.1 allowing
only two connections (thus the chance to the machine config) and B)
editing the timeout for the web service from the calling script.

I would think that there should be a better alternative than making
the caller behave properly as web service servers should be a little
more hardened against bad client code. I already run all of the
virtual sites/directories in seperate app pools. The server has
plenty of ram/cpu and the affected web service is only consuming 40mb
ram (as it's the only w3c process running at this point).

So what I missing? How can I prevent a possible rouge calling script
from killing my IIS instance?
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
WebService called by automation dll times out when being called from Navision Felix ASP .Net Web Services 1 09-29-2006 01:43 PM
WIFI connection randomly/non randomly disconnects King Fu Wireless Networking 2 11-10-2004 07:03 AM
web service methods being called using incorrect port Jeff Hamilton ASP .Net Web Services 0 09-20-2004 07:05 PM
Web service being called with soap message conating ws security info John Harkin ASP .Net Web Services 0 06-28-2004 08:05 AM
Clear hangs up - & hangs up - & hangs up Sue Bilstein NZ Computing 26 03-07-2004 01:33 AM



Advertisments
 



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