Memory objects statistics


Job details

Name: Memory objects statistics
Platform: Sqlserver
Category: Performance
Description: This task collects the size of memory objects that are currently allocated by the SQL Server
Long description: This task collects the size of memory objects that are currently allocated by the SQL Server, and is primarily used to analyze memory usage and to identify possible memory leaks.
Version: 1.3
Default schedule: 7,27,47 * * *
Requires engine install: Yes
Compatibility tag: .[type=‘instance’ & databasetype=‘sqlserver’]/instance[maj_version > ‘2000′ & maj_version < ‘2012′ & hasengine=‘YES’ & engine_edition = ‘Microsoft SQL Server’]

Parameters

Name Default value Description
max memory object 10 The maximum number of memory objects which will be inserted into the historic table.
history threshold 3 Number of days to provide statistics for.

Job Summary

SELECT type, SUM(pages_allocated_count * (page_size_in_bytes/1024)) as "memory in use", SUM(max_pages_allocated_count * (page_size_in_bytes/1024)) as "Max memory used", count(*) "memory object count" FROM master.sys.dm_os_memory_objects GROUP BY type ORDER BY 2 DESC

Detailed Analysis

This monitoring job includes several components and dependencies which makes it a comprehensive tool for managing memory object statistics in SQL Server:

Key Components and Their Functionalities

Dependencies

Automation and Scheduling

Implementation Details

Reporting and Visualization

Importance

Overall, this dbWatch Control Center job is crucial for maintaining optimal performance and stability in SQL Server environments, particularly for specified versions where memory management can be critically linked to system performance.