Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

SQL 2005 to 2008 SSRS CPU Spikes

Posted on 2011-02-10
5
655 Views
Last Modified: 2012-08-13
We recently migrated from SQL 2005 to SQL 2008.  Our SSRS reports worked fine in 2005.  Now that we are in 2008, when a report is run from a single user the CPU spikes to 100% and often the report ends up timing out.  We copied the database from our 2005 envirionment to our new 2008 environment.  We rebuilt the stats and indexes.

Help Experts.
0
Comment
Question by:cnewgard
  • 3
  • 2
5 Comments
 
LVL 28

Expert Comment

by:Ryan McCauley
ID: 34871347
Is it just this one particular report that spikes the CPU, or is it a number of different reports?

If it's just this one report, it's possible that the database engine is making a different index choice in 2008 than it was in 2005. Can you post the query it's using? Any remote linked servers or other complexity in th query, or is it pretty standard stuff?

Also, do you still have a 2005 SSRS instance around somewhere that you could use the test this report? If you do, then you may be able to compare the execution plan to see what's different since your upgrade.
0
 

Author Comment

by:cnewgard
ID: 34872572
All of our reports max the CPU.  I ended up installing an instance of SQL 2005 on the same box.  I moved my reports there and things are looking better.  I will check the execution plan of each and post my findings.
0
 

Author Comment

by:cnewgard
ID: 34872601
Also, there are no complexities in the query.  No linked servers.  All datasets from the report pull from a single reporting database on the server.
0
 
LVL 28

Accepted Solution

by:
Ryan McCauley earned 500 total points
ID: 34874663
That's really odd behavior, especially if there aren't any other circumstances in the queries that could cause the issue. Since it's happening across every report, it has to be a server-wide setting on your 2008 instance that's different than 2005.

Since you have a 2005 Reporting server handy, he's another questions - are the reports slow to execute on the 2008 SSRS instance, regardless of where the data is coming from (2005 or 2008), or are the reports slow to execute when they pull from a 2008 server? From what you're describing, it sounds like it's the first one, but I just wanted to clarify that.

Are you sure all the server settings are the same? x64/x86, degree of parallelism, installed on same disks (or at least some configuration), same memory allocation?
0
 

Author Closing Comment

by:cnewgard
ID: 34988573
Expert was correct.  Execution plans were different.  The reports were also slow to run on 2005, just slower on 2008.  We decided to revamp our reporting and optimize it for 2008.  Thanks for all of your help!
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how the fundamental information of how to create a table.

838 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question