PRB: Transaction Log Restores Stop Responding with "Minimum Query Memory Is Not Available" Message in Error Log (298801)
The information in this article applies to:
This article was previously published under Q298801 SYMPTOMS
When the amount of physical memory changes from the server on which a transaction log backup is created to the server on which the restore is being processed, if index creation or rebuild activity is part of a transaction log backup, you may receive the following error message and the restore operation may never finish:
Processed NNNN pages for database 'dbname', file 'filename' on file 1.
This is combined with the following error message in the error log:
2001-03-18 14:13:48.85 spid13 Could not perform the requested operation because the minimum query memory is not available. Decrease the configured value for the 'min memory per query' server configuration option.
This occurs only when the physical memory on the server on which the transaction log is being restored is less than the memory on the server on which the backup was created.
CAUSE
The restore operation stops responding (hangs) when there is insufficient memory to process some records in the transaction log. If index creation is part of the transaction log backup on the server on which the backup was created, SQL Server requires a certain memory grant to perform the sort operations. During restore of the same transaction log, SQL Server attempts to acquire the same exact amount of memory to complete the index sort operation that was recorded in the transaction log backup. If the memory grant is not received, the thread that is attempting to perform the index sort causes the error message and the thread does not end gracefully. The parent thread waits on the thread that is performing the sort to return with an infinite timeout.
WORKAROUND
To work around this problem, follow these steps:
- Add more RAM to the server on which the logs are being restored to provide the necessary memory that is required to process the index creation during transaction log restores.
- Perform a full or differential backup to restart the backup sequence.
Modification Type: | Major | Last Reviewed: | 6/22/2001 |
---|
Keywords: | kbprb KB298801 |
---|
|