# org.apache.kafka.common.errors.GroupMaxSizeReachedException：消费者组已达到最大大小限制

- **ID:** `kafka/group-max-size-exceeded`
- **领域:** kafka
- **类别:** resource_error
- **验证级别:** ai_generated
- **修复率:** 88%

## 根因

消费者组的成员数超过了 group.max.size 配置的最大限制。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 3.5.0 | active | — | — |
| 3.6.0 | active | — | — |
| 3.7.0 | active | — | — |

## 解决方案

1. ```
   Increase group.max.size on the broker via kafka-configs.sh:
kafka-configs.sh --bootstrap-server localhost:9092 --entity-type brokers --entity-default --alter --add-config group.max.size=20
   ```
2. ```
   Reduce the number of consumer instances in the group by consolidating partitions to fewer consumers.
   ```

## 无效尝试

- **** — Restarting consumers individually does not resolve the underlying configuration limit. (95% 失败率)
- **** — Deleting offsets only resets consumption progress, not the group membership count. (90% 失败率)
