SQL Server 2008 r2 high cpu usage -


we running photo sharing website in windows server 2008 r2 ent edition & sql server 2008 r2 ent edition. server configuration xeon 5620 48gb ram & 4 x 450gb 15k scsi hdd's.

we have minimum 50 , max 500 active connections on db per last month average. average same. 1 month our sql server cpu usage less 1% it's using minimum 25% , upto 100% always. problem facing last 8 days. last 8 days anwards our cpu usage increasing when start sql service & when stop it's normal only. request can 1 tell me how solve problem.

agreed tomtom, have bottom of it. guess lack/inaccurate indexing, results high cpu w/o high number of sessions. check information in dmv's ( careful though, they're hints sql engine, should analyzed trained professional ) :

select   migs.avg_total_user_cost * (migs.avg_user_impact / 100.0) * (migs.user_seeks + migs.user_scans) improvement_measure,   'create index [missing_index_' + convert (varchar, mig.index_group_handle) + '_' + convert (varchar, mid.index_handle)   + '_' + left (parsename(mid.statement, 1), 32) + ']'   + ' on ' + mid.statement   + ' (' + isnull (mid.equality_columns,'')     + case when mid.equality_columns not null , mid.inequality_columns not null ',' else '' end     + isnull (mid.inequality_columns, '')   + ')'   + isnull (' include (' + mid.included_columns + ')', '') create_index_statement,   migs.*, mid.database_id, mid.[object_id] sys.dm_db_missing_index_groups mig inner join sys.dm_db_missing_index_group_stats migs on migs.group_handle = mig.index_group_handle inner join sys.dm_db_missing_index_details mid on mig.index_handle = mid.index_handle migs.avg_total_user_cost * (migs.avg_user_impact / 100.0) * (migs.user_seeks + migs.user_scans) > 10 order migs.avg_total_user_cost * migs.avg_user_impact * (migs.user_seeks + migs.user_scans) desc 

Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -