goroutine profile: total 11 2 @ 0x480fae 0x45dbb7 0xb7f427 0x488de1 # 0xb7f426 database/sql.(*DB).connectionOpener+0x86 database/sql/sql.go:1261 1 @ 0x43fc11 0x47fd7d 0x1354dd1 0x1354be5 0x1351a4b 0x137bb2a 0x137c5da 0x95bef0 0x92e74f 0x92e68c 0x9587a5 0x9586d7 0x15f8c85 0x95bd98 0x92e74f 0x92e68c 0x9587a5 0x96333a 0x9643e2 0x95d0d3 0x7e2eee 0x7c0745 0x488de1 # 0x1354dd0 runtime/pprof.writeRuntimeProfile+0xb0 runtime/pprof/pprof.go:788 # 0x1354be4 runtime/pprof.writeGoroutine+0x44 runtime/pprof/pprof.go:747 # 0x1351a4a runtime/pprof.(*Profile).WriteTo+0x14a runtime/pprof/pprof.go:371 # 0x137bb29 net/http/pprof.handler.ServeHTTP+0x529 net/http/pprof/pprof.go:272 # 0x137c5d9 net/http/pprof.Index+0xd9 net/http/pprof/pprof.go:389 # 0x95beef gopkg.in/macaron%2ev1.handlerFuncInvoker.Invoke+0xcf gopkg.in/macaron.v1@v1.5.1/macaron.go:48 # 0x92e74e github.com/go-macaron/inject.(*injector).fastInvoke+0x8e github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:157 # 0x92e68b github.com/go-macaron/inject.(*injector).Invoke+0x12b github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:135 # 0x9587a4 gopkg.in/macaron%2ev1.(*Context).run+0x64 gopkg.in/macaron.v1@v1.5.1/context.go:124 # 0x9586d6 gopkg.in/macaron%2ev1.(*Context).Next+0x16 gopkg.in/macaron.v1@v1.5.1/context.go:114 # 0x15f8c84 gogs.io/gogs/internal/cmd.newMacaron.Recovery.func2+0x44 gopkg.in/macaron.v1@v1.5.1/recovery.go:161 # 0x95bd97 gopkg.in/macaron%2ev1.LoggerInvoker.Invoke+0x57 gopkg.in/macaron.v1@v1.5.1/logger.go:40 # 0x92e74e github.com/go-macaron/inject.(*injector).fastInvoke+0x8e github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:157 # 0x92e68b github.com/go-macaron/inject.(*injector).Invoke+0x12b github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:135 # 0x9587a4 gopkg.in/macaron%2ev1.(*Context).run+0x64 gopkg.in/macaron.v1@v1.5.1/context.go:124 # 0x963339 gopkg.in/macaron%2ev1.(*Router).Handle.func1+0x239 gopkg.in/macaron.v1@v1.5.1/router.go:187 # 0x9643e1 gopkg.in/macaron%2ev1.(*Router).ServeHTTP+0x161 gopkg.in/macaron.v1@v1.5.1/router.go:304 # 0x95d0d2 gopkg.in/macaron%2ev1.(*Macaron).ServeHTTP+0x152 gopkg.in/macaron.v1@v1.5.1/macaron.go:218 # 0x7e2eed net/http.serverHandler.ServeHTTP+0x8d net/http/server.go:3340 # 0x7c0744 net/http.(*conn).serve+0x664 net/http/server.go:2109 1 @ 0x480fae 0x415373 0x414ef2 0x12c8910 0x488de1 # 0x12c890f gogs.io/gogs/internal/database.SyncMirrors+0x4f gogs.io/gogs/internal/database/mirror.go:390 1 @ 0x480fae 0x415373 0x414ef2 0x12e1978 0x488de1 # 0x12e1977 gogs.io/gogs/internal/database.TestPullRequests+0x117 gogs.io/gogs/internal/database/pull.go:866 1 @ 0x480fae 0x415373 0x414ef2 0x131ae38 0x488de1 # 0x131ae37 gogs.io/gogs/internal/database.DeliverHooks+0x257 gogs.io/gogs/internal/database/webhook.go:810 1 @ 0x480fae 0x443617 0x480185 0x4ca847 0x4cbb39 0x4cbb27 0x67e265 0x68ede5 0x7babd3 0x488de1 # 0x480184 internal/poll.runtime_pollWait+0x84 runtime/netpoll.go:351 # 0x4ca846 internal/poll.(*pollDesc).wait+0x26 internal/poll/fd_poll_runtime.go:84 # 0x4cbb38 internal/poll.(*pollDesc).waitRead+0x278 internal/poll/fd_poll_runtime.go:89 # 0x4cbb26 internal/poll.(*FD).Read+0x266 internal/poll/fd_unix.go:165 # 0x67e264 net.(*netFD).Read+0x24 net/fd_posix.go:68 # 0x68ede4 net.(*conn).Read+0x44 net/net.go:196 # 0x7babd2 net/http.(*connReader).backgroundRead+0x32 net/http/server.go:702 1 @ 0x480fae 0x443617 0x480185 0x4ca847 0x4cfc6c 0x4cfc5a 0x680109 0x697e7b 0x697050 0x7c602c 0x7c5c12 0x15de4f5 0x15de4f6 0x5c8c9f 0x5c9a16 0x5c68e7 0x160490c 0x44ad1d 0x488de1 # 0x480184 internal/poll.runtime_pollWait+0x84 runtime/netpoll.go:351 # 0x4ca846 internal/poll.(*pollDesc).wait+0x26 internal/poll/fd_poll_runtime.go:84 # 0x4cfc6b internal/poll.(*pollDesc).waitRead+0x28b internal/poll/fd_poll_runtime.go:89 # 0x4cfc59 internal/poll.(*FD).Accept+0x279 internal/poll/fd_unix.go:613 # 0x680108 net.(*netFD).accept+0x28 net/fd_unix.go:161 # 0x697e7a net.(*TCPListener).accept+0x1a net/tcpsock_posix.go:159 # 0x69704f net.(*TCPListener).Accept+0x2f net/tcpsock.go:380 # 0x7c602b net/http.(*Server).Serve+0x30b net/http/server.go:3463 # 0x7c5c11 net/http.(*Server).ListenAndServe+0x71 net/http/server.go:3389 # 0x15de4f4 net/http.ListenAndServe+0x1174 net/http/server.go:3704 # 0x15de4f5 gogs.io/gogs/internal/cmd.runWeb+0x1175 gogs.io/gogs/internal/cmd/web.go:748 # 0x5c8c9e github.com/urfave/cli.HandleAction+0x9e github.com/urfave/cli@v1.22.17/app.go:524 # 0x5c9a15 github.com/urfave/cli.Command.Run+0x655 github.com/urfave/cli@v1.22.17/command.go:175 # 0x5c68e6 github.com/urfave/cli.(*App).Run+0xb26 github.com/urfave/cli@v1.22.17/app.go:277 # 0x160490b main.main+0x3cb gogs.io/gogs/gogs.go:35 # 0x44ad1c runtime.main+0x29c runtime/proc.go:285 1 @ 0x480fae 0x45dbb7 0x14f7045 0x488de1 # 0x14f7044 github.com/gogs/cron.(*Cron).run+0x564 github.com/gogs/cron@v0.0.0-20171120032916-9f6c956d3e14/cron.go:197 1 @ 0x480fae 0x45dbb7 0x7f514e 0x488de1 # 0x7f514d unknwon.dev/clog/v2.New.func1+0xcd unknwon.dev/clog/v2@v2.2.0/logger.go:202 1 @ 0x480fae 0x45dbb7 0xb7e91c 0x488de1 # 0xb7e91b database/sql.(*DB).connectionCleaner+0x9b database/sql/sql.go:1104