Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Administration - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 6525

about Life time expectency

$
0
0
I saved values about Life time expectency every night.By this : [code="sql"]SELECT @@servername AS INSTANCE,[object_name],[counter_name], UPTIME_MIN = CASE WHEN[counter_name]= 'Page life expectancy' THEN (SELECT DATEDIFF(MI, MAX(login_time),GETDATE()) FROM master.sys.sysprocesses WHERE cmd='LAZY WRITER') ELSE ''END, [cntr_value] AS PLE_SECS,[cntr_value]/ 60 AS PLE_MINS,[cntr_value]/ 3600 AS PLE_HOURS,[cntr_value]/ 86400 AS PLE_DAYS,Getdate() as InfoDateFROM sys.dm_os_performance_countersWHERE [object_name] LIKE '%Manager%' AND[counter_name] = 'Page life expectancy'[/code]But I cant interprated it . (I will read the book that you advice : Accidental_DBA_EBook)Befor that these are the results : some values are not in range : (Fields : [cntr_value] AS PLE_SECS) such as 51 and 164 and ... and the day after came back to range . 7148 ----------- 2015-03-25 10:00:00.290665 ----------- 2015-03-26 10:00:01.1836511 ----------- 2015-03-27 10:00:00.770164 ----------- 2015-03-28 10:00:00.4072240 ----------- 2015-03-29 10:00:00.35051 ----------- 2015-03-30 10:00:00.8271886 ----------- 2015-03-31 10:00:00.7879643 ----------- 2015-04-01 10:00:00.15731308 ----------- 2015-04-02 10:00:00.1406474 ----------- 2015-04-03 10:00:00.9101179 ----------- 2015-04-04 10:00:00.753406 ----------- 2015-04-05 10:00:00.7501593 ----------- 2015-04-06 10:00:00.230541 ----------- 2015-04-07 10:00:01.2733924 ----------- 2015-04-08 10:00:00.5434808 ----------- 2015-04-09 10:00:00.7205060 ----------- 2015-04-10 10:00:00.2535375 ----------- 2015-04-11 10:00:01.1102617 ----------- 2015-04-12 10:00:00.20314251 ----------- 2015-04-13 10:00:00.5437595 ----------- 2015-04-14 10:00:00.22793996 ----------- 2015-04-15 10:00:00.603whats the meaning of these ?

Viewing all articles
Browse latest Browse all 6525

Trending Articles