Skip to content

Explain memory growth with a large thread pool - #1796

Merged
Classic298 merged 4 commits into
devfrom
docs-thread-pool-memory
Dec 4, 2026
Merged

Classic298 merged 4 commits into
devfrom
docs-thread-pool-memory

Conversation

@Classic298

@Classic298 Classic298 commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

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.

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.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

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.
@Classic298
Classic298 merged commit 238dcae into dev Dec 4, 2026
2 checks passed
@Classic298
Classic298 deleted the docs-thread-pool-memory branch December 4, 2026 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant