{
  "id": "data/redis-oom-command-not-allowed",
  "signature": "Redis OOM command not allowed when used memory > 'maxmemory'",
  "signature_zh": "Redis内存不足：已用内存超过'maxmemory'时不允许执行命令",
  "regex": "OOM command not allowed when used memory > 'maxmemory'",
  "domain": "data",
  "category": "resource_error",
  "subcategory": null,
  "root_cause": "Redis reaches its configured maxmemory limit and the eviction policy is set to noeviction, causing write commands to fail with OOM error.",
  "root_cause_type": "generic",
  "root_cause_zh": "Redis达到配置的maxmemory限制，且逐出策略设置为noeviction，导致写入命令因内存不足而失败。",
  "versions": [
    {
      "version": "Redis 6.2",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Redis 7.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Redis 7.2",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Without setting an eviction policy, Redis will fill up again quickly.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "If the system has no free RAM, Redis will swap to disk, severely degrading performance.",
      "fail_rate": 0.75,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Change the eviction policy to allkeys-lru to automatically evict least recently used keys when memory is full.",
      "success_rate": 0.93,
      "how": "Change the eviction policy to allkeys-lru to automatically evict least recently used keys when memory is full.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Add more RAM to the server and increase maxmemory to a safe limit below total RAM.",
      "success_rate": 0.85,
      "how": "Add more RAM to the server and increase maxmemory to a safe limit below total RAM.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Change the eviction policy to allkeys-lru to automatically evict least recently used keys when memory is full.",
    "Add more RAM to the server and increase maxmemory to a safe limit below total RAM."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://redis.io/docs/latest/operate/oss_and_stack/management/admin/#maxmemory",
  "official_doc_section": null,
  "error_code": "OOM",
  "verification_tier": "ai_generated",
  "confidence": 0.89,
  "fix_success_rate": 0.87,
  "resolvable": "true",
  "first_seen": "2023-08-12",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}