mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #22206] issue: [Critical] Multiple API endpoints load entire dataset into memory at once, causing OOM crash and service unavailability #35190
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ShirasawaSama on GitHub (Mar 4, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/22206
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
dev
Ollama Version (if applicable)
No response
Operating System
MacOS
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
These endpoints should use pagination or streaming to handle large datasets, avoiding loading all data into memory at once.
Actual Behavior
These endpoints load the entire dataset into memory at once, causing Out-of-Memory (OOM) crashes and service unavailability when the data volume is large.
Steps to Reproduce
Just call the APIs.
Logs & Screenshots
.
Additional Information
OOM risk by priority
High — Endpoints that will OOM for regular users
GET /chats/allGET /evaluations/feedbacks/userGET /files/Medium — Endpoints that will OOM for admins
GET /evaluations/feedbacks/allGET /evaluations/feedbacks/all/exportGET /chats/all/dbLow — Scale-dependent; usually small
GET /prompts/GET /models/exportGET /tools/exportGET /skills/exportGET /functions/exportGET /users/allGET /channels/(full list)@gaby commented on GitHub (Mar 8, 2026):
@ShirasawaSama This is actually a security issue; it should have been reported privately, not publicly.
Ping @tjbck @Classic298
@Classic298 commented on GitHub (Mar 8, 2026):
UNTESTED reference-only PR: https://github.com/open-webui/open-webui/pull/22464
@ShirasawaSama commented on GitHub (Mar 9, 2026):
@gaby This issue has persisted since version 0.5, so a little more time won't make much difference.