Event Id | 1204 |
Source | MSSQLServer |
Description | The instance of the SQL Server Database Engine cannot obtain a LOCK resource at this time. Rerun your statement when there are fewer active users. Ask the database administrator to check the lock and memory configuration for this instance, or to check for long-running transactions. |
Event Information | According to Microsoft : Cause : SQL Server cannot obtain a lock resource. This can be caused by either of the following reasons: 1.SQL Server cannot allocate more memory from the operating system, either because other processes are using it, or because the server is operating with the max server memory option configured. 2.The lock manager will not use more than 60 percent of the memory available to SQL Server. Resolution : If you suspect that SQL Server cannot allocate sufficient memory, try the following: 1.If applications besides SQL Server are consuming resources, try stopping these applications or consider running them on a separate server. This will remove release memory from other processes for SQL Server. 2.If you have configured max server memory, increase max server memory setting. If you suspect that the lock manager has used the maximum amount of available memory identify the transaction that is holding the most locks and terminate it. The following script will identify the transaction with the most locks: SELECT request_session_id, COUNT (*) num_locks FROM sys.dm_tran_locks GROUP BY request_session_id ORDER BY count (*) DESC Take the highest session id, and terminate it using the KILL command. |
Reference Links | Event ID 1204 from Source MSSQLServer |
Catch threats immediately
We work side-by-side with you to rapidly detect cyberthreats
and thwart attacks before they cause damage.