goroutine profile: total 13 2 @ 0x48378e 0x460117 0xb878c7 0x48b741 # 0xb878c6 database/sql.(*DB).connectionOpener+0x86 database/sql/sql.go:1261 1 @ 0x442031 0x48255d 0x135e751 0x135e565 0x135b3eb 0x13852ca 0x1385d7a 0x965850 0x93824f 0x93818c 0x962105 0x962037 0x1602705 0x9656f8 0x93824f 0x93818c 0x962105 0x96cc7a 0x96dd02 0x966a33 0x7ede0e 0x7cb6a5 0x48b741 # 0x135e750 runtime/pprof.writeRuntimeProfile+0xb0 runtime/pprof/pprof.go:788 # 0x135e564 runtime/pprof.writeGoroutine+0x44 runtime/pprof/pprof.go:747 # 0x135b3ea runtime/pprof.(*Profile).WriteTo+0x14a runtime/pprof/pprof.go:371 # 0x13852c9 net/http/pprof.handler.ServeHTTP+0x529 net/http/pprof/pprof.go:272 # 0x1385d79 net/http/pprof.Index+0xd9 net/http/pprof/pprof.go:389 # 0x96584f gopkg.in/macaron%2ev1.handlerFuncInvoker.Invoke+0xcf gopkg.in/macaron.v1@v1.5.1/macaron.go:48 # 0x93824e github.com/go-macaron/inject.(*injector).fastInvoke+0x8e github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:157 # 0x93818b github.com/go-macaron/inject.(*injector).Invoke+0x12b github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:135 # 0x962104 gopkg.in/macaron%2ev1.(*Context).run+0x64 gopkg.in/macaron.v1@v1.5.1/context.go:124 # 0x962036 gopkg.in/macaron%2ev1.(*Context).Next+0x16 gopkg.in/macaron.v1@v1.5.1/context.go:114 # 0x1602704 gogs.io/gogs/internal/cmd.newMacaron.Recovery.func2+0x44 gopkg.in/macaron.v1@v1.5.1/recovery.go:161 # 0x9656f7 gopkg.in/macaron%2ev1.LoggerInvoker.Invoke+0x57 gopkg.in/macaron.v1@v1.5.1/logger.go:40 # 0x93824e github.com/go-macaron/inject.(*injector).fastInvoke+0x8e github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:157 # 0x93818b github.com/go-macaron/inject.(*injector).Invoke+0x12b github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:135 # 0x962104 gopkg.in/macaron%2ev1.(*Context).run+0x64 gopkg.in/macaron.v1@v1.5.1/context.go:124 # 0x96cc79 gopkg.in/macaron%2ev1.(*Router).Handle.func1+0x239 gopkg.in/macaron.v1@v1.5.1/router.go:187 # 0x96dd01 gopkg.in/macaron%2ev1.(*Router).ServeHTTP+0x161 gopkg.in/macaron.v1@v1.5.1/router.go:304 # 0x966a32 gopkg.in/macaron%2ev1.(*Macaron).ServeHTTP+0x152 gopkg.in/macaron.v1@v1.5.1/macaron.go:218 # 0x7ede0d net/http.serverHandler.ServeHTTP+0x8d net/http/server.go:3340 # 0x7cb6a4 net/http.(*conn).serve+0x664 net/http/server.go:2109 1 @ 0x48378e 0x417773 0x4172f2 0x11db0fb 0x48b741 # 0x11db0fa gogs.io/gogs/internal/email.processMailQueue+0x5a gogs.io/gogs/internal/email/message.go:201 1 @ 0x48378e 0x417773 0x4172f2 0x12d20f0 0x48b741 # 0x12d20ef gogs.io/gogs/internal/database.SyncMirrors+0x4f gogs.io/gogs/internal/database/mirror.go:390 1 @ 0x48378e 0x417773 0x4172f2 0x12eb158 0x48b741 # 0x12eb157 gogs.io/gogs/internal/database.TestPullRequests+0x117 gogs.io/gogs/internal/database/pull.go:866 1 @ 0x48378e 0x417773 0x4172f2 0x1324738 0x48b741 # 0x1324737 gogs.io/gogs/internal/database.DeliverHooks+0x257 gogs.io/gogs/internal/database/webhook.go:810 1 @ 0x48378e 0x445a37 0x482965 0x4cd007 0x4ce2f9 0x4ce2e7 0x687f65 0x698b65 0x7c5b53 0x48b741 # 0x482964 internal/poll.runtime_pollWait+0x84 runtime/netpoll.go:351 # 0x4cd006 internal/poll.(*pollDesc).wait+0x26 internal/poll/fd_poll_runtime.go:84 # 0x4ce2f8 internal/poll.(*pollDesc).waitRead+0x278 internal/poll/fd_poll_runtime.go:89 # 0x4ce2e6 internal/poll.(*FD).Read+0x266 internal/poll/fd_unix.go:165 # 0x687f64 net.(*netFD).Read+0x24 net/fd_posix.go:68 # 0x698b64 net.(*conn).Read+0x44 net/net.go:196 # 0x7c5b52 net/http.(*connReader).backgroundRead+0x32 net/http/server.go:702 1 @ 0x48378e 0x445a37 0x482965 0x4cd007 0x4ce2f9 0x4ce2e7 0x687f65 0x698b65 0x7c5fd4 0x5bdcc3 0x5bddf3 0x7cb805 0x48b741 # 0x482964 internal/poll.runtime_pollWait+0x84 runtime/netpoll.go:351 # 0x4cd006 internal/poll.(*pollDesc).wait+0x26 internal/poll/fd_poll_runtime.go:84 # 0x4ce2f8 internal/poll.(*pollDesc).waitRead+0x278 internal/poll/fd_poll_runtime.go:89 # 0x4ce2e6 internal/poll.(*FD).Read+0x266 internal/poll/fd_unix.go:165 # 0x687f64 net.(*netFD).Read+0x24 net/fd_posix.go:68 # 0x698b64 net.(*conn).Read+0x44 net/net.go:196 # 0x7c5fd3 net/http.(*connReader).Read+0x153 net/http/server.go:812 # 0x5bdcc2 bufio.(*Reader).fill+0x102 bufio/bufio.go:113 # 0x5bddf2 bufio.(*Reader).Peek+0x52 bufio/bufio.go:152 # 0x7cb804 net/http.(*conn).serve+0x7c4 net/http/server.go:2145 1 @ 0x48378e 0x445a37 0x482965 0x4cd007 0x4d242c 0x4d241a 0x689e09 0x6a1dbb 0x6a0f90 0x7d0f8c 0x7d0b72 0x15e7cb5 0x15e7cb6 0x5ca73f 0x5cb4b6 0x5c843b 0x160e38c 0x44d1dd 0x48b741 # 0x482964 internal/poll.runtime_pollWait+0x84 runtime/netpoll.go:351 # 0x4cd006 internal/poll.(*pollDesc).wait+0x26 internal/poll/fd_poll_runtime.go:84 # 0x4d242b internal/poll.(*pollDesc).waitRead+0x28b internal/poll/fd_poll_runtime.go:89 # 0x4d2419 internal/poll.(*FD).Accept+0x279 internal/poll/fd_unix.go:613 # 0x689e08 net.(*netFD).accept+0x28 net/fd_unix.go:161 # 0x6a1dba net.(*TCPListener).accept+0x1a net/tcpsock_posix.go:159 # 0x6a0f8f net.(*TCPListener).Accept+0x2f net/tcpsock.go:380 # 0x7d0f8b net/http.(*Server).Serve+0x30b net/http/server.go:3463 # 0x7d0b71 net/http.(*Server).ListenAndServe+0x71 net/http/server.go:3389 # 0x15e7cb4 net/http.ListenAndServe+0x1174 net/http/server.go:3704 # 0x15e7cb5 gogs.io/gogs/internal/cmd.runWeb+0x1175 gogs.io/gogs/internal/cmd/web.go:748 # 0x5ca73e github.com/urfave/cli.HandleAction+0x9e github.com/urfave/cli@v1.22.17/app.go:524 # 0x5cb4b5 github.com/urfave/cli.Command.Run+0x655 github.com/urfave/cli@v1.22.17/command.go:175 # 0x5c843a github.com/urfave/cli.(*App).Run+0xb1a github.com/urfave/cli@v1.22.17/app.go:277 # 0x160e38b main.main+0x3cb gogs.io/gogs/gogs.go:35 # 0x44d1dc runtime.main+0x29c runtime/proc.go:285 1 @ 0x48378e 0x460117 0x1500a25 0x48b741 # 0x1500a24 github.com/gogs/cron.(*Cron).run+0x564 github.com/gogs/cron@v0.0.0-20171120032916-9f6c956d3e14/cron.go:197 1 @ 0x48378e 0x460117 0x80000e 0x48b741 # 0x80000d unknwon.dev/clog/v2.New.func1+0xcd unknwon.dev/clog/v2@v2.2.0/logger.go:202 1 @ 0x48378e 0x460117 0xb86dbc 0x48b741 # 0xb86dbb database/sql.(*DB).connectionCleaner+0x9b database/sql/sql.go:1104