xiaonanln / goworld

Scalable Distributed Game Server Engine with Hot Swapping in Golang
Apache License 2.0
2.53k stars 450 forks source link

Mac run errror #75

Closed 514366607 closed 4 years ago

514366607 commented 5 years ago

hibledeiMac:goworld hible$ /Users/hible/Documents/GoPath/bin/goworld start examples/chatroom_demo

arguments: start examples/chatroom_demo go search paths: /usr/local/go:/Users/hible/Documents/GoPath goworld directory found: /Users/hible/Documents/GoPath/src/github.com/xiaonanln/goworld info Using config file: /Users/hible/Documents/GoPath/src/github.com/xiaonanln/goworld/goworld.ini {"ts": "2019-07-01T17:53:16.129+0800"} info >>> config <<< debug = true {"ts": "2019-07-01T17:53:16.130+0800"} info >>> config <<< desired dispatcher count = 1 {"ts": "2019-07-01T17:53:16.130+0800"} info >>> config <<< desired game count = 1 {"ts": "2019-07-01T17:53:16.130+0800"} info >>> config <<< desired gate count = 1 {"ts": "2019-07-01T17:53:16.130+0800"} info >>> config <<< storage type = mongodb {"ts": "2019-07-01T17:53:16.130+0800"} info >>> config <<< KVDB type = mongodb {"ts": "2019-07-01T17:53:16.130+0800"} start dispatchers ... dispatcher ids: [1] ! start dispatcher failed, see dispatcher.log for error: fork/exec /Users/hible/Documents/GoPath/src/github.com/xiaonanln/goworld/components/dispatcher/dispatcher: resource temporarily unavailable

514366607 commented 5 years ago

手动运行正常

/Users/hible/Documents/GoPath/src/github.com/xiaonanln/goworld/components/dispatcher/dispatcher -dispid 1 -configfile /Users/hible/Documents/GoPath/src/github.com/xiaonanln/goworld/goworld.ini
info    Using config file: /Users/hible/Documents/GoPath/src/github.com/xiaonanln/goworld/goworld.ini   {"ts": "2019-07-01T17:56:41.041+0800"}
info    >>> config <<< debug = true     {"ts": "2019-07-01T17:56:41.041+0800"}
info    >>> config <<< desired dispatcher count = 1     {"ts": "2019-07-01T17:56:41.041+0800"}
info    >>> config <<< desired game count = 1   {"ts": "2019-07-01T17:56:41.041+0800"}
info    >>> config <<< desired gate count = 1   {"ts": "2019-07-01T17:56:41.041+0800"}
info    >>> config <<< storage type = sql       {"ts": "2019-07-01T17:56:41.041+0800"}
info    >>> config <<< KVDB type = sql  {"ts": "2019-07-01T17:56:41.041+0800"}
info    Set log level to debug  {"source": "dispatcherService", "ts": "2019-07-01T17:56:41.041+0800"}
info    http server listening on 127.0.0.1:23000        {"source": "dispatcherService", "ts": "2019-07-01T17:56:41.042+0800"}
info    pprof http://127.0.0.1:23000/debug/pprof/ ... available commands:       {"source": "dispatcherService", "ts": "2019-07-01T17:56:41.042+0800"}
info        go tool pprof http://127.0.0.1:23000/debug/pprof/heap       {"source": "dispatcherService", "ts": "2019-07-01T17:56:41.042+0800"}
info        go tool pprof http://127.0.0.1:23000/debug/pprof/profile    {"source": "dispatcherService", "ts": "2019-07-01T17:56:41.042+0800"}
info    <!--XSUPERVISOR:BEGIN--> DISPATCHER STARTED <!--XSUPERVISOR:END-->      {"source": "dispatcherService", "ts": "2019-07-01T17:56:41.045+0800"}
info    Listening on TCP: 127.0.0.1:13000 ...   {"source": "dispatcherService", "ts": "2019-07-01T17:56:41.045+0800"}
^Cinfo  Dispatcher terminated gracefully.       {"source": "dispatcherService", "ts": "2019-07-01T17:56:48.368+0800"}
simonlingoogle commented 4 years ago

Can not reproduce .