Re: Web service Performance





"John Saunders" wrote:

"Pierre" <Pierre@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:6D8E7FF6-84B9-4346-8A61-52C8648EF712@xxxxxxxxxxxxxxxx
I recently deployed a Web Service (IIS .0 on Windows Server 2003). About
400
clients are using it to synchronize some datas from clients database to
web
server database, so they are calling web service methods very often. After
a
few hours, the replies from the server are very slow, and I have at the
end
osme thread aborted errors generated by my web service.
My first question is : is that better to send 1 query with 10 rows of data
or 10 queries with 1 row of data ??
My second question is : what are the settings to change into web.config to
manage a lot of web service clients ??


The first thing you need to do is find out what the problem is. You have no
way of knowing whether changing the way you send data will make things
better, or worse.
--
John Saunders | MVP - Connected System Developer



Hi,
The problem is : on the WebServer the process W3wp.exe is using a lot of
memory, the memory used always increase. after few hours, the server is not
responding, the client call the ws method, and there's no answer from the web
server. In the Web service log message I have a threadAbortException the app
pool. On the server w3wp throw anexception logged in the events viewer : the
request has been aborted (error code 3001) ; exception type : HtpException.
Sometimes after this log I'm finding anoter one which is :ISAPI interface
'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll' blocked. If
we do a IISRESET, everything is restarting and queries response are going
back quickly to clients (On this pool thre's is just the web service, there's
other pools running).
Find the settings I had in the web.config of the web service :
<httpRuntime executionTimeout="600" />
And in the machine.config :
<system.web>
<processModel maxWorkerThreads="100" maxIoThreads="100"
minWorkerThreads="50"/>
<httpRuntime minFreeThreads="352" minLocalRequestFreeThreads="304"/>
</system.web>

This situation appears about twice a day. When I check in PerfMon the
number of waiting queries increase.

Where can I find the limits of http clients, http queries that IIS can
support, and the settings to optimize into IIS.
I never had this problem when I had about 50 clients connected, but now I
have about 200, and in the near future it will be 500.

Thanks to advice me.
Regards

Pierre
.



Relevant Pages

  • Re: interprocess comms in local network
    ... Server needs to be an application with buttons and menus as it will need to ... I also need to set up permissioning such that only clients that I've ... > ASP.NET provides support for implementing a web service. ... > If IIS was installed when you installed the .NET Framework, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Storing data periodically on remote server
    ... made of 3-4 fields, to a remote server. ... clients, each of them send data on time interval of 10 seconds. ... recommend creating a web service to accept the data instead. ...
    (comp.lang.java.programmer)
  • Re: Storing data periodically on remote server
    ... made of 3-4 fields, to a remote server. ... clients, each of them send data on time interval of 10 seconds. ... recommend creating a web service to accept the data instead. ...
    (comp.lang.java.programmer)
  • Re: How do Large Scale Web Service Applications Maintain Session State?
    ... cache these profiles on the server in order to increase performance. ... which is something different than stateful Web Service classes. ... We do pass a session token as ... Having systems deployed through web services allows clients to access via ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Underlying Connection Was Closed Error
    ... I'm working with remote clients that ... Yeah, Microsoft Network Monitor 3.1, works fine even on Vista) ... a web service on IIS 6.0 via SSL and using X509 Client Certificates. ... ....If Not userProxy Is Nothing Then ...
    (microsoft.public.dotnet.framework.webservices)