Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Advice on problems with "Client Processing Time"


Advice on problems with "Client Processing Time"

Author
Message
McSQL
McSQL
SSC-Enthusiastic
SSC-Enthusiastic (162 reputation)SSC-Enthusiastic (162 reputation)SSC-Enthusiastic (162 reputation)SSC-Enthusiastic (162 reputation)SSC-Enthusiastic (162 reputation)SSC-Enthusiastic (162 reputation)SSC-Enthusiastic (162 reputation)SSC-Enthusiastic (162 reputation)

Group: General Forum Members
Points: 162 Visits: 299
Hello all,


I've encountered a strange problem on one of my test SQL Servers.

It is a VM box on a SAN, with Windows Server 2008, SQL Server 2008 R2, 16GB RAM and 4 CPU cores allocated.
The hardware allocation is more than sufficient for the database that is running on it, and is similar to the current production server.

When I run a test query (which is essentially returning the entire results of a view), it takes 9-10 seconds to return the results.
However, when I run the same query on the production server, it takes 1-2 seconds.

I've monitored the hardware while the query was running and also enabled execution plan and client statistics.
I/O is less than the production box and the memory utilisation anc CPU utilisation is next to nothing.

The only difference I can see between the queries run on each, is that the CLIENT PROCESSING TIME is 3 times as long on the test box.

Interestingly, to make matters even more murky, I can run the query from my own PC (within Management Studio) and the query returns the results in 4-5 seconds (less than half the time it takes to run directly on the server, but still twice the time in production).

Can anyone recommend some good places to start looking, to uncover what the underlying problem could be?

Many thanks in advance for any suggestions...

Smile
Lynn Pettis
Lynn Pettis
SSC-Insane
SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)

Group: General Forum Members
Points: 24177 Visits: 37948
First thing you may want to do is compare the actual execution plans for the query from each run. See if there are any differences there. You may want to post those here as well, just save them as .sqlplan files and attach them to a post.

Cool
Lynn Pettis

For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here or when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here and here
Managing Transaction Logs

SQL Musings from the Desert Fountain Valley SQL (My Mirror Blog)
McSQL
McSQL
SSC-Enthusiastic
SSC-Enthusiastic (162 reputation)SSC-Enthusiastic (162 reputation)SSC-Enthusiastic (162 reputation)SSC-Enthusiastic (162 reputation)SSC-Enthusiastic (162 reputation)SSC-Enthusiastic (162 reputation)SSC-Enthusiastic (162 reputation)SSC-Enthusiastic (162 reputation)

Group: General Forum Members
Points: 162 Visits: 299
Thanks, attachments added....can't see a "huge" difference between them to be honest...
Attachments
McSQL
McSQL
SSC-Enthusiastic
SSC-Enthusiastic (162 reputation)SSC-Enthusiastic (162 reputation)SSC-Enthusiastic (162 reputation)SSC-Enthusiastic (162 reputation)SSC-Enthusiastic (162 reputation)SSC-Enthusiastic (162 reputation)SSC-Enthusiastic (162 reputation)SSC-Enthusiastic (162 reputation)

Group: General Forum Members
Points: 162 Visits: 299
I just cleared the wait stats on the test box and re-ran the query to see if it helped track down the cause.

When I run the query directly on the server (Taking around 8-9 secs currently)
I get the wait types:

ASYNC_NETWRK_IO (50%)
PREEMPTIVE_OS_WAITFORSINGLEOBJECT (50%)


However, when I re-clear the wait counters, and run the same query from my desktop, I DON'T get the PREEMPTIVE_OS_WAITFORSINGLEOBJECT wait type, and the counters produce:

ASYNC_NETWORK_IO (99.9%)

Not sure why this is, when querying the same server, and I haven't taken wait times from the prod box to compare against yet...
McSQL
McSQL
SSC-Enthusiastic
SSC-Enthusiastic (162 reputation)SSC-Enthusiastic (162 reputation)SSC-Enthusiastic (162 reputation)SSC-Enthusiastic (162 reputation)SSC-Enthusiastic (162 reputation)SSC-Enthusiastic (162 reputation)SSC-Enthusiastic (162 reputation)SSC-Enthusiastic (162 reputation)

Group: General Forum Members
Points: 162 Visits: 299
No suggestions? Sad

I'll be working on this today, so if I find a solution/cause, I'll post it up...
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search