Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

add -p option to override MAX_PROCESS (250000 by default)

  • Loading branch information...
commit baca23735a7ca2dad3e73524ec64714f20598939 1 parent 8aca2c0
Nicolas Niclausse authored November 30, 2011

Showing 1 changed file with 5 additions and 2 deletions. Show diff stats Hide diff stats

  1. 7  tsung.sh.in
7  tsung.sh.in
@@ -31,6 +31,7 @@ NAME=tsung
31 31
 CONTROLLER=tsung_controller
32 32
 SMP_DISABLE=true
33 33
 WARM_TIME=10
  34
+MAX_PROCESS=250000
34 35
 
35 36
 TSUNGPATH=$INSTALL_DIR/lib/tsung-$VERSION/ebin
36 37
 CONTROLLERPATH=$INSTALL_DIR/lib/tsung_controller-$VERSION/ebin
@@ -40,7 +41,7 @@ BOOT_OPT="-boot $INSTALL_DIR/lib/tsung_controller-$VERSION/priv/tsung_controller
40 41
 DEBUG_LEVEL=5
41 42
 ERL_RSH=" -rsh ssh "
42 43
 ERL_DIST_PORTS=" -kernel inet_dist_listen_min 64000 -kernel inet_dist_listen_max 65500 "
43  
-ERL_OPTS=" $ERL_DIST_PORTS -smp auto +P 250000 +A 16 +K true @ERL_OPTS@ "
  44
+ERL_OPTS=" $ERL_DIST_PORTS -smp auto +P $MAX_PROCESS +A 16 +K true @ERL_OPTS@ "
44 45
 COOKIE='tsung'
45 46
 ERTS_RUN=`$ERL -version 2>&1 | tr -cd 0123456789.`
46 47
 ERTS_BOOT=`grep erts $TSUNGPATH/../priv/tsung.rel 2> /dev/null| tr -cd 0123456789.`
@@ -136,6 +137,7 @@ usage() {
136 137
     echo "    -i <id>       set controller id (default is empty)"
137 138
     echo "    -r <command>  set remote connector (default is ssh)"
138 139
     echo "    -s            enable erlang smp on client nodes"
  140
+    echo "    -p <max>      set maximum erlang processes per vm (default is 250000)"
139 141
     echo "    -m <file>     write monitoring output on this file (default is tsung.log)"
140 142
     echo "                   (use - for standard output)"
141 143
     echo "    -F            use long names (FQDN) for erlang nodes"
@@ -145,7 +147,7 @@ usage() {
145 147
     exit
146 148
 }
147 149
 
148  
-while getopts "vhf:l:d:r:i:Fsw:m:" Option
  150
+while getopts "vhf:l:d:r:i:Fsw:m:p:" Option
149 151
 do
150 152
     case $Option in
151 153
         f) CONF_OPT_FILE=$OPTARG;;
@@ -160,6 +162,7 @@ do
160 162
             ;;
161 163
         m) MON_FILE="mon_file \"$OPTARG\"";;
162 164
         d) DEBUG_LEVEL=$OPTARG;;
  165
+        p) MAX_PROCESS=$OPTARG;;
163 166
         r) ERL_RSH=" -rsh $OPTARG ";;
164 167
         F) NAMETYPE="-name";;
165 168
         w) WARM_TIME=$OPTARG;;

0 notes on commit baca237

Please sign in to comment.
Something went wrong with that request. Please try again.