Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 12»»

SQL Server 2008 Expand / Collapse
Author
Message
Posted Tuesday, November 19, 2013 8:17 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Yesterday @ 2:11 PM
Points: 54, Visits: 1,270
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.
Post #1515587
Posted Tuesday, November 19, 2013 8:27 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Yesterday @ 4:45 AM
Points: 2,931, Visits: 2,951
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
www.seavus.com
Post #1515597
Posted Tuesday, November 19, 2013 8:57 AM
SSCarpal Tunnel

SSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal Tunnel

Group: General Forum Members
Last Login: Yesterday @ 12:58 PM
Points: 4,189, Visits: 3,227
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
Post #1515624
Posted Tuesday, November 19, 2013 9:03 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Yesterday @ 4:45 AM
Points: 2,931, Visits: 2,951
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
www.seavus.com
Post #1515627
Posted Tuesday, November 19, 2013 12:23 PM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Yesterday @ 2:11 PM
Points: 54, Visits: 1,270
I want to find out if my server has IO bottlenecks and also Memory pressure. What information do i need to provide here? Thanks
Post #1515728
Posted Tuesday, November 19, 2013 12:50 PM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Yesterday @ 4:45 AM
Points: 2,931, Visits: 2,951
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
www.seavus.com
Post #1515742
Posted Tuesday, November 19, 2013 1:52 PM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Yesterday @ 2:11 PM
Points: 54, Visits: 1,270
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
Post #1515770
Posted Tuesday, November 19, 2013 2:03 PM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Yesterday @ 4:45 AM
Points: 2,931, Visits: 2,951
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
www.seavus.com
Post #1515773
Posted Tuesday, November 19, 2013 2:16 PM


Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: 2 days ago @ 11:48 AM
Points: 588, Visits: 896
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
Post #1515778
Posted Tuesday, November 19, 2013 2:21 PM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Yesterday @ 2:11 PM
Points: 54, Visits: 1,270
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
Post #1515783
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse