goanalyzer <https://github.com/robaho/goanalyzer> might help you understand what is happening better. The schedule wait time looks high, but this time is dependent on the number of active (usually CPU bound) Go routines vs. GOMAXPROCS (which is usually limited by number of CPUs).
> On Jul 27, 2019, at 11:47 PM, zct <90sworking...@gmail.com> wrote: > > The version of go i am use is 1.12 > My server run in a docker which deploy in production environment which > contains many machine . It is strange that the server occasionally behave > like hang up in particular machine. so i use trace tool to analyze the > performance, i get this : > > <wx20190728-124...@2x.png> > > > > > > scheduler wait is longer than excepted, the sync wait maybe caused by the > scheduler time. I want to which scopes can lead to the longer scheduler wait? > OS scope ? Docker scope? code scope? > > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com > <mailto:golang-nuts+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/8d62ecdd-aed2-485e-b382-067b9078b44a%40googlegroups.com > > <https://groups.google.com/d/msgid/golang-nuts/8d62ecdd-aed2-485e-b382-067b9078b44a%40googlegroups.com?utm_medium=email&utm_source=footer>. > <wx20190728-124...@2x.png> -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/BCD5DBEE-FB3F-4CFF-B803-367E1CFA046F%40ix.netcom.com.