Performance tuning in web service

Ask a Question related to ASP.NET Web Services, Design and Development.

  1. #1

    Default Performance tuning in web service

    I am using a web service for retrieving the data from SQL Server
    table having 29,000 records in a datagrid placed on the windows form
    in .net. It takes about 36 seconds to retrieve the data eventhough
    the service is running on a local computer. Without using service ,
    the data is fetched within 5 seconds. So in this case what can I do
    to reduce the time taken using the web service ?
    Nirajshah Guest

  2. Similar Questions and Discussions

    1. Performance Tuning: stand-alone vs. enterprise
      We had significant performance issues where our Jrun began to consume more and more of the processor as it tried to serve pages to 300 or so users. ...
    2. Performance tuning on RedHat Enterprise Linux 3
      On Tue, 07 Dec 2004 07:50:44 -0500, P.J. Josh Rovero <rovero@sonalysts.com> wrote: We have seen several boxes have kswapd go crazy (near 100%...
    3. Web service performance
      Hi my objective is to create a web service which will be running on a remote PC.The client PC will host a web application. The request/ response...
    4. Clarification on SQL performance tuning....
      This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ...
    5. performance tuning at process level
      j wrote: Dont run Sar every second ! The result you get will be wrong ! The result will include to much of sar itself ! Sar collect mean...
  3. #2

    Default Re: Performance tuning in web service

    Hi,

    When you retrieve the data without using the webservice are you going
    straight to SQL Server? If so, here is what I'm thinking:

    1. SQL is doing the query pretty fast and dishing it back to you. The
    dishing probably takes a little over 4 seconds.
    2. In a perfect world, using the web service, you should get the data in a
    about 10 seconds. We can't expect the WS to dish the data after the query
    processes faster than SQL.
    3. The web service must serialize the data into XML. This increases the
    size big time.

    So here is where we are at:

    The serialization is going to take much longer than the query. The dishing
    of the serialized data is going to take much longer.

    Here is how I would solve this problem:

    First, I would time the operations to see which ones are taking the longest.
    Second, I would either fix, or find new solutions to these problems.

    Time your calls and see where the extra 26 seconds is occuring. Once you
    know that, report back and let's sit down and figure out a solution. Good
    luck! Ken.

    --
    Ken Dopierala Jr.
    For great ASP.Net web hosting try:
    [url]http://www.webhost4life.com/default.asp?refid=Spinlight[/url]
    If you sign up under me and need help, email me.

    "Nirajshah" <niraj61@yahoo.co.in> wrote in message
    news:4a6a9534.0410150617.1df51ad8@posting.google.c om...
    > I am using a web service for retrieving the data from SQL Server
    > table having 29,000 records in a datagrid placed on the windows form
    > in .net. It takes about 36 seconds to retrieve the data eventhough
    > the service is running on a local computer. Without using service ,
    > the data is fetched within 5 seconds. So in this case what can I do
    > to reduce the time taken using the web service ?

    Ken Dopierala Jr. Guest

  4. #3

    Default RE: Performance tuning in web service

    Hi Nirajshah

    Are you allowing anonymus access to the webservice or are you using windows
    security mechanism? If you are that puts a big performance cost on your
    webservice. One way around it is doing the following:

    wsProxy.UnsafeAuthenticatedConnectionSharing = true;
    wsProxy.Credentials = System.Net.CredentialCache.DefaultCredentials;
    wsProxy.ConnectionGroupName = [windowsusername];

    Br.
    Arnthor


    "Nirajshah" wrote:
    > I am using a web service for retrieving the data from SQL Server
    > table having 29,000 records in a datagrid placed on the windows form
    > in .net. It takes about 36 seconds to retrieve the data eventhough
    > the service is running on a local computer. Without using service ,
    > the data is fetched within 5 seconds. So in this case what can I do
    > to reduce the time taken using the web service ?
    >
    Arnthor Guest

Posting Permissions

  • You may not post new threads
  • You may 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