Go gRPC server returns HTTP/2 GOAWAY under high concurrent RPCs — client sees stream resets
Environment
Go 1.20 gRPC server (google.golang.org/grpc v1.55), running on Debian 12 VMs behind AWS NLB; clients are varied (Go, Java) making 1000+ concurrent unary RPCs per second to the same server instance.
Symptoms
Clients intermittently receive HTTP/2 GOAWAY frames and STREAM_CLOSED errors mid-request under peak concurrency. Error rate spikes correlate with traffic bursts; successful RPCs complete normally when concurrency reduced.
Observations
Server logs show repeated 'transport: http2Server.HandleStreams failed' followed by connection close. netstat shows many TIME_WAIT connections. Strace on server process shows bursts of accept/read syscalls, no obvious user-space panic. Increasing server's MaxConcurrentStreams at application layer not previously configured.
Already attempted
Restarted server process (temporary relief), increased Go runtime GOMAXPROCS to match CPU cores, bumped keepalive settings, moved NLB healthcheck from TCP to HTTP, ran load tests locally reproducing GOAWAY only under high concurrency. Did not change application code.
Question
What are the likely causes of GOAWAY under high concurrency in this Go gRPC deployment, and what safe diagnostics and mitigations should I run to narrow root cause and restore stable RPC throughput?
Verified community troubleshooting
No answers yet..
Incident analysis
Most likely causes
Summary
Suggested Fixes
Continue troubleshooting
Related troubles
Matched from the title, description and tags
- Programming40% match
gRPC Java server returns HTTP/2 GOAWAY under sustained concurrency when keepalive_time is less than proxy idle timeout
Solved1 answer - Cloud Computing24% match
Kubernetes Ingress returns 404 only for external gRPC clients behind cloud load balancer
Open0 answers - Web Development23% match
Next.js serverless API on Vercel returns intermittent 504s for long upstream requests when HTTP keep-alive sockets are exhausted
Open0 answers - Networking22% match
HAProxy returns HTTP/2 GOAWAY to clients after enabling an ACL using ssl_fc variables
Solved1 answer - Servers21% match
NGINX reloads during certificate rotation cause intermittent 503/HTTP2 stream resets under load
Open1 answer