# rpc 错误：代码 = 资源耗尽，描述 = grpc：接收到的消息大于最大值

- **ID:** `go/grpc-max-concurrent-streams`
- **领域:** go
- **类别:** resource_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

服务器已达到其最大并发流数，通常是由于活动 RPC 过多。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 1.60.0 | active | — | — |

## 解决方案

1. **** (80% 成功率)
   ```
   Set a higher MaxConcurrentStreams on the server using grpc.MaxConcurrentStreams option.
   ```
2. **** (75% 成功率)
   ```
   Implement client-side rate limiting to control the number of concurrent RPCs.
   ```

## 无效尝试

- **** —  (60% 失败率)
- **** —  (50% 失败率)
