Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 maintenance plan question

Author  Topic 

helpme
Posting Yak Master

141 Posts

Posted - 2010-06-02 : 11:42:02
We have a maintenance plan that runs weekly to rebuild indexes. It used to finish, but now we usually wind up stopping it after it runs several hours. The only message I see in the logs is 'A significatn part of the sql server process memory has been paged out. This may result in a performance degradation'. We have several tables in multiple databases, but most are pretty small. The total size of all databases is about 5g. Are we doing something wrong, or are we asking too much of the server? (virtual server running sql 2008, windows 2008, about 2g of memory).

jimmycjen
Starting Member

15 Posts

Posted - 2010-06-08 : 16:03:38
There could be many reasons. Start with hardware (1) how many cpus and what are their speed (2) the data resides on a single hard drive or RAID, and what's drive speed ? (3) OS running 32-bit or 64-bit ? If 64-bit, you should add more RAM.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-06-08 : 19:17:20
The maintenance plan to rebuild indexes does not make good decisions on what needs to be rebuilt. For this reason, most people use custom code instead. Here's my script in case you don't want to roll your own (note that you don't need to understand the code, just how to execute it): http://weblogs.sqlteam.com/tarad/archive/2009/11/03/DefragmentingRebuilding-Indexes-in-SQL-Server-2005-and-2008Again.aspx

If custom code is used instead, you may be able to avoid this issue as perhaps you won't need to rebuild everything. Please note that Microsoft actually doesn't recommend that indexes be rebuilt on a scheduled basis but rather we should reorganize them. Rebuilding indexes should be rarely done. For this reason, you should consider using reorganize instead (which my custom code supports, supports both rebuild and reorganize).

Are you running 64-bit of SQL Server 2008? How about the OS? What edition of SQL Server are you using? Standard, Enterprise, ...?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -