From e0fdd2055c48540fe458f534e810fae352cedf18 Mon Sep 17 00:00:00 2001 From: gazebo Date: Tue, 27 Aug 2019 09:06:30 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E6=B7=BB=E5=8A=A0pprof=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.go b/main.go index 7eb1dccde..24850c004 100644 --- a/main.go +++ b/main.go @@ -31,6 +31,9 @@ import ( _ "git.rosy.net.cn/jx-callback/business/partner/purchase/mtwm" _ "git.rosy.net.cn/jx-callback/business/partner/purchase/weimob/wsc" + "net/http" + _ "net/http/pprof" + _ "git.rosy.net.cn/jx-callback/business/jxstore/act" "github.com/astaxie/beego" ) @@ -146,6 +149,9 @@ func main() { beego.BConfig.WebConfig.DirectoryIndex = true beego.BConfig.WebConfig.StaticDir["/swagger"] = "swagger" } + go func() { + http.ListenAndServe("0.0.0.0:8899", nil) + }() beego.Run() } }