goroutine profile: total 11 2 @ 0x47f0f0 0x45d26c 0xab2920 0x486f44 # 0xab291f database/sql.(*DB).connectionOpener+0x7f database/sql/sql.go:1261 1 @ 0x43e7fc 0x47de84 0x119bec4 0x119bcf0 0x1199464 0x11bb044 0x11bb8f0 0x8d30ec 0x8ac6b8 0x8ac608 0x8cfed8 0x8cfdf8 0x13e9c48 0x8d2f94 0x8ac6b8 0x8ac608 0x8cfed8 0x8d95cc 0x8da3a8 0x8d4130 0x780670 0x761868 0x486f44 # 0x119bec3 runtime/pprof.writeRuntimeProfile+0xb3 runtime/pprof/pprof.go:788 # 0x119bcef runtime/pprof.writeGoroutine+0x4f runtime/pprof/pprof.go:747 # 0x1199463 runtime/pprof.(*Profile).WriteTo+0x143 runtime/pprof/pprof.go:371 # 0x11bb043 net/http/pprof.handler.ServeHTTP+0x413 net/http/pprof/pprof.go:272 # 0x11bb8ef net/http/pprof.Index+0xbf net/http/pprof/pprof.go:389 # 0x8d30eb gopkg.in/macaron%2ev1.handlerFuncInvoker.Invoke+0xcb gopkg.in/macaron.v1@v1.5.1/macaron.go:48 # 0x8ac6b7 github.com/go-macaron/inject.(*injector).fastInvoke+0x87 github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:157 # 0x8ac607 github.com/go-macaron/inject.(*injector).Invoke+0x127 github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:135 # 0x8cfed7 gopkg.in/macaron%2ev1.(*Context).run+0x67 gopkg.in/macaron.v1@v1.5.1/context.go:124 # 0x8cfdf7 gopkg.in/macaron%2ev1.(*Context).Next+0x27 gopkg.in/macaron.v1@v1.5.1/context.go:114 # 0x13e9c47 gogs.io/gogs/internal/cmd.newMacaron.Recovery.func2+0x47 gopkg.in/macaron.v1@v1.5.1/recovery.go:161 # 0x8d2f93 gopkg.in/macaron%2ev1.LoggerInvoker.Invoke+0x63 gopkg.in/macaron.v1@v1.5.1/logger.go:40 # 0x8ac6b7 github.com/go-macaron/inject.(*injector).fastInvoke+0x87 github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:157 # 0x8ac607 github.com/go-macaron/inject.(*injector).Invoke+0x127 github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:135 # 0x8cfed7 gopkg.in/macaron%2ev1.(*Context).run+0x67 gopkg.in/macaron.v1@v1.5.1/context.go:124 # 0x8d95cb gopkg.in/macaron%2ev1.(*Router).Handle.func1+0x1fb gopkg.in/macaron.v1@v1.5.1/router.go:187 # 0x8da3a7 gopkg.in/macaron%2ev1.(*Router).ServeHTTP+0x147 gopkg.in/macaron.v1@v1.5.1/router.go:304 # 0x8d412f gopkg.in/macaron%2ev1.(*Macaron).ServeHTTP+0x13f gopkg.in/macaron.v1@v1.5.1/macaron.go:218 # 0x78066f net/http.serverHandler.ServeHTTP+0xaf net/http/server.go:3340 # 0x761867 net/http.(*conn).serve+0x527 net/http/server.go:2109 1 @ 0x47f0f0 0x4146f8 0x4142b4 0x11243f8 0x486f44 # 0x11243f7 gogs.io/gogs/internal/database.SyncMirrors+0x47 gogs.io/gogs/internal/database/mirror.go:390 1 @ 0x47f0f0 0x4146f8 0x4142b4 0x1139444 0x486f44 # 0x1139443 gogs.io/gogs/internal/database.TestPullRequests+0xd3 gogs.io/gogs/internal/database/pull.go:866 1 @ 0x47f0f0 0x4146f8 0x4142b4 0x1167f78 0x486f44 # 0x1167f77 gogs.io/gogs/internal/database.DeliverHooks+0x1c7 gogs.io/gogs/internal/database/webhook.go:810 1 @ 0x47f0f0 0x442390 0x47e2e0 0x4c5968 0x4c6b80 0x4c6b71 0x64f708 0x65e8e4 0x75c8d8 0x486f44 # 0x47e2df internal/poll.runtime_pollWait+0x9f runtime/netpoll.go:351 # 0x4c5967 internal/poll.(*pollDesc).wait+0x27 internal/poll/fd_poll_runtime.go:84 # 0x4c6b7f internal/poll.(*pollDesc).waitRead+0x1df internal/poll/fd_poll_runtime.go:89 # 0x4c6b70 internal/poll.(*FD).Read+0x1d0 internal/poll/fd_unix.go:165 # 0x64f707 net.(*netFD).Read+0x27 net/fd_posix.go:68 # 0x65e8e3 net.(*conn).Read+0x33 net/net.go:196 # 0x75c8d7 net/http.(*connReader).backgroundRead+0x37 net/http/server.go:702 1 @ 0x47f0f0 0x442390 0x47e2e0 0x4c5968 0x4c6b80 0x4c6b71 0x64f708 0x65e8e4 0x75cea0 0x59f140 0x59f288 0x761994 0x486f44 # 0x47e2df internal/poll.runtime_pollWait+0x9f runtime/netpoll.go:351 # 0x4c5967 internal/poll.(*pollDesc).wait+0x27 internal/poll/fd_poll_runtime.go:84 # 0x4c6b7f internal/poll.(*pollDesc).waitRead+0x1df internal/poll/fd_poll_runtime.go:89 # 0x4c6b70 internal/poll.(*FD).Read+0x1d0 internal/poll/fd_unix.go:165 # 0x64f707 net.(*netFD).Read+0x27 net/fd_posix.go:68 # 0x65e8e3 net.(*conn).Read+0x33 net/net.go:196 # 0x75ce9f net/http.(*connReader).Read+0x22f net/http/server.go:812 # 0x59f13f bufio.(*Reader).fill+0xdf bufio/bufio.go:113 # 0x59f287 bufio.(*Reader).Peek+0x57 bufio/bufio.go:152 # 0x761993 net/http.(*conn).serve+0x653 net/http/server.go:2145 1 @ 0x47f0f0 0x442390 0x47e2e0 0x4c5968 0x4c9f4c 0x4c9f3d 0x650f08 0x6672f4 0x66662c 0x76684c 0x7664f0 0x13d27d4 0x13d27d5 0x5a9f88 0x5aaa04 0x5a84a8 0x13f43b0 0x4495a8 0x486f44 # 0x47e2df internal/poll.runtime_pollWait+0x9f runtime/netpoll.go:351 # 0x4c5967 internal/poll.(*pollDesc).wait+0x27 internal/poll/fd_poll_runtime.go:84 # 0x4c9f4b internal/poll.(*pollDesc).waitRead+0x21b internal/poll/fd_poll_runtime.go:89 # 0x4c9f3c internal/poll.(*FD).Accept+0x20c internal/poll/fd_unix.go:613 # 0x650f07 net.(*netFD).accept+0x27 net/fd_unix.go:161 # 0x6672f3 net.(*TCPListener).accept+0x23 net/tcpsock_posix.go:159 # 0x66662b net.(*TCPListener).Accept+0x2b net/tcpsock.go:380 # 0x76684b net/http.(*Server).Serve+0x24b net/http/server.go:3463 # 0x7664ef net/http.(*Server).ListenAndServe+0x7f net/http/server.go:3389 # 0x13d27d3 net/http.ListenAndServe+0xe13 net/http/server.go:3704 # 0x13d27d4 gogs.io/gogs/internal/cmd.runWeb+0xe14 gogs.io/gogs/internal/cmd/web.go:748 # 0x5a9f87 github.com/urfave/cli.HandleAction+0xd7 github.com/urfave/cli@v1.22.17/app.go:524 # 0x5aaa03 github.com/urfave/cli.Command.Run+0x493 github.com/urfave/cli@v1.22.17/command.go:175 # 0x5a84a7 github.com/urfave/cli.(*App).Run+0x777 github.com/urfave/cli@v1.22.17/app.go:277 # 0x13f43af main.main+0x35f gogs.io/gogs/gogs.go:35 # 0x4495a7 runtime.main+0x277 runtime/proc.go:285 1 @ 0x47f0f0 0x45d26c 0x1309668 0x486f44 # 0x1309667 github.com/gogs/cron.(*Cron).run+0x3a7 github.com/gogs/cron@v0.0.0-20171120032916-9f6c956d3e14/cron.go:197 1 @ 0x47f0f0 0x45d26c 0x79180c 0x486f44 # 0x79180b unknwon.dev/clog/v2.New.func1+0xab unknwon.dev/clog/v2@v2.2.0/logger.go:202