Re: Web Service Performance seems very slow. Please help!

From: Ken Varn (nospam)
Date: 02/01/05


Date: Tue, 1 Feb 2005 09:18:22 -0500

I solved my own problem. I saw a KB article (810814) on the subject in .NET
Framework 1.0. The solution still applies to 1.1 when it comes to the
machine.config settings. I had to add the following to machine.config to
help speed it up.

<system.net>
    <settings>
        <servicePointManager useNagleAlgorithm="false"/>
        <servicePointManager expect100Continue="false"/>
    </settings>
</system.net>

The performance increase was substantial with these settings in place. Not
sure if there are any other ramifications to using these settings.

-- 
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.
EmailID = varnk
Domain = Diebold.com
-----------------------------------
"Ken Varn" <nospam> wrote in message
news:%23KctPuXBFHA.1388@TK2MSFTNGP09.phx.gbl...
> I have just started playing around with Web Services.  I created a sample
> Web Service and invoked a sample "Hello World" method call from my Win
Forms
> control running under an ASP.NET web page.  The time it takes to return
the
> result seems a little bit much.  It takes anywhere from 500 to 800
> milliseconds to return a simple "Hello World" string message.  This is
even
> running it on localhost.  Is this normal for the request to take this
long?
> If not, what can I do to make it faster?
>
> Here is an example of my calling logic:
>
>       private void DoCall()
>       {
>             String ServiceText;
>             ICredentials myCred;
>             MyWebService TestService = new MyWebService();
>
>            myCred = new NetworkCredential("userid","password");
>            TestService.Credentials = myCred;
>
>            ServiceText = TestService.HelloWorld();       // This call
seems
> very slow.
>      }
>
> -- 
> -----------------------------------
> Ken Varn
> Senior Software Engineer
> Diebold Inc.
>
> EmailID = varnk
> Domain = Diebold.com
> -----------------------------------
>
>


Relevant Pages

  • Web Service Performance seems very slow. Please help!
    ... I have just started playing around with Web Services. ... control running under an ASP.NET web page. ... Ken Varn ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Internal Server Error 500
    ... I would have thought to get a grrrrrrrrrrrrrrrrrrr from a Londoner about Manchester. ... Both web services operate under completely different circumstances, it's more of a logical collection of related functionality. ... I have even tried using the same Web.Config file as WebService1 and just adding the extra app setting required by the service but I get the same problems. ... WebService1 doesn't seem to want to work on inherited settings, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Memory problem with vb.net + webServices + DLL
    ... unneeded objects by settings them to nothing. ... That web services workong with MS Sql Server... ... we have problem with memory size:( ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Internal Server Error 500
    ... According to IIS, both Web Services are inheriting the same providers, setttings, connection strings etc. ... I have even tried using the same Web.Config file as WebService1 and just adding the extra app setting required by the service but I get the same problems. ... WebService1 doesn't seem to want to work on inherited settings, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Internal Server Error 500
    ... Both web services operate under completely different circumstances, it's more of a logical collection of related functionality. ... I have even tried using the same Web.Config file as WebService1 and just adding the extra app setting required by the service but I get the same problems. ... WebService1 doesn't seem to want to work on inherited settings, ...
    (microsoft.public.dotnet.languages.vb)