New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
runtime: gc: fatal issue: stopTheWorldWithSema cost 158 seconds #37754
Comments
during this gc, no normal business log except schedule log:
the numbers of runqueue increase . |
and a scvg log:
|
I suspect that a certain gouroutine is constantly creating new goroutines and is unable to reach the safe point. STW cannot be completed. |
at last , the idle thread from 'idlethreads=137' to 'idlethreads=138', then it finished. |
I'm no expert or stakeholder, but I noticed you're using go1.12... In go1.14 goroutines are now asynchronously pre-emptible: https://golang.org/doc/go1.14#runtime so maybe it's worth upgrading. |
Can't find the relevant problem point, any suggestions? |
Thanks, I will try it. |
Timed out in state WaitingForInfo. Closing. (I am just a bot, though. Please speak up if this is a mistake or you have the requested information.) |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
uncertain
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Occasional gc issues with my online service
I added the code in mgo.go
So it can print the time it cost. I got the log:
What did you expect to see?
this func cost too long to my service during gc.
What did you see instead?
gc log:
I want to know how this happened, could anyone have any suggestions ?
The text was updated successfully, but these errors were encountered: