goroutine profile: total 12 2 @ 0x440e76 0x450b32 0x89d8f3 0x470f01 # 0x89d8f2 database/sql.(*DB).connectionOpener+0x92 database/sql/sql.go:1196 1 @ 0x440e76 0x40f2cc 0x40ed38 0xb4127f 0x470f01 # 0xb4127e gogs.io/gogs/internal/email.processMailQueue+0x5e gogs.io/gogs/internal/email/message.go:206 1 @ 0x440e76 0x40f2cc 0x40ed38 0xc4d49c 0x470f01 # 0xc4d49b gogs.io/gogs/internal/db.SyncMirrors+0x5b gogs.io/gogs/internal/db/mirror.go:318 1 @ 0x440e76 0x40f2cc 0x40ed38 0xc6411e 0x470f01 # 0xc6411d gogs.io/gogs/internal/db.TestPullRequests+0x19d gogs.io/gogs/internal/db/pull.go:877 1 @ 0x440e76 0x40f2cc 0x40ed38 0xc9bebd 0x470f01 # 0xc9bebc gogs.io/gogs/internal/db.DeliverHooks+0x27c gogs.io/gogs/internal/db/webhook.go:788 1 @ 0x440e76 0x439833 0x46b909 0x4a6852 0x4a7bba 0x4a7ba8 0x64ce89 0x65e285 0x69bd7d 0x505bd8 0x69bf65 0x6995d2 0x69ee6f 0x69ee70 0x4a055a 0x713c4e 0x713c08 0x714395 0x71eb91 0x470f01 # 0x46b908 internal/poll.runtime_pollWait+0x88 runtime/netpoll.go:234 # 0x4a6851 internal/poll.(*pollDesc).wait+0x31 internal/poll/fd_poll_runtime.go:84 # 0x4a7bb9 internal/poll.(*pollDesc).waitRead+0x259 internal/poll/fd_poll_runtime.go:89 # 0x4a7ba7 internal/poll.(*FD).Read+0x247 internal/poll/fd_unix.go:167 # 0x64ce88 net.(*netFD).Read+0x28 net/fd_posix.go:56 # 0x65e284 net.(*conn).Read+0x44 net/net.go:183 # 0x69bd7c crypto/tls.(*atLeastReader).Read+0x3c crypto/tls/conn.go:777 # 0x505bd7 bytes.(*Buffer).ReadFrom+0x97 bytes/buffer.go:204 # 0x69bf64 crypto/tls.(*Conn).readFromUntil+0xe4 crypto/tls/conn.go:799 # 0x6995d1 crypto/tls.(*Conn).readRecordOrCCS+0x111 crypto/tls/conn.go:606 # 0x69ee6e crypto/tls.(*Conn).readRecord+0x16e crypto/tls/conn.go:574 # 0x69ee6f crypto/tls.(*Conn).Read+0x16f crypto/tls/conn.go:1277 # 0x4a0559 io.ReadAtLeast+0x99 io/io.go:328 # 0x713c4d io.ReadFull+0x6d io/io.go:347 # 0x713c07 net/http.http2readFrameHeader+0x27 net/http/h2_bundle.go:1555 # 0x714394 net/http.(*http2Framer).ReadFrame+0x94 net/http/h2_bundle.go:1813 # 0x71eb90 net/http.(*http2serverConn).readFrames+0x90 net/http/h2_bundle.go:4415 1 @ 0x440e76 0x439833 0x46b909 0x4a6852 0x4a9bac 0x4a9b99 0x64e635 0x667528 0x6666fd 0x6cee4d 0x750a34 0x7512fe 0x751b0f 0xfbc199 0x570a08 0x5717f2 0x56ec6c 0xfca645 0x440aa7 0x470f01 # 0x46b908 internal/poll.runtime_pollWait+0x88 runtime/netpoll.go:234 # 0x4a6851 internal/poll.(*pollDesc).wait+0x31 internal/poll/fd_poll_runtime.go:84 # 0x4a9bab internal/poll.(*pollDesc).waitRead+0x22b internal/poll/fd_poll_runtime.go:89 # 0x4a9b98 internal/poll.(*FD).Accept+0x218 internal/poll/fd_unix.go:402 # 0x64e634 net.(*netFD).accept+0x34 net/fd_unix.go:173 # 0x667527 net.(*TCPListener).accept+0x27 net/tcpsock_posix.go:140 # 0x6666fc net.(*TCPListener).Accept+0x3c net/tcpsock.go:262 # 0x6cee4c crypto/tls.(*listener).Accept+0x2c crypto/tls/tls.go:66 # 0x750a33 net/http.(*Server).Serve+0x393 net/http/server.go:3002 # 0x7512fd net/http.(*Server).ServeTLS+0x3fd net/http/server.go:3074 # 0x751b0e net/http.(*Server).ListenAndServeTLS+0x12e net/http/server.go:3229 # 0xfbc198 gogs.io/gogs/internal/cmd.runWeb+0xfb8 gogs.io/gogs/internal/cmd/web.go:738 # 0x570a07 github.com/urfave/cli.HandleAction+0xa7 github.com/urfave/cli@v1.22.4/app.go:526 # 0x5717f1 github.com/urfave/cli.Command.Run+0x651 github.com/urfave/cli@v1.22.4/command.go:174 # 0x56ec6b github.com/urfave/cli.(*App).Run+0x80b github.com/urfave/cli@v1.22.4/app.go:279 # 0xfca644 main.main+0x404 gogs.io/gogs/gogs.go:40 # 0x440aa6 runtime.main+0x226 runtime/proc.go:255 1 @ 0x440e76 0x450b32 0x71faad 0x71ddf1 0x71d326 0x74bbd8 0x470f01 # 0x71faac net/http.(*http2serverConn).serve+0x8ec net/http/h2_bundle.go:4529 # 0x71ddf0 net/http.(*http2Server).ServeConn+0xa70 net/http/h2_bundle.go:4131 # 0x71d325 net/http.http2ConfigureServer.func1+0xe5 net/http/h2_bundle.go:3957 # 0x74bbd7 net/http.(*conn).serve+0x6b7 net/http/server.go:1839 1 @ 0x440e76 0x450b32 0x77c505 0x470f01 # 0x77c504 unknwon.dev/clog/v2.New.func1+0xe4 unknwon.dev/clog/v2@v2.1.2/logger.go:183 1 @ 0x440e76 0x450b32 0xf79325 0x470f01 # 0xf79324 github.com/gogs/cron.(*Cron).run+0x5a4 github.com/gogs/cron@v0.0.0-20171120032916-9f6c956d3e14/cron.go:197 1 @ 0x46b425 0xcfd4d5 0xcfd2ed 0xcfa46b 0xd21cba 0xd2286e 0x7d5c46 0x7a9ad5 0x7a99fd 0x7d28d3 0x7e3ae7 0x7e3ade 0x7d5b05 0x7a9ad5 0x7a99fd 0x7d28d3 0x7dd3a5 0x7de50d 0x7d6da5 0x7504bb 0x753425 0x7262f8 0x470f01 # 0x46b424 runtime/pprof.runtime_goroutineProfileWithLabels+0x24 runtime/mprof.go:746 # 0xcfd4d4 runtime/pprof.writeRuntimeProfile+0xb4 runtime/pprof/pprof.go:724 # 0xcfd2ec runtime/pprof.writeGoroutine+0x4c runtime/pprof/pprof.go:684 # 0xcfa46a runtime/pprof.(*Profile).WriteTo+0x14a runtime/pprof/pprof.go:331 # 0xd21cb9 net/http/pprof.handler.ServeHTTP+0x499 net/http/pprof/pprof.go:253 # 0xd2286d net/http/pprof.Index+0x12d net/http/pprof/pprof.go:371 # 0x7d5c45 gopkg.in/macaron%2ev1.handlerFuncInvoker.Invoke+0x85 gopkg.in/macaron.v1@v1.3.9/macaron.go:50 # 0x7a9ad4 github.com/go-macaron/inject.(*injector).fastInvoke+0x94 github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:157 # 0x7a99fc github.com/go-macaron/inject.(*injector).Invoke+0xfc github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:135 # 0x7d28d2 gopkg.in/macaron%2ev1.(*Context).run+0x72 gopkg.in/macaron.v1@v1.3.9/context.go:121 # 0x7e3ae6 gopkg.in/macaron%2ev1.(*Context).Next+0x66 gopkg.in/macaron.v1@v1.3.9/context.go:112 # 0x7e3add gopkg.in/macaron%2ev1.Recovery.func1+0x5d gopkg.in/macaron.v1@v1.3.9/recovery.go:161 # 0x7d5b04 gopkg.in/macaron%2ev1.LoggerInvoker.Invoke+0x64 gopkg.in/macaron.v1@v1.3.9/logger.go:40 # 0x7a9ad4 github.com/go-macaron/inject.(*injector).fastInvoke+0x94 github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:157 # 0x7a99fc github.com/go-macaron/inject.(*injector).Invoke+0xfc github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:135 # 0x7d28d2 gopkg.in/macaron%2ev1.(*Context).run+0x72 gopkg.in/macaron.v1@v1.3.9/context.go:121 # 0x7dd3a4 gopkg.in/macaron%2ev1.(*Router).Handle.func1+0x284 gopkg.in/macaron.v1@v1.3.9/router.go:187 # 0x7de50c gopkg.in/macaron%2ev1.(*Router).ServeHTTP+0x16c gopkg.in/macaron.v1@v1.3.9/router.go:303 # 0x7d6da4 gopkg.in/macaron%2ev1.(*Macaron).ServeHTTP+0x164 gopkg.in/macaron.v1@v1.3.9/macaron.go:220 # 0x7504ba net/http.serverHandler.ServeHTTP+0x43a net/http/server.go:2879 # 0x753424 net/http.initALPNRequest.ServeHTTP+0x244 net/http/server.go:3480 # 0x7262f7 net/http.(*http2serverConn).runHandler+0x77 net/http/h2_bundle.go:5849