goroutine profile: total 10 2 @ 0x4484b6 0x457e52 0x8c49ad 0x477f01 # 0x8c49ac database/sql.(*DB).connectionOpener+0x8c database/sql/sql.go:1226 1 @ 0x4484b6 0x41658c 0x415ff8 0xc7fb5c 0x477f01 # 0xc7fb5b gogs.io/gogs/internal/db.SyncMirrors+0x5b gogs.io/gogs/internal/db/mirror.go:318 1 @ 0x4484b6 0x41658c 0x415ff8 0xc96545 0x477f01 # 0xc96544 gogs.io/gogs/internal/db.TestPullRequests+0x1a4 gogs.io/gogs/internal/db/pull.go:877 1 @ 0x4484b6 0x41658c 0x415ff8 0xcce885 0x477f01 # 0xcce884 gogs.io/gogs/internal/db.DeliverHooks+0x264 gogs.io/gogs/internal/db/webhook.go:800 1 @ 0x4484b6 0x4411d7 0x4727a9 0x4add52 0x4af0ba 0x4af0a8 0x67be49 0x68e905 0x77a3ff 0x477f01 # 0x4727a8 internal/poll.runtime_pollWait+0x88 runtime/netpoll.go:302 # 0x4add51 internal/poll.(*pollDesc).wait+0x31 internal/poll/fd_poll_runtime.go:83 # 0x4af0b9 internal/poll.(*pollDesc).waitRead+0x259 internal/poll/fd_poll_runtime.go:88 # 0x4af0a7 internal/poll.(*FD).Read+0x247 internal/poll/fd_unix.go:167 # 0x67be48 net.(*netFD).Read+0x28 net/fd_posix.go:55 # 0x68e904 net.(*conn).Read+0x44 net/net.go:183 # 0x77a3fe net/http.(*connReader).backgroundRead+0x3e net/http/server.go:672 1 @ 0x4484b6 0x4411d7 0x4727a9 0x4add52 0x4b2f6c 0x4b2f59 0x67df55 0x6977e8 0x6969bd 0x785565 0x78519d 0xfc8b1d 0xfc8b21 0x57b868 0x57c652 0x578ebb 0xfd65c5 0x4480f2 0x477f01 # 0x4727a8 internal/poll.runtime_pollWait+0x88 runtime/netpoll.go:302 # 0x4add51 internal/poll.(*pollDesc).wait+0x31 internal/poll/fd_poll_runtime.go:83 # 0x4b2f6b internal/poll.(*pollDesc).waitRead+0x22b internal/poll/fd_poll_runtime.go:88 # 0x4b2f58 internal/poll.(*FD).Accept+0x218 internal/poll/fd_unix.go:614 # 0x67df54 net.(*netFD).accept+0x34 net/fd_unix.go:172 # 0x6977e7 net.(*TCPListener).accept+0x27 net/tcpsock_posix.go:139 # 0x6969bc net.(*TCPListener).Accept+0x3c net/tcpsock.go:288 # 0x785564 net/http.(*Server).Serve+0x384 net/http/server.go:3039 # 0x78519c net/http.(*Server).ListenAndServe+0x7c net/http/server.go:2968 # 0xfc8b1c net/http.ListenAndServe+0xcbc net/http/server.go:3222 # 0xfc8b20 gogs.io/gogs/internal/cmd.runWeb+0xcc0 gogs.io/gogs/internal/cmd/web.go:710 # 0x57b867 github.com/urfave/cli.HandleAction+0xa7 github.com/urfave/cli@v1.22.4/app.go:526 # 0x57c651 github.com/urfave/cli.Command.Run+0x651 github.com/urfave/cli@v1.22.4/command.go:174 # 0x578eba github.com/urfave/cli.(*App).Run+0x91a github.com/urfave/cli@v1.22.4/app.go:279 # 0xfd65c4 main.main+0x404 gogs.io/gogs/gogs.go:40 # 0x4480f1 runtime.main+0x211 runtime/proc.go:250 1 @ 0x4484b6 0x457e52 0x7afdfc 0x477f01 # 0x7afdfb unknwon.dev/clog/v2.New.func1+0xdb unknwon.dev/clog/v2@v2.1.2/logger.go:183 1 @ 0x4484b6 0x457e52 0xf84a96 0x477f01 # 0xf84a95 github.com/gogs/cron.(*Cron).run+0x595 github.com/gogs/cron@v0.0.0-20171120032916-9f6c956d3e14/cron.go:197 1 @ 0x472285 0xd202b5 0xd200cd 0xd1d02b 0xd44ac5 0xd4567e 0x808ce6 0x7dc2f5 0x7dc21d 0x8051b3 0x80af27 0x80af1e 0x8084c5 0x7dc2f5 0x7dc21d 0x8051b3 0x810da5 0x811f0d 0x80a045 0x784ffb 0x7804b7 0x477f01 # 0x472284 runtime/pprof.runtime_goroutineProfileWithLabels+0x24 runtime/mprof.go:753 # 0xd202b4 runtime/pprof.writeRuntimeProfile+0xb4 runtime/pprof/pprof.go:725 # 0xd200cc runtime/pprof.writeGoroutine+0x4c runtime/pprof/pprof.go:685 # 0xd1d02a runtime/pprof.(*Profile).WriteTo+0x14a runtime/pprof/pprof.go:332 # 0xd44ac4 net/http/pprof.handler.ServeHTTP+0x4a4 net/http/pprof/pprof.go:253 # 0xd4567d net/http/pprof.Index+0x13d net/http/pprof/pprof.go:371 # 0x808ce5 gopkg.in/macaron%2ev1.handlerFuncInvoker.Invoke+0x85 gopkg.in/macaron.v1@v1.3.9/macaron.go:50 # 0x7dc2f4 github.com/go-macaron/inject.(*injector).fastInvoke+0x94 github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:157 # 0x7dc21c github.com/go-macaron/inject.(*injector).Invoke+0xfc github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:135 # 0x8051b2 gopkg.in/macaron%2ev1.(*Context).run+0x72 gopkg.in/macaron.v1@v1.3.9/context.go:121 # 0x80af26 gopkg.in/macaron%2ev1.(*Context).Next+0x66 gopkg.in/macaron.v1@v1.3.9/context.go:112 # 0x80af1d gopkg.in/macaron%2ev1.Recovery.func1+0x5d gopkg.in/macaron.v1@v1.3.9/recovery.go:161 # 0x8084c4 gopkg.in/macaron%2ev1.LoggerInvoker.Invoke+0x64 gopkg.in/macaron.v1@v1.3.9/logger.go:40 # 0x7dc2f4 github.com/go-macaron/inject.(*injector).fastInvoke+0x94 github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:157 # 0x7dc21c github.com/go-macaron/inject.(*injector).Invoke+0xfc github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:135 # 0x8051b2 gopkg.in/macaron%2ev1.(*Context).run+0x72 gopkg.in/macaron.v1@v1.3.9/context.go:121 # 0x810da4 gopkg.in/macaron%2ev1.(*Router).Handle.func1+0x284 gopkg.in/macaron.v1@v1.3.9/router.go:187 # 0x811f0c gopkg.in/macaron%2ev1.(*Router).ServeHTTP+0x16c gopkg.in/macaron.v1@v1.3.9/router.go:303 # 0x80a044 gopkg.in/macaron%2ev1.(*Macaron).ServeHTTP+0x164 gopkg.in/macaron.v1@v1.3.9/macaron.go:220 # 0x784ffa net/http.serverHandler.ServeHTTP+0x43a net/http/server.go:2916 # 0x7804b6 net/http.(*conn).serve+0x5d6 net/http/server.go:1966