goroutine profile: total 12 2 @ 0x47d24e 0x45a8d7 0xa708fc 0x484fa1 # 0xa708fb database/sql.(*DB).connectionCleaner+0x9b database/sql/sql.go:1104 2 @ 0x47d24e 0x45a8d7 0xa71427 0x484fa1 # 0xa71426 database/sql.(*DB).connectionOpener+0x86 database/sql/sql.go:1261 1 @ 0x43d311 0x47c05d 0x10b1d51 0x10b1b85 0x10ae9ab 0x10d86ef 0x10d919e 0x850830 0x82338f 0x8232cc 0x84d0e5 0x84d017 0x13552e5 0x8506d8 0x82338f 0x8232cc 0x84d0e5 0x857c3e 0x858cc2 0x8519ff 0x7e30ce 0x7c0b05 0x484fa1 # 0x10b1d50 runtime/pprof.writeRuntimeProfile+0xb0 runtime/pprof/pprof.go:796 # 0x10b1b84 runtime/pprof.writeGoroutine+0x44 runtime/pprof/pprof.go:755 # 0x10ae9aa runtime/pprof.(*Profile).WriteTo+0x14a runtime/pprof/pprof.go:377 # 0x10d86ee net/http/pprof.handler.ServeHTTP+0x52e net/http/pprof/pprof.go:272 # 0x10d919d net/http/pprof.Index+0xdd net/http/pprof/pprof.go:389 # 0x85082f gopkg.in/macaron%2ev1.handlerFuncInvoker.Invoke+0xcf gopkg.in/macaron.v1@v1.5.0/macaron.go:48 # 0x82338e github.com/go-macaron/inject.(*injector).fastInvoke+0x8e github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:157 # 0x8232cb github.com/go-macaron/inject.(*injector).Invoke+0x12b github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:135 # 0x84d0e4 gopkg.in/macaron%2ev1.(*Context).run+0x64 gopkg.in/macaron.v1@v1.5.0/context.go:125 # 0x84d016 gopkg.in/macaron%2ev1.(*Context).Next+0x16 gopkg.in/macaron.v1@v1.5.0/context.go:115 # 0x13552e4 gogs.io/gogs/internal/cmd.newMacaron.Recovery.func2+0x44 gopkg.in/macaron.v1@v1.5.0/recovery.go:161 # 0x8506d7 gopkg.in/macaron%2ev1.LoggerInvoker.Invoke+0x57 gopkg.in/macaron.v1@v1.5.0/logger.go:40 # 0x82338e github.com/go-macaron/inject.(*injector).fastInvoke+0x8e github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:157 # 0x8232cb github.com/go-macaron/inject.(*injector).Invoke+0x12b github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:135 # 0x84d0e4 gopkg.in/macaron%2ev1.(*Context).run+0x64 gopkg.in/macaron.v1@v1.5.0/context.go:125 # 0x857c3d gopkg.in/macaron%2ev1.(*Router).Handle.func1+0x23d gopkg.in/macaron.v1@v1.5.0/router.go:187 # 0x858cc1 gopkg.in/macaron%2ev1.(*Router).ServeHTTP+0x161 gopkg.in/macaron.v1@v1.5.0/router.go:304 # 0x8519fe gopkg.in/macaron%2ev1.(*Macaron).ServeHTTP+0x13e gopkg.in/macaron.v1@v1.5.0/macaron.go:218 # 0x7e30cd net/http.serverHandler.ServeHTTP+0x8d net/http/server.go:3301 # 0x7c0b04 net/http.(*conn).serve+0x624 net/http/server.go:2102 1 @ 0x47d24e 0x415685 0x415232 0x1026bb0 0x484fa1 # 0x1026baf gogs.io/gogs/internal/database.SyncMirrors+0x4f gogs.io/gogs/internal/database/mirror.go:329 1 @ 0x47d24e 0x415685 0x415232 0x103fc2c 0x484fa1 # 0x103fc2b gogs.io/gogs/internal/database.TestPullRequests+0x16b gogs.io/gogs/internal/database/pull.go:870 1 @ 0x47d24e 0x415685 0x415232 0x1078238 0x484fa1 # 0x1078237 gogs.io/gogs/internal/database.DeliverHooks+0x257 gogs.io/gogs/internal/database/webhook.go:806 1 @ 0x47d24e 0x440bf7 0x47c465 0x4c5e27 0x4cb1f5 0x4cb1e3 0x681049 0x6990db 0x6982d0 0x7c5fec 0x7c5bf1 0x1339eb5 0x1339eb6 0x5b2fb0 0x5b3d56 0x5b0c5b 0x1360e6c 0x4481ab 0x484fa1 # 0x47c464 internal/poll.runtime_pollWait+0x84 runtime/netpoll.go:351 # 0x4c5e26 internal/poll.(*pollDesc).wait+0x26 internal/poll/fd_poll_runtime.go:84 # 0x4cb1f4 internal/poll.(*pollDesc).waitRead+0x294 internal/poll/fd_poll_runtime.go:89 # 0x4cb1e2 internal/poll.(*FD).Accept+0x282 internal/poll/fd_unix.go:620 # 0x681048 net.(*netFD).accept+0x28 net/fd_unix.go:172 # 0x6990da net.(*TCPListener).accept+0x1a net/tcpsock_posix.go:159 # 0x6982cf net.(*TCPListener).Accept+0x2f net/tcpsock.go:380 # 0x7c5feb net/http.(*Server).Serve+0x30b net/http/server.go:3424 # 0x7c5bf0 net/http.(*Server).ListenAndServe+0x70 net/http/server.go:3350 # 0x1339eb4 net/http.ListenAndServe+0x1174 net/http/server.go:3665 # 0x1339eb5 gogs.io/gogs/internal/cmd.runWeb+0x1175 gogs.io/gogs/internal/cmd/web.go:718 # 0x5b2faf github.com/urfave/cli.HandleAction+0x6f github.com/urfave/cli@v1.22.17/app.go:524 # 0x5b3d55 github.com/urfave/cli.Command.Run+0x675 github.com/urfave/cli@v1.22.17/command.go:175 # 0x5b0c5a github.com/urfave/cli.(*App).Run+0xb1a github.com/urfave/cli@v1.22.17/app.go:277 # 0x1360e6b main.main+0x3cb gogs.io/gogs/gogs.go:39 # 0x4481aa runtime.main+0x28a runtime/proc.go:283 1 @ 0x47d24e 0x45a8d7 0x1252c33 0x484fa1 # 0x1252c32 github.com/gogs/cron.(*Cron).run+0x592 github.com/gogs/cron@v0.0.0-20171120032916-9f6c956d3e14/cron.go:197 1 @ 0x47d24e 0x45a8d7 0x7f520e 0x484fa1 # 0x7f520d unknwon.dev/clog/v2.New.func1+0xcd unknwon.dev/clog/v2@v2.2.0/logger.go:202 1 @ 0x484fa1