diff --git a/cmd/ledis-server/main.go b/cmd/ledis-server/main.go index 576ab7f..8673cd2 100644 --- a/cmd/ledis-server/main.go +++ b/cmd/ledis-server/main.go @@ -3,6 +3,9 @@ package main import ( "flag" "github.com/siddontang/ledisdb/server" + "log" + "net/http" + _ "net/http/pprof" "os" "os/signal" "runtime" @@ -52,5 +55,9 @@ func main() { app.Close() }() + go func() { + log.Println(http.ListenAndServe("localhost:6060", nil)) + }() + app.Run() }