Extremely Slow WebService

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

  1. #1

    Default Extremely Slow WebService

    My web service is running extrememly slow when consumed in Excel VBA
    (using MS Office XP Web Services toolkit to add a Web Reference to
    ws). I'm dealing with client spreadsheets calling the same function
    160 times or more in one sheet and it takes a minute or more to return
    all the values. (Excel func calls proxy class func calls web service
    func calls code behind func which gets data from sql that is
    returned.)

    More info:
    1. Cache duration on each web method set to 1 hour.
    2. Buffer set to False on web methods.
    3. I'm not running in debug mode - web.config debug="false"

    I have taken the code behind layer out of the mix so I can rule out
    any slowness caused by sql or my code. Now, my amt() function, which
    is called hundreds of times in the xls, just returns the decimal value
    of 1 each time. It is still taking longer than it should (in my mind)
    just to return all of the 1s. How can I speed things up??

    When the ws is running, the cpu is nearly maxed out - definite spike.
    Also worth mentioning - this is happening on IIS 5.0 with ASP.NET 1.1.

    Any advice would be greatly appreciated!

    Laurel
    Laurel Guest

  2. Similar Questions and Discussions

    1. #39968 [NEW]: date() is extremely slow
      From: katzenmayer at erfnet dot de Operating system: Debian Sarge PHP version: 5.2.0 PHP Bug Type: Performance problem Bug...
    2. EXTREMELY slow file transfer HELP!
      I have a tremendous problem. I have about 15 sites that I developed and manage with Dreamweaver. For some reason the transfer rate for one of them...
    3. Net::SSH::Perl extremely slow?
      I have a simple perl script that connects to a remote machine and executes a command. Net::SSH::Perl seems etremely slow, but I've tried it on 2...
    4. Extremely Slow Printing in 6.01
      Thanks for your response. That doesn't seem to help though. Whereabouts are the "issues regarding post script vs. PCL" that you mention? ...
    5. Database is extremely slow
      I have an Oracle 7.3.4.4 database that is experiencing extremely slow response times in the past few days. I know that one of the tables had as...
  3. #2

    Default Re: Extremely Slow WebService

    Hard to give clear answers.
    which CPU is maxed? client or server? Is the server separate? Is the SQL
    remote? etc

    For my local webservices - everything running on the same CPU - I typically
    get response times of 0.05s - with a single client thread (no concurrency).
    Typically 20 or more requests per second.

    Have you characterized the cost of each request?

    client invokes service
    service receives request
    service does SQL lookup
    service sends response
    client receives response

    At each layer there is a time cost. To characterize it, you could
    instrument the webservice logic on the server to mark the time at the start
    of the request and the end of the request (just before return). This gives
    you a cost of the SQL lookup. Do the same thing on the client and you can
    measure each segment.

    You might want to compare VBA to a .NET client (just for your own interest).

    If you are doing 160 requests, a batch request may be appropriate. Have you
    considered this? It may be worth doing this before any further perf
    analysis (as discussed above) on each individual request. Rather than
    sending 160 requestrs for 1 item each, you send 1 request for 160 (or more)
    items. Then you store the 160 items (maybe in a temp table in the sheet)
    and don't need to traverse the network further. If this doesn't work for
    you, you could also try a caching strategy, where you use a wrapper on the
    ws proxy. The wrapper would check a local cache (again, possibly stored in
    a temp table in the sheet); if the desired value is present, use it. If
    not, then call out to the webservice.

    -Dino



    "Laurel" <laurel@fuzint.com> wrote in message
    news:c63fbabe.0310200558.62507f1c@posting.google.c om...
    > My web service is running extrememly slow when consumed in Excel VBA
    > (using MS Office XP Web Services toolkit to add a Web Reference to
    > ws). I'm dealing with client spreadsheets calling the same function
    > 160 times or more in one sheet and it takes a minute or more to return
    > all the values. (Excel func calls proxy class func calls web service
    > func calls code behind func which gets data from sql that is
    > returned.)
    >
    > More info:
    > 1. Cache duration on each web method set to 1 hour.
    > 2. Buffer set to False on web methods.
    > 3. I'm not running in debug mode - web.config debug="false"
    >
    > I have taken the code behind layer out of the mix so I can rule out
    > any slowness caused by sql or my code. Now, my amt() function, which
    > is called hundreds of times in the xls, just returns the decimal value
    > of 1 each time. It is still taking longer than it should (in my mind)
    > just to return all of the 1s. How can I speed things up??
    >
    > When the ws is running, the cpu is nearly maxed out - definite spike.
    > Also worth mentioning - this is happening on IIS 5.0 with ASP.NET 1.1.
    >
    > Any advice would be greatly appreciated!
    >
    > Laurel

    Dino Chiesa [Microsoft] 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