Open WebUI feels sluggish: the page takes ages to load, the model list spins, replies arrive in bursts, or the whole app freezes while CPU looks idle. The good news is that most slowness comes from a short list of causes, and each has a specific fix.
First, separate two different problems. If tokens stream slowly once a reply starts, the model is slow, which is an Ollama or GPU issue. If the interface, page loads or the wait before a reply are slow, Open WebUI itself needs tuning.
This guide covers both, with the exact settings and environment variables from the official performance docs as of December 2026.
- Slow tokens? Fix the model side:
ollama psshould show100% GPU. - Task model: set a small non-reasoning model for titles and tags in Admin Settings > Interface.
- Slow page load with many models: turn on Cache Base Model List and set
MODELS_CACHE_TTL=300. - Freezes under load: raise
THREAD_POOL_SIZE(servers: 2000). - Multi-user: PostgreSQL instead of SQLite; never SQLite on network storage.
- Replies in bursts: turn Stream Chat Response on and check proxy buffering.
Diagnose: Is It the Model or Open WebUI?
| What you see | Where the problem is | Jump to |
|---|---|---|
| Text streams slowly, a few words a second | Model / GPU | Model responses |
| Long pause before the first word, then normal speed | Model loading, context mismatch or task models | Task model |
| Page or model dropdown takes 10+ seconds | Model list fetching | Page loads |
| Reply appears in big chunks or all at once | Streaming settings or a proxy | Bursts |
| Whole app hangs, CPU and RAM look fine | Thread pool or database | Freezes |
| Memory keeps growing until restart | Document extraction or embeddings | RAG |
A quick test: run the same prompt directly with ollama run model in a terminal. If it is just as slow there, Open WebUI is not the cause.
Fix Slow Model Responses
- Check GPU offload: run
ollama ps. The PROCESSOR column should read100% GPU. A CPU share means the model plus its context does not fit in VRAM. - Lower the context if you raised it, or pick a smaller quant or model. Our Open WebUI context length guide explains the trade-off.
- Stop reloads: if
num_ctxdiffers between chat and background requests, Ollama reloads the model before replies. Set it once on the model. - Keep models loaded between chats with Ollama’s keep_alive; see our keep_alive guide.
Our Ollama slow fix guide covers the model side in depth, including drivers and multi-GPU.
Use a Fast Task Model
Open WebUI runs background tasks: chat titles, tags, follow-up suggestions and search queries. By default they use the chat model. If that is a big local model or a reasoning model, each task competes with your chat for the GPU, and a reasoning model can think for seconds before writing a three-word title.
- Open Admin Settings > Interface.
- Set the Local Task Model (for Ollama chats) to a tiny model such as
qwen3.5:2b,gemma4:e2borllama3.2:3b. - Set the External Task Model (for API chats) to a small cheap model such as
gemini-3.5-flash-liteor a Haiku-class Claude model. - Turn off tasks you do not need: Follow-up generation, Tags, or Title generation. Keep Autocomplete off (the default) because it fires on every keystroke.
The docs recommend a fast, small, non-reasoning model here. On a single GPU, pick one small enough to stay loaded next to the chat model.
Fix Slow Page Loads and Model Lists
Every page load asks each connection for its model list. With OpenRouter or another provider listing hundreds of models, that can take 10-15 seconds or more.
- Cache the base model list: Admin Settings > Connections > Cache Base Model List, or
ENABLE_BASE_MODELS_CACHE=True. It refreshes when you save Connections or click the refresh button next to the toggle. - Cache each connection’s response:
MODELS_CACHE_TTL=300keeps model lists for 5 minutes (default 1 second). - Trim the list: fill in Model IDs on a connection so Open WebUI stops fetching the full list.
- Remove dead connections: an unreachable URL makes every load wait for the timeout (
AIOHTTP_CLIENT_TIMEOUT_MODEL_LIST, default 10 seconds). Disable it with its toggle. See our connection error guide. - Avoid base64 icons in Actions and Filters. They are embedded in the model list on every load and can add megabytes per request.
Fix Replies That Arrive in Bursts
Open WebUI forwards each streamed line as soon as it is complete. If replies come in large chunks or only at the end, check in this order:
- Stream Chat Response is off. Check the model’s Advanced Params in Workspace > Models, the chat’s Controls and Settings > General. The model’s value wins.
- The chunk size is raised.
CHAT_RESPONSE_STREAM_DELTA_CHUNK_SIZEgroups updates. Set it to1to test. (On busy servers, 5-10 deliberately reduces CPU and network load.) - A reverse proxy buffers the stream. Turn off response buffering for Open WebUI in Nginx or your proxy.
- The provider sends text in chunks. Test the same prompt against the provider’s API directly.
- Antivirus or a web filter scans traffic. Try another network or browser.
Fix Freezes and Hangs
Thread pool too small
THREAD_POOL_SIZE caps concurrent blocking operations such as database calls and file I/O. Unset, the limit is 40, which the docs call far too low for production. When it is hit, requests queue and the whole app appears to hang while CPU and RAM look fine.
THREAD_POOL_SIZE=2000
On a Raspberry Pi or tiny VPS, keep the default or a few hundred, since each thread uses real memory.
Debug logging left on
GLOBAL_LOG_LEVEL=DEBUG builds and writes every message, whole request payloads included. Set it back to INFO, or WARNING on busy servers, and restart.
Hung providers
Model requests have no total timeout by default. Set AIOHTTP_CLIENT_STREAM_IDLE_TIMEOUT to end requests that stop sending data, or AIOHTTP_CLIENT_TIMEOUT (for example 1800) as a hard cap.
Database and Storage
- PostgreSQL for teams: SQLite is fine for one person but becomes a locking bottleneck with many users. Set
DATABASE_URL; our Open WebUI PostgreSQL guide covers migration. - Never SQLite on network storage: SQLite itself does not support NFS, SMB, Azure Files or network volumes. Symptoms include
/api/configtaking 10-20+ seconds and SSO logins spinning. Use a local SSD or PostgreSQL. - Throttle presence writes:
DATABASE_USER_ACTIVE_STATUS_UPDATE_INTERVAL=120halves the tiny “last active” writes (default 60, keep it under 180). - Session sharing: keep
DATABASE_ENABLE_SESSION_SHARINGoff on SQLite and weak hardware, where it causes slow admin pages. Consider it on well-resourced PostgreSQL. - Pool errors: on PostgreSQL,
QueuePool limit reachedmeans raiseDATABASE_POOL_SIZE(for example 15) andDATABASE_POOL_MAX_OVERFLOW.
Speed Up Document Uploads and RAG
- Memory grows until restart: the default content extractor uses pypdf, which the docs call the #1 cause of unexplained memory growth. Switch to an external engine such as Apache Tika (
CONTENT_EXTRACTION_ENGINE=tika) or Docling. - Slow embeddings: the default local SentenceTransformers model embeds one chunk at a time. Raise Embedding Batch Size in Admin Settings > Documents, or move embeddings to Ollama (
nomic-embed-text) or an API withRAG_EMBEDDING_ENGINE. Our Ollama embeddings guide helps. - Too many tiny chunks: use markdown header splitting with
CHUNK_MIN_SIZE_TARGET=1000. - Repeated query generation:
ENABLE_QUERIES_CACHE=Truereuses one search query for web search and RAG in the same turn.
More in our Open WebUI RAG guide.
Reduce RAM Use on Small Machines
- Slim image:
ghcr.io/open-webui/open-webui:slimdrops PyTorch and the bundled models, about 200 MB versus 1.6 GB. It needs external embeddings, document extraction and speech. - Browser speech-to-text:
AUDIO_STT_ENGINE=webruns transcription on the user’s device instead of loading Whisper on the server. - No local reranker or local TTS unless you need them.
- Cap SQLite memory on tiny containers:
DATABASE_POOL_SIZE=8,DATABASE_SQLITE_PRAGMA_CACHE_SIZE=-2000,DATABASE_SQLITE_PRAGMA_MMAP_SIZE=0.
Recommended Profiles
| Setting | Single user desktop | Team server |
|---|---|---|
| Task model | Small local or cheap API model | External hosted model |
| Database | SQLite on local SSD | PostgreSQL |
| Embeddings | Ollama or API | External (required at scale) |
| Content extraction | Default is fine | Tika or Docling |
| Caching | MODELS_CACHE_TTL=300 |
Plus base model cache and query cache |
| Thread pool | Default | THREAD_POOL_SIZE=2000 |
| Streaming | Default | CHAT_RESPONSE_STREAM_DELTA_CHUNK_SIZE=7 |
After changing environment variables, restart the container. Updating to the latest release also brings performance fixes; see our update guide.
FAQ
Why is Open WebUI slower than running Ollama directly?
Usually background tasks (titles, tags) running on the same big model, a different context length causing reloads, or a slow model list. Set a small task model first.
Why does Open WebUI take long to load?
It fetches every connection’s model list on load. Enable the base model list cache and remove unreachable connections.
How do I make Open WebUI faster on a Raspberry Pi?
Use the slim image or keep defaults small, browser speech-to-text, a tiny or disabled task model, and capped SQLite settings.
Does Open WebUI need a GPU?
No. Open WebUI itself is a web app. The GPU matters for the model server, such as Ollama.
Why does the first message take so long?
The model is loading into memory. Later messages are fast unless the model unloads or reloads.
Should I use PostgreSQL for one user?
Not required. SQLite on a local SSD is fine for single users and small setups.



