redis memory_error ai_generated true

Error: Client closed connection - output buffer limit exceeded

ID: redis/client-output-buffer

Also available as: JSON · Markdown
80%Fix Rate
83%Confidence
3Evidence
2023-01-01First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
7 active

Root Cause

Redis closed client connection because output buffer exceeded configured limit.

generic

Workarounds

  1. 85% success Fix slow client: consume responses faster or reduce subscription scope
    Process pub/sub messages in separate thread; reduce SUBSCRIBE patterns
  2. 80% success Tune client-output-buffer-limit for specific client types
    client-output-buffer-limit pubsub 64mb 32mb 60

Dead Ends

Common approaches that don't work:

  1. Set output buffer limits to unlimited 90% fail

    Slow clients can cause Redis to use unbounded memory and OOM.

  2. Increase server RAM without fixing slow client 75% fail

    Slow client will eventually fill any amount of RAM.