Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Slow asmx web service

$
0
0

Hi all,

There is a performance problem with a webservice I've written on our production server.  I feel that I've investigated every avenue and as a last resort I'm turning to you for suggestions.

The webservice is created using spring.net's WebServiceExporter.  Its purpose is to provide data for a kendo ui grid.  Under the hood, I am using entity framework 5 to read some data and the dynamic linq library to cater for filtering / sorting / paging.

The service typically takes 2seconds to execute on my dev machine and on our load testing server, and between 4 and 8 seconds on the production/staging machine.  I have added some diagnostic code to measure execution times on the server, and am seeing 994ms to execute all code and write to the response stream.

This is the first request

{"sort":null,"filter":null,"take":10,"skip":0,"page":1,"pageSize":10}

The response contains sensitive data and I would rather not post it.  Although, it has Content-Length: 9395.

I have been using lean sentry to analyse whats happening in the pipeline, and can see that the following items are slow:

  • Session in AcquireRequestState   -   takes 1041 ms
  • ManagedPipelineHandler in ExecureRequestHandler    -    takes 4 seconds (of which I can only account for 994ms as mentioned above).

I've been logged into the production server at 3am to test this our infrastructure team insist it is because of the server loading, but the delay is still there with all other sites turned off and nobody else accessing the server.

Kind of on my own on this one so I'm hoping that you can help.  Case of beer in it for you if you can point me to a solution.


Viewing all articles
Browse latest Browse all 5678

Trending Articles