SQL Server Error 1437: Fix Could Not Post Message
In this article
SQL Server error 1437 ("Could not post message from server instance") is a memory and resource-pressure error, not a corruption error. It means SQL Server tried to send an internal message to a worker thread and could not allocate the small amount of memory needed to do so. The fix is to relieve memory pressure, reduce the number of concurrent connections or worker threads, and make sure the service account has the rights it needs. Most cases clear after a restart plus a check of the server's memory configuration, but you should treat it as a symptom and find out why memory ran out.
What You'll Need
- Administrative access to the SQL Server machine (local admin or a login with sysadmin rights).
- Permission to restart the SQL Server service, and a maintenance window if the instance is in production.
- Access to SQL Server Management Studio (SSMS) or another client that can run T-SQL queries.
- The SQL Server error log and Windows Event Viewer, for confirming the timing of the error.
- Knowledge of the instance's current max server memory setting and whether the server is shared with other memory-hungry software.
Step-by-Step
- Confirm the error and its timing. Open SQL Server Management Studio, connect to the instance, and run
EXEC sp_readerrorlog;to read the current error log. Look for error 1437 alongside entries about memory, worker threads, or "insufficient memory". Cross-check Windows Event Viewer (Windows Logs > Application) for matching entries at the same time. If the error appears once during a restart, it may be harmless; if it repeats under load, continue. - Check whether the instance is under memory pressure. Run
SELECT object_name, counter_name, cntr_value FROM sys.dm_os_performance_counters WHERE counter_name LIKE '%Memory%';and look at "Memory Grants Pending" (should be 0) and "Stolen Server Memory". A non-zero Memory Grants Pending value, or a steadily climbing stolen memory figure, points to pressure. Also runSELECT * FROM sys.dm_os_sys_memory;to see the physical memory available to Windows. - Set a sensible max server memory. On a dedicated SQL Server, open the instance's properties in SSMS, go to the Memory page, and set "Maximum server memory" to leave at least 2–4 GB free for Windows and any other software. On a shared server, leave more. Do not set it too low, or SQL Server will be starved of buffer pool memory and the error can return. The exact value depends on total RAM and what else runs on the box; labels can differ slightly between SSMS versions.
- Check the "min server memory" setting. A very high minimum can lock memory away from the operating system. In the same Memory page, keep the minimum at the default (usually 0) unless you have a specific reason to raise it.
- Look for connection and worker-thread exhaustion. Run
SELECT COUNT(*) FROM sys.dm_exec_connections;andSELECT COUNT(*) FROM sys.dm_exec_sessions;. Compare them with the configured maximum worker threads (visible insys.dm_os_sys_info). A connection pool leak in an application, or a client opening thousands of connections, is a common cause of 1437. Fix the application's connection handling rather than raising limits blindly. - Check for memory-hungry queries. Run
SELECT * FROM sys.dm_exec_query_memory_grants;to see queries waiting for memory. A single badly written query (huge sort, hash join, or cartesian join) can consume the memory SQL Server needs for internal messages. Tune or reschedule that query. - Verify the service account. Confirm the SQL Server service account has the "Lock pages in memory" right only if you have deliberately configured it, and that it has the required permissions on the SQL Server directories. A misconfigured service account can cause internal messaging failures. Check the SQL Server error log for login or permission errors around the same time.
- Restart the SQL Server service. In SQL Server Configuration Manager, right-click the instance and choose Restart. This clears transient memory fragmentation and resets worker threads. Warn users first: all connections drop and in-flight transactions roll back. If the error returns soon after the restart, the cause is still present and you should revisit steps 2–6.
- Monitor after the change. Keep an eye on Memory Grants Pending and the error log for a few days. If 1437 reappears, capture the full error log and the output of the memory queries above before restarting again, so you have evidence of what was happening.
Common Mistakes
- Setting max server memory too low. People sometimes cap SQL Server at a few hundred MB to "fix" memory errors, which starves the buffer pool and makes things worse.
- Ignoring the application. If a client is leaking connections, restarting SQL Server only buys time. The pool leak must be fixed in the application.
- Restarting without collecting evidence. Once the service restarts, the memory state that caused the error is gone. Capture the error log and query output first.
- Assuming corruption. Error 1437 is a resource error. Running DBCC CHECKDB is fine for peace of mind, but it will not fix 1437.
- Changing worker-thread settings without understanding them. Raising the maximum worker thread count can mask a connection leak and increase memory use.
Tips
- Schedule regular index and statistics maintenance; poor statistics lead to oversized memory grants.
- Use the "max degree of parallelism" setting to stop a single query from grabbing every core and a large slice of memory.
- If the server also runs other software (reporting tools, backup agents, antivirus), account for that when sizing max server memory.
- Keep SQL Server and the operating system patched; some memory-management fixes ship in cumulative updates.
- Record the instance's memory settings somewhere so you can compare after a change.
Troubleshooting
If the error persists after a restart, check the Windows Event Viewer for low-virtual-memory warnings and confirm the page file is large enough. If Memory Grants Pending stays above zero, identify the top memory-consuming queries with sys.dm_exec_query_stats and tune them. If connections keep climbing, review the application's connection string and pooling settings. If the service account was changed recently, revert it and test. When the error appears only at startup and the instance then runs normally, it is usually a transient condition and can be monitored rather than chased.
Frequently Asked Questions
Is error 1437 dangerous?
It is a resource warning, not data corruption. It can cause failed connections or timeouts, so treat it seriously, but it does not by itself damage databases.
Can I just restart SQL Server to fix it?
A restart often clears it temporarily. If the underlying memory pressure or connection leak remains, the error will return.
Does error 1437 mean I need more RAM?
Not always. It can be caused by a bad query, a connection leak, or a max server memory setting that is too high or too low. Diagnose before buying hardware.
Will increasing max server memory help?
Only if SQL Server is genuinely short of memory and the machine has free RAM. Raising it on a machine that is already short of memory makes things worse.
Does this error affect all databases on the instance?
Yes. It is an instance-level resource problem, so every database on that instance can be affected.
Where can I find more detail about the failure?
The SQL Server error log and Windows Event Viewer usually record the surrounding context, including memory and connection messages.