Commit ddc3d7d5 authored by astaxie's avatar astaxie

beego default set GOMAXPROCS to NumCPU

parent cf60a3f4
...@@ -9,6 +9,7 @@ import ( ...@@ -9,6 +9,7 @@ import (
"net/http/fcgi" "net/http/fcgi"
"os" "os"
"path" "path"
"runtime"
"strconv" "strconv"
) )
...@@ -249,5 +250,6 @@ func Run() { ...@@ -249,5 +250,6 @@ func Run() {
Warn(err) Warn(err)
} }
} }
runtime.GOMAXPROCS(runtime.NumCPU())
BeeApp.Run() BeeApp.Run()
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment