shrunk bootstrap memory usage

This commit is contained in:
Feng 2015-08-09 23:23:54 +08:00
parent a9eb3c83ce
commit 2d7f2383d1
2 changed files with 8 additions and 9 deletions

View File

@ -176,12 +176,12 @@
%% Size of acceptor pool %% Size of acceptor pool
{acceptors, 16}, {acceptors, 16},
%% Maximum number of concurrent clients %% Maximum number of concurrent clients
{max_clients, 1024}, {max_clients, 512},
%% Socket Access Control %% Socket Access Control
{access, [{allow, all}]}, {access, [{allow, all}]},
%% Socket Options %% Socket Options
{sockopts, [ {sockopts, [
{backlog, 1024} {backlog, 512}
%Set buffer if hight thoughtput %Set buffer if hight thoughtput
%{recbuf, 4096}, %{recbuf, 4096},
%{sndbuf, 4096} %{sndbuf, 4096}
@ -192,7 +192,7 @@
%% Size of acceptor pool %% Size of acceptor pool
{acceptors, 4}, {acceptors, 4},
%% Maximum number of concurrent clients %% Maximum number of concurrent clients
{max_clients, 1024}, {max_clients, 512},
%% Socket Access Control %% Socket Access Control
{access, [{allow, all}]}, {access, [{allow, all}]},
%% SSL certificate and key files %% SSL certificate and key files
@ -226,7 +226,7 @@
%% Size of acceptor pool %% Size of acceptor pool
{acceptors, 4}, {acceptors, 4},
%% Maximum number of concurrent clients %% Maximum number of concurrent clients
{max_clients, 512}, {max_clients, 64},
%% Socket Access Control %% Socket Access Control
{access, [{allow, all}]}, {access, [{allow, all}]},
%% Socket Options %% Socket Options

View File

@ -22,10 +22,10 @@
## Enable kernel poll and a few async threads ## Enable kernel poll and a few async threads
+K true +K true
+A 32 +A 16
## max process numbers ## max process numbers
+P 1000000 +P 8192
##------------------------------------------------------------------------- ##-------------------------------------------------------------------------
## Env ## Env
@ -36,8 +36,7 @@
-env ERTS_MAX_PORTS 4096 -env ERTS_MAX_PORTS 4096
#-env ERL_MAX_ETS_TABLES 1024 -env ERL_MAX_ETS_TABLES 1024
## Tweak GC to run more often ## Tweak GC to run more often
##-env ERL_FULLSWEEP_AFTER 1000 -env ERL_FULLSWEEP_AFTER 1000
#