Repository navigation
Explain memory growth with a large thread pool - #1796
Merged
Merged
Conversation
After traffic bursts a high THREAD_POOL_SIZE can keep gigabytes of memory in each process until a memory limit kills it. The performance guide now shows how to spot this and how to cap it, and the thread pool entries no longer say a high value costs nothing while idle.
The memory after a burst sits in the pools glibc gave the threads, so the thread pool entries now say that.
2000 and above keeps a lot of memory after traffic bursts, so the guides now start servers at 500 and say to raise it only when requests queue under load. Weak hardware keeps the default or about 100.
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
open-webui-docs-search | 18c6b4e | Dec 04 2026, 11:23 AM |
Open WebUI now returns freed memory to the system after traffic bursts, so the performance guide explains the two settings behind it and the reference lists them with their defaults and cost. The thread pool advice drops the memory warnings and only says to raise it when requests still queue.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
After traffic bursts the memory of each Open WebUI process could keep climbing until a container memory limit killed it and streaming replies got stuck. Open WebUI now returns that memory to the system by default. The performance guide explains why it happens and the two settings behind the fix, and the reference lists them with their defaults and cost. The recommended thread pool size for servers is 500. The same lines are updated on #1793 and #1794, so all three merge cleanly in any order.