SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SQL Server 2008


SQL Server 2008

Author
Message
Grace09
Grace09
SSC-Enthusiastic
SSC-Enthusiastic (152 reputation)SSC-Enthusiastic (152 reputation)SSC-Enthusiastic (152 reputation)SSC-Enthusiastic (152 reputation)SSC-Enthusiastic (152 reputation)SSC-Enthusiastic (152 reputation)SSC-Enthusiastic (152 reputation)SSC-Enthusiastic (152 reputation)

Group: General Forum Members
Points: 152 Visits: 1710
How can I find out if my SQL Server is under stress? Here is the version information,

Microsoft SQL Server 2008 R2 (RTM) - 10.50.1600.1 (X64)
Apr 2 2010 15:48:46
Copyright (c) Microsoft Corporation
Standard Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1)

I am not sure what information should be provided. I will provide more if needed. Thanks in advance for helping me.
Igor Micev
Igor Micev
SSCertifiable
SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)

Group: General Forum Members
Points: 6957 Visits: 5130
What do you mean by stress more concretely?
It can be anything from IO bottlenecks, high CPU utilization, Memory issues (memory pressure) , blocking and deadlocking ...

Igor Micev,
SQL Server developer at Seavus
My blog: www.igormicev.com
Ed Wagner
Ed Wagner
SSC-Insane
SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)

Group: General Forum Members
Points: 21738 Visits: 10311
Generally speaking, there are two approaches to this. The first way is to use the DMVs to find out what's going on. Tim Ford has put together a good "periodic table of DMVs" that may be able to help you, but this is only a reference. You're going to have to dig into each one to figure out how to best use it. He published this at http://thesqlagentman.com/periodic-table/ if you're interested in it.

The second approach is to use software to monitor your server. The activity monitor in SSMS can tell you what's going on right now, but it doesn't handle history. There are products out there (SQL Sentry, Red Gate SQL Monitor, etc.) that will keep track of history and load, but they all cost money.

To help any further, IgorMi is right - we're going to need some information about what's you're after.


Tally Tables - Performance Personified
String Splitting with True Performance
Best practices on how to ask questions
Igor Micev
Igor Micev
SSCertifiable
SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)

Group: General Forum Members
Points: 6957 Visits: 5130
A good start is a book. On this site you have some books: http://www.sqlservercentral.com/Books/

One really good is
"Troubleshooting SQL Server
A Guide for the Accidental DBA
Jonathan Kehayias and Ted Krueger"

Regards
IgorMi

Igor Micev,
SQL Server developer at Seavus
My blog: www.igormicev.com
Grace09
Grace09
SSC-Enthusiastic
SSC-Enthusiastic (152 reputation)SSC-Enthusiastic (152 reputation)SSC-Enthusiastic (152 reputation)SSC-Enthusiastic (152 reputation)SSC-Enthusiastic (152 reputation)SSC-Enthusiastic (152 reputation)SSC-Enthusiastic (152 reputation)SSC-Enthusiastic (152 reputation)

Group: General Forum Members
Points: 152 Visits: 1710
I want to find out if my server has IO bottlenecks and also Memory pressure. What information do i need to provide here? Thanks
Igor Micev
Igor Micev
SSCertifiable
SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)

Group: General Forum Members
Points: 6957 Visits: 5130
For IO bottlenecks you need sys.dm_io_virtual_file_stats and sys.dm_io_pending_io_requests
For Memory pressure you can use sys.dm_os_buffer_descriptors, sys.dm_os_performance_counters and others.
The full grouped list of the dynamic views is here http://technet.microsoft.com/en-us/library/ms188754.aspx


For e.g. you can find the Page Life Expectancy using this query

SELECT 
ple.[Node]
,LTRIM(STR([PageLife_S]/3600))+':'+REPLACE(STR([PageLife_S]%3600/60,2),SPACE(1),'0')+':'+REPLACE(STR([PageLife_S]%60,2),SPACE(1),'0') [PageLife]
,ple.[PageLife_S]
,dp.[DatabasePages] [BufferPool_Pages]
,CONVERT(DECIMAL(15,3),dp.[DatabasePages]*0.0078125) [BufferPool_MiB]
,CONVERT(DECIMAL(15,3),dp.[DatabasePages]*0.0078125/[PageLife_S]) [BufferPool_MiB_S]
FROM
(
SELECT [instance_name] [node],[cntr_value] [PageLife_S] FROM sys.dm_os_performance_counters
WHERE [counter_name] = 'Page life expectancy'
) ple
INNER JOIN
(
SELECT [instance_name] [node],[cntr_value] [DatabasePages] FROM sys.dm_os_performance_counters
WHERE [counter_name] = 'Database pages'
) dp ON ple.[node] = dp.[node]



Regards
IgorMi

Igor Micev,
SQL Server developer at Seavus
My blog: www.igormicev.com
Grace09
Grace09
SSC-Enthusiastic
SSC-Enthusiastic (152 reputation)SSC-Enthusiastic (152 reputation)SSC-Enthusiastic (152 reputation)SSC-Enthusiastic (152 reputation)SSC-Enthusiastic (152 reputation)SSC-Enthusiastic (152 reputation)SSC-Enthusiastic (152 reputation)SSC-Enthusiastic (152 reputation)

Group: General Forum Members
Points: 152 Visits: 1710
here is the result from the query, How should I interpret it? Thanks.

Node PageLife PageLife_S BufferPool_Pages BufferPool_MiB BufferPool_MiB_S
12:08:19 43699 5359046 41867.547 0.958
000 13:30:31 48631 1318060 10297.344 0.212
001 12:42:02 45722 1296655 10130.117 0.222
002 9:53:55 35635 1443304 11275.813 0.316
003 13:12:14 47534 1301027 10164.273 0.214
Igor Micev
Igor Micev
SSCertifiable
SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)

Group: General Forum Members
Points: 6957 Visits: 5130
Grace09 (11/19/2013)
here is the result from the query, How should I interpret it? Thanks.

Node PageLife PageLife_S BufferPool_Pages BufferPool_MiB BufferPool_MiB_S
12:08:19 43699 5359046 41867.547 0.958
000 13:30:31 48631 1318060 10297.344 0.212
001 12:42:02 45722 1296655 10130.117 0.222
002 9:53:55 35635 1443304 11275.813 0.316
003 13:12:14 47534 1301027 10164.273 0.214


PLE is just one of the many performance counters. Having PLE in 9-13 hours is just a perfect situation. With this results you don't have a memory pressure.

Regards,
IgorMi

Igor Micev,
SQL Server developer at Seavus
My blog: www.igormicev.com
Keith Tate
Keith Tate
Ten Centuries
Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)

Group: General Forum Members
Points: 1254 Visits: 979
Are you just curious how your system is performing? Taking a baseline? Or is an issue you are dealing with and need help with? If you are having some performance issues please describe them and someone should be able to help you get the metrics you need.



Microsoft Certified Master - SQL Server 2008
Follow me on twitter: @keith_tate

Forum Etiquette: How to post data/code on a forum to get the best help
Grace09
Grace09
SSC-Enthusiastic
SSC-Enthusiastic (152 reputation)SSC-Enthusiastic (152 reputation)SSC-Enthusiastic (152 reputation)SSC-Enthusiastic (152 reputation)SSC-Enthusiastic (152 reputation)SSC-Enthusiastic (152 reputation)SSC-Enthusiastic (152 reputation)SSC-Enthusiastic (152 reputation)

Group: General Forum Members
Points: 152 Visits: 1710
Thank you, IgorMi. Since PLE is just one of performance counters. Do I need to look at other performance counter to determine the memory issue? Or as long as PLE is in good number, that's good enough? I was reading somewhere to use sys.dm_os_ring_buffers to determine the memory pressure. I don't quite understand the result from querying sys.dm_os_ring_buffers table, which make me curious. Sorry if I ask some 'silly' questions. I am kind of new to the sql server performance troubleshooting. Thanks!

IgorMi (11/19/2013)
Grace09 (11/19/2013)
here is the result from the query, How should I interpret it? Thanks.

Node PageLife PageLife_S BufferPool_Pages BufferPool_MiB BufferPool_MiB_S
12:08:19 43699 5359046 41867.547 0.958
000 13:30:31 48631 1318060 10297.344 0.212
001 12:42:02 45722 1296655 10130.117 0.222
002 9:53:55 35635 1443304 11275.813 0.316
003 13:12:14 47534 1301027 10164.273 0.214


PLE is just one of the many performance counters. Having PLE in 9-13 hours is just a perfect situation. With this results you don't have a memory pressure.

Regards,
IgorMi

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