goroutine profile: total 12 2 @ 0x4781ee 0x43a857 0x4774e5 0x4c0767 0x4c1a5a 0x4c1a48 0x6b10a5 0x6c1f45 0x7e7437 0x4803c1 # 0x4774e4 internal/poll.runtime_pollWait+0x84 runtime/netpoll.go:351 # 0x4c0766 internal/poll.(*pollDesc).wait+0x26 internal/poll/fd_poll_runtime.go:84 # 0x4c1a59 internal/poll.(*pollDesc).waitRead+0x279 internal/poll/fd_poll_runtime.go:89 # 0x4c1a47 internal/poll.(*FD).Read+0x267 internal/poll/fd_unix.go:165 # 0x6b10a4 net.(*netFD).Read+0x24 net/fd_posix.go:55 # 0x6c1f44 net.(*conn).Read+0x44 net/net.go:189 # 0x7e7436 net/http.(*connReader).backgroundRead+0x36 net/http/server.go:690 2 @ 0x4781ee 0x4540a5 0x91a5e7 0x4803c1 # 0x91a5e6 database/sql.(*DB).connectionOpener+0x86 database/sql/sql.go:1253 1 @ 0x436f51 0x4770bd 0xf6b551 0xf6b385 0xf681ab 0xf928ef 0xf9339e 0x87aeb0 0x84ddaf 0x84dcec 0x877788 0x8776b7 0x11f5a45 0x87ad58 0x84ddaf 0x84dcec 0x877788 0x88232a 0x8833d5 0x87c0e5 0x80e66e 0x7ecab0 0x4803c1 # 0xf6b550 runtime/pprof.writeRuntimeProfile+0xb0 runtime/pprof/pprof.go:793 # 0xf6b384 runtime/pprof.writeGoroutine+0x44 runtime/pprof/pprof.go:752 # 0xf681aa runtime/pprof.(*Profile).WriteTo+0x14a runtime/pprof/pprof.go:374 # 0xf928ee net/http/pprof.handler.ServeHTTP+0x52e net/http/pprof/pprof.go:272 # 0xf9339d net/http/pprof.Index+0xdd net/http/pprof/pprof.go:388 # 0x87aeaf gopkg.in/macaron%2ev1.handlerFuncInvoker.Invoke+0xcf gopkg.in/macaron.v1@v1.4.0/macaron.go:50 # 0x84ddae github.com/go-macaron/inject.(*injector).fastInvoke+0x8e github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:157 # 0x84dceb github.com/go-macaron/inject.(*injector).Invoke+0x12b github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:135 # 0x877787 gopkg.in/macaron%2ev1.(*Context).run+0x67 gopkg.in/macaron.v1@v1.4.0/context.go:125 # 0x8776b6 gopkg.in/macaron%2ev1.(*Context).Next+0x16 gopkg.in/macaron.v1@v1.4.0/context.go:115 # 0x11f5a44 gogs.io/gogs/internal/cmd.newMacaron.Recovery.func2+0x44 gopkg.in/macaron.v1@v1.4.0/recovery.go:161 # 0x87ad57 gopkg.in/macaron%2ev1.LoggerInvoker.Invoke+0x57 gopkg.in/macaron.v1@v1.4.0/logger.go:40 # 0x84ddae github.com/go-macaron/inject.(*injector).fastInvoke+0x8e github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:157 # 0x84dceb github.com/go-macaron/inject.(*injector).Invoke+0x12b github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:135 # 0x877787 gopkg.in/macaron%2ev1.(*Context).run+0x67 gopkg.in/macaron.v1@v1.4.0/context.go:125 # 0x882329 gopkg.in/macaron%2ev1.(*Router).Handle.func1+0x249 gopkg.in/macaron.v1@v1.4.0/router.go:187 # 0x8833d4 gopkg.in/macaron%2ev1.(*Router).ServeHTTP+0x174 gopkg.in/macaron.v1@v1.4.0/router.go:303 # 0x87c0e4 gopkg.in/macaron%2ev1.(*Macaron).ServeHTTP+0x144 gopkg.in/macaron.v1@v1.4.0/macaron.go:220 # 0x80e66d net/http.serverHandler.ServeHTTP+0x8d net/http/server.go:3210 # 0x7ecaaf net/http.(*conn).serve+0x5cf net/http/server.go:2092 1 @ 0x440a39 0x48193b 0x7eb92b 0x880d33 0x5a4f95 0x5a524d 0x5aa165 0x5aa636 0x5aa965 0x5aa911 0x5aa911 0x5aa911 0x5aaf16 0x5ab32f 0x518f57 0xf69e39 0xf6a487 0xf69fa9 0xf681ab 0xf928ef 0xf9339e 0x87aeb0 0x84ddaf 0x84dcec 0x877788 0x8776b7 0x11f5a45 0x87ad58 0x84ddaf 0x84dcec 0x877788 0x88232a 0x8833d5 0x87c0e5 0x80e66e 0x7ecab0 0x4803c1 # 0x7eb92a net/http.(*response).Write+0x2a net/http/server.go:1665 # 0x880d32 gopkg.in/macaron%2ev1.(*responseWriter).Write+0x72 gopkg.in/macaron.v1@v1.4.0/response_writer.go:70 # 0x5a4f94 bufio.(*Writer).Flush+0x54 bufio/bufio.go:639 # 0x5a524c bufio.(*Writer).Write+0xcc bufio/bufio.go:683 # 0x5aa164 text/tabwriter.(*Writer).write0+0x24 text/tabwriter/tabwriter.go:252 # 0x5aa635 text/tabwriter.(*Writer).writeLines+0x255 text/tabwriter/tabwriter.go:319 # 0x5aa964 text/tabwriter.(*Writer).format+0x1a4 text/tabwriter/tabwriter.go:406 # 0x5aa910 text/tabwriter.(*Writer).format+0x150 text/tabwriter/tabwriter.go:400 # 0x5aa910 text/tabwriter.(*Writer).format+0x150 text/tabwriter/tabwriter.go:400 # 0x5aa910 text/tabwriter.(*Writer).format+0x150 text/tabwriter/tabwriter.go:400 # 0x5aaf15 text/tabwriter.(*Writer).flushNoDefers+0x115 text/tabwriter/tabwriter.go:514 # 0x5ab32e text/tabwriter.(*Writer).Write+0x3ce text/tabwriter/tabwriter.go:547 # 0x518f56 fmt.Fprintf+0x96 fmt/print.go:225 # 0xf69e38 runtime/pprof.printStackRecord+0x418 runtime/pprof/pprof.go:571 # 0xf6a486 runtime/pprof.writeHeapInternal+0x4a6 runtime/pprof/pprof.go:682 # 0xf69fa8 runtime/pprof.writeAlloc+0x28 runtime/pprof/pprof.go:596 # 0xf681aa runtime/pprof.(*Profile).WriteTo+0x14a runtime/pprof/pprof.go:374 # 0xf928ee net/http/pprof.handler.ServeHTTP+0x52e net/http/pprof/pprof.go:272 # 0xf9339d net/http/pprof.Index+0xdd net/http/pprof/pprof.go:388 # 0x87aeaf gopkg.in/macaron%2ev1.handlerFuncInvoker.Invoke+0xcf gopkg.in/macaron.v1@v1.4.0/macaron.go:50 # 0x84ddae github.com/go-macaron/inject.(*injector).fastInvoke+0x8e github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:157 # 0x84dceb github.com/go-macaron/inject.(*injector).Invoke+0x12b github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:135 # 0x877787 gopkg.in/macaron%2ev1.(*Context).run+0x67 gopkg.in/macaron.v1@v1.4.0/context.go:125 # 0x8776b6 gopkg.in/macaron%2ev1.(*Context).Next+0x16 gopkg.in/macaron.v1@v1.4.0/context.go:115 # 0x11f5a44 gogs.io/gogs/internal/cmd.newMacaron.Recovery.func2+0x44 gopkg.in/macaron.v1@v1.4.0/recovery.go:161 # 0x87ad57 gopkg.in/macaron%2ev1.LoggerInvoker.Invoke+0x57 gopkg.in/macaron.v1@v1.4.0/logger.go:40 # 0x84ddae github.com/go-macaron/inject.(*injector).fastInvoke+0x8e github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:157 # 0x84dceb github.com/go-macaron/inject.(*injector).Invoke+0x12b github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:135 # 0x877787 gopkg.in/macaron%2ev1.(*Context).run+0x67 gopkg.in/macaron.v1@v1.4.0/context.go:125 # 0x882329 gopkg.in/macaron%2ev1.(*Router).Handle.func1+0x249 gopkg.in/macaron.v1@v1.4.0/router.go:187 # 0x8833d4 gopkg.in/macaron%2ev1.(*Router).ServeHTTP+0x174 gopkg.in/macaron.v1@v1.4.0/router.go:303 # 0x87c0e4 gopkg.in/macaron%2ev1.(*Macaron).ServeHTTP+0x144 gopkg.in/macaron.v1@v1.4.0/macaron.go:220 # 0x80e66d net/http.serverHandler.ServeHTTP+0x8d net/http/server.go:3210 # 0x7ecaaf net/http.(*conn).serve+0x5cf net/http/server.go:2092 1 @ 0x4781ee 0x40d6dc 0x40d2b2 0xeb1570 0x4803c1 # 0xeb156f gogs.io/gogs/internal/db.SyncMirrors+0x4f gogs.io/gogs/internal/db/mirror.go:321 1 @ 0x4781ee 0x40d6dc 0x40d2b2 0xec7592 0x4803c1 # 0xec7591 gogs.io/gogs/internal/db.TestPullRequests+0x171 gogs.io/gogs/internal/db/pull.go:870 1 @ 0x4781ee 0x40d6dc 0x40d2b2 0xf00548 0x4803c1 # 0xf00547 gogs.io/gogs/internal/db.DeliverHooks+0x267 gogs.io/gogs/internal/db/webhook.go:806 1 @ 0x4781ee 0x43a857 0x4774e5 0x4c0767 0x4c5b35 0x4c5b23 0x6b3069 0x6cb21e 0x6ca3f0 0x7f1b2c 0x7f17f1 0x11db6d6 0x11db6d7 0x5affb0 0x5b0d9c 0x5adc5b 0x120570c 0x441eab 0x4803c1 # 0x4774e4 internal/poll.runtime_pollWait+0x84 runtime/netpoll.go:351 # 0x4c0766 internal/poll.(*pollDesc).wait+0x26 internal/poll/fd_poll_runtime.go:84 # 0x4c5b34 internal/poll.(*pollDesc).waitRead+0x294 internal/poll/fd_poll_runtime.go:89 # 0x4c5b22 internal/poll.(*FD).Accept+0x282 internal/poll/fd_unix.go:620 # 0x6b3068 net.(*netFD).accept+0x28 net/fd_unix.go:172 # 0x6cb21d net.(*TCPListener).accept+0x1d net/tcpsock_posix.go:159 # 0x6ca3ef net.(*TCPListener).Accept+0x2f net/tcpsock.go:372 # 0x7f1b2b net/http.(*Server).Serve+0x30b net/http/server.go:3330 # 0x7f17f0 net/http.(*Server).ListenAndServe+0x70 net/http/server.go:3259 # 0x11db6d5 net/http.ListenAndServe+0xbd5 net/http/server.go:3514 # 0x11db6d6 gogs.io/gogs/internal/cmd.runWeb+0xbd6 gogs.io/gogs/internal/cmd/web.go:716 # 0x5affaf github.com/urfave/cli.HandleAction+0x4f github.com/urfave/cli@v1.22.16/app.go:524 # 0x5b0d9b github.com/urfave/cli.Command.Run+0x67b github.com/urfave/cli@v1.22.16/command.go:175 # 0x5adc5a github.com/urfave/cli.(*App).Run+0xb3a github.com/urfave/cli@v1.22.16/app.go:277 # 0x120570b main.main+0x3eb gogs.io/gogs/gogs.go:39 # 0x441eaa runtime.main+0x28a runtime/proc.go:272 1 @ 0x4781ee 0x4540a5 0x10ef005 0x4803c1 # 0x10ef004 github.com/gogs/cron.(*Cron).run+0x5a4 github.com/gogs/cron@v0.0.0-20171120032916-9f6c956d3e14/cron.go:197 1 @ 0x4781ee 0x4540a5 0x82064e 0x4803c1 # 0x82064d unknwon.dev/clog/v2.New.func1+0xcd unknwon.dev/clog/v2@v2.2.0/logger.go:202