diff --git a/rel/files/emqttd.config b/rel/files/emqttd.config index 9ee5fcb29..357189be0 100644 --- a/rel/files/emqttd.config +++ b/rel/files/emqttd.config @@ -176,12 +176,12 @@ %% Size of acceptor pool {acceptors, 16}, %% Maximum number of concurrent clients - {max_clients, 1024}, + {max_clients, 512}, %% Socket Access Control {access, [{allow, all}]}, %% Socket Options {sockopts, [ - {backlog, 1024} + {backlog, 512} %Set buffer if hight thoughtput %{recbuf, 4096}, %{sndbuf, 4096} @@ -192,7 +192,7 @@ %% Size of acceptor pool {acceptors, 4}, %% Maximum number of concurrent clients - {max_clients, 1024}, + {max_clients, 512}, %% Socket Access Control {access, [{allow, all}]}, %% SSL certificate and key files @@ -226,7 +226,7 @@ %% Size of acceptor pool {acceptors, 4}, %% Maximum number of concurrent clients - {max_clients, 512}, + {max_clients, 64}, %% Socket Access Control {access, [{allow, all}]}, %% Socket Options diff --git a/rel/files/vm.args b/rel/files/vm.args index 3e9784935..0f3894c92 100644 --- a/rel/files/vm.args +++ b/rel/files/vm.args @@ -22,10 +22,10 @@ ## Enable kernel poll and a few async threads +K true -+A 32 ++A 16 ## max process numbers -+P 1000000 ++P 8192 ##------------------------------------------------------------------------- ## Env @@ -36,8 +36,7 @@ -env ERTS_MAX_PORTS 4096 -#-env ERL_MAX_ETS_TABLES 1024 +-env ERL_MAX_ETS_TABLES 1024 ## Tweak GC to run more often -##-env ERL_FULLSWEEP_AFTER 1000 -# +-env ERL_FULLSWEEP_AFTER 1000