Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Why is RPC duration dependent on which server making the call? Expand / Collapse
Author
Message
Posted Thursday, March 21, 2013 4:45 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, April 5, 2013 7:19 AM
Points: 2, Visits: 27
I have a problem which I've tried to solve for several days now.

The customer was complaining that the system is slow. I ran SQL Server Profiler and saw that e g a stored procedure (RPC:Completed event class) runs 10 to 50 times slower than normal, but still with the same number of writes (about 400).
Having ruled out a lot of different hypothesis about the cause of this problem I landed in the fact that:

Depending on which web server making the call to the db server, the stored procedure performs differently!


I have the same binaries installed on each web server, so that should not be the problem. All remote calls from the different servers goes fast, except when the production server makes the call. Then the duration of the stored procedure is 10 to 50 times longer than for calls from the other servers.

The problem started with no connection to any known changes of the system, so that adds to the mystery, but the main mystery I want solved is the question above, namely why is the execution time for the stored procedures at the db server dependent on which web server calling??

Any ideas?
Post #1433708
Posted Friday, April 5, 2013 7:27 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, April 5, 2013 7:19 AM
Points: 2, Visits: 27
Problem solved!

It was at newly installed switch on half duplex that made the communication between web server and db server slow.

So, this also means that when SQL Server profiler says that the duration of the stored procedure execution is x milliseconds, that number also includes transport of result to web-server!
Post #1439205
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse