MSSQL 2014: DB In-Memory OLTP File Group Available Space Total (\%)

Microsoft.SQLServer.2014.CollectionRule.DBFileGroupFx.SpaceFreePercent (Rule)

Collects the amount of free space available across all containers in the In-Memory OLTP File Group, expressed as percentage of the sum of disk free space and size of data stored in the In-Memory OLTP File Group.

Knowledge Base article:

Summary

The rule collects the amount of free space available across all containers in the In-Memory OLTP File Group, expressed as percentage of the sum of disk free space and size of data stored in the In-Memory OLTP File Group.

The In-Memory OLTP File Group Container folder typically grows over time as more data is added into In-Memory tables.

When the available disk space on the drive where the database storage location is configured becomes too low, failures can occur, preventing successful processing of data, delaying user’s queries, or affecting other applications, which share the same allocation of disk space.

The resolution(s) for low available disk space depend upon the root causes, which must be investigated in each case when this issue occurs. The condition may be alleviated by any of many potential approaches:

Copy the In-Memory OLTP File Group Container folder in its entirety to a new drive with more available space.

Overrideable Parameters

Name

Description

Default Value

Azure Maximum File Size (MB)

The maximum size of data file stored in Azure BLOB Storage. The workflow will consider this value as a maximum storage capacity for each file.

1048576

Enabled

 

Yes

Generates Alerts

 

No

Interval (seconds)

The recurring interval of time in seconds in which to run the workflow.

900

Script Delay (milliseconds)

This parameter sets the delay between consecutive T-SQL queries executed by the workflow. This may help to reduce the footprint generated by the workflow in case of large number of target objects. Please advise with Microsoft Support before changing this parameter.

0

Synchronization Time

The synchronization time specified by using a 24-hour format. May be omitted.

 

Timeout (seconds)

Specifies the time the workflow is allowed to run before being closed and marked as failed.

300

Element properties:

TargetMicrosoft.SQLServer.2014.DBFileGroupFx
CategoryPerformanceCollection
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.SQLServer.2014.DataSource.DBFileGroupFx.SizeRawPerfProvider Default
WriteToDB WriteAction Microsoft.SystemCenter.CollectPerformanceData Default
WriteToDW WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Default

Source Code:

<Rule ID="Microsoft.SQLServer.2014.CollectionRule.DBFileGroupFx.SpaceFreePercent" Target="SQL2014Core!Microsoft.SQLServer.2014.DBFileGroupFx" Enabled="true">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.SQLServer.2014.DataSource.DBFileGroupFx.SizeRawPerfProvider">
<IntervalSeconds>900</IntervalSeconds>
<SyncTime/>
<ConnectionString>$Target/Host/Host/Property[Type="SQL2014Core!Microsoft.SQLServer.2014.DBEngine"]/ConnectionString$</ConnectionString>
<ServerName>$Target/Host/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ServerName>
<SqlInstanceName>$Target/Host/Host/Property[Type="SQL2014Core!Microsoft.SQLServer.2014.ServerRole"]/InstanceName$</SqlInstanceName>
<ObjectName>In-Memory OLTP File Group</ObjectName>
<CounterName>DB In-Memory OLTP File Group Available Space Total (%)</CounterName>
<InstanceName/>
<DatabaseName>$Target/Host/Property[Type="SQL2014Core!Microsoft.SQLServer.2014.Database"]/DatabaseName$</DatabaseName>
<DBFileGroupId>$Target/Property[Type="SQL2014Core!Microsoft.SQLServer.2014.DBFileGroupFx"]/GroupID$</DBFileGroupId>
<Value>$Data/Property[@Name='FxFreeSpacePercent']$</Value>
<TimeoutSeconds>300</TimeoutSeconds>
<AzureMaxFileSizeMB>1048576</AzureMaxFileSizeMB>
<ScriptDelayMsec>0</ScriptDelayMsec>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>