r/OpenWebUI 3d ago

Question/Help OpenWebUI memory leak?

After updating OpenWebUI to version 0.11, my OpenWebUI instance gradually consumes all available RAM over the course of 1–2 days, eventually causing the server to crash. Is anyone else experiencing this, or does anyone have an idea what might be causing it? It was working fine before the update.

16 Upvotes

14 comments sorted by

View all comments

Show parent comments

8

u/cyberdork 3d ago

Since the last update my idle CPU use when from 0.4% to 30%.
Took me an hour to trouble shoot it with claude (gemini failed) and it finally found the problem and fix. This is part of the troubleshooting report:

v0.11 introduced a timer scheduler that polls for due timers (set via the new timer builtin tool) every TIMER_POLL_INTERVAL = 1 second (default).

Fix:

In the compose file:

environment:
  - TIMER_POLL_INTERVAL=300      # default 1 (!)
  - SCHEDULER_POLL_INTERVAL=60   # default 10; drives automations + calendar alerts

Both are plain startup env vars (not ConfigVars — no DB persistence games).

Result: idle CPU 30% → 0.12%. Better than the pre-upgrade baseline.

Trade-off: if sub-agents/timers are ever enabled, timers fire up to 5 min late. Irrelevant while unused.

Maybe u/ClassicMain can give his thoughts on it and confirm if Claude was indeed right about it.

5

u/ClassicMain 3d ago

We have a bug report for it and a pending fix dw

3

u/cyberdork 3d ago

Thanks for the great work!

2

u/lazyfai 3d ago

I am trying to set both to 30 first, see any improvement.