gc stw increase
I use gls in my two online service, and find all of them slower and slower. Finaly I find gls cause gc stw continue increase.
You really shouldn't use gls. It's a huge hack. You should use https://golang.org/pkg/context/ instead.
If you insist on using this package, there's not a lot we can do to make it better. Are you sure GC pause time increase is really due to gls here? If you remove gls, the GC pause increase no longer happens?
@jtolds Yes,I am sure it is due to gls. The GC pause increase no longer happens when I remove gls. And the sample code can show the issue.
I'm new to golang. Is that the fourth field (8% in the sample) which shows STW? I'm running the code sample for 700 seconds now, and the value does not change. It was started with 22% and now it is still 22%. Also memory consumption does not grow. What I'm doing wrong?