v.22.6Improvement
Set global_memory_usage_overcommit_max_wait_microseconds to 5 seconds and enhance OOM exception message with OvercommitTracker info
Setglobal_memory_usage_overcommit_max_wait_microsecondsdefault value to 5 seconds. Add info aboutOvercommitTrackerto OOM exception message. AddMemoryOvercommitWaitTimeMicrosecondsprofile event. #37460 (Dmitry Novik).
Why it matters
This feature improves memory overcommit handling by providing a sensible default wait time for memory overcommit requests, making out-of-memory (OOM) exception messages more informative with details from theOvercommitTracker. Additionally, the new profile event allows monitoring of how long queries wait due to memory overcommit, which helps in performance tuning and troubleshooting.How to use it
The new default value ofglobal_memory_usage_overcommit_max_wait_microseconds is automatically applied. Users can monitor memory overcommit wait time by querying the MemoryOvercommitWaitTimeMicroseconds profile event. When encountering OOM errors, check exception messages for enhanced OvercommitTracker details to gain insights into memory allocation issues.