golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
121.56k stars 17.41k forks source link

x/pkgsite-metrics: failed to create new OS thread with new gvisor version #65215

Open zpavlinovic opened 6 months ago

zpavlinovic commented 6 months ago

Go version

1.21.2

Output of go env in your module/workspace:

-

What did you do?

Run pkgsite-metrics in production.

What did you see happen?

'go clean' failed with output runtime: failed to create new OS thread

The number of long-lived processes grows with each served request. After about 500 requests, the number of alive processes is > 32k and that kills the server. This happens with a new version of runsc 20240115.0

What did you expect to see?

The number of processes should remain near constant.

zpavlinovic commented 6 months ago

Probably related to https://github.com/google/gvisor/issues/9834

gopherbot commented 6 months ago

Change https://go.dev/cl/557555 mentions this issue: internal/worker: reset server after certain number of requests