set INSTALL_DIR=D:/tsung_install/lib/erlang
set ERL="C:/Program Files/erl5.6.3/bin/erl.exe"
set MAIN_DIR=D:/tsung_install/_tsung
set LOG_DIR=%MAIN_DIR%/log
set LOG_OPT=log_file "%LOG_DIR%/tsung.log"
set VERSION=1.3.0
set NAMETYPE=-sname
set LISTEN_PORT=8090
set USE_PARENT_PROXY=false
set PGSQL_SERVER_IP=127.0.0.1
set PGSQL_SERVER_PORT=5432
set NAME=tsung
set CONTROLLER=tsung_controller
set RECORDER=tsung_recorder
set TSUNGPATH=%INSTALL_DIR%/lib/tsung-%VERSION%/ebin
set CONTROLLERPATH=%INSTALL_DIR%/lib/tsung_controller-%VERSION%/ebin
set RECORDERPATH=%INSTALL_DIR%/lib/tsung_recorder-%VERSION%/ebin
set CONF_OPT_FILE=%MAIN_DIR%/tsung.xml
set BOOT_OPT=-boot %INSTALL_DIR%/lib/tsung_controller-%VERSION%/priv/tsung_controller -boot_var TSUNGPATH %INSTALL_DIR%
set REC_BOOT_OPT=-boot %INSTALL_DIR%/lib/tsung_recorder-%VERSION%/priv/tsung_recorder -boot_var TSUNGPATH %INSTALL_DIR%
set DEBUG_LEVEL=5
set RECORDER_PLUGIN=http
set ERL_RSH=-rsh ssh
set ERL_OPTS=-smp auto +P 250000 +A 16 +K true
set COOKIE=tsung
@REM set ERTS_RUN=`$ERL -version 2>&1 | tr -cd 0123456789.`
@REM set ERTS_BOOT=`grep erts $TSUNGPATH/../priv/tsung.rel | tr -cd 0123456789.`
%ERL% %ERL_OPTS% %ERL_RSH% -noshell %NAMETYPE% %RECORDER% -setcookie %COOKIE% %REC_BOOT_OPT% ^
-pa %TSUNGPATH% -pa %RECORDERPATH% -pa %CONTROLLERPATH% ^
-tsung_recorder debug_level %DEBUG_LEVEL% ^
-tsung_recorder %LOG_OPT% ^
-tsung_recorder parent_proxy %USE_PARENT_PROXY% ^
-tsung_recorder plugin ts_proxy_%RECORDER_PLUGIN% ^
-tsung_recorder proxy_log_file "%MAIN_DIR%/tsung_recorder.xml" ^
-tsung_recorder pgsql_server "%PGSQL_SERVER_IP%" ^
-tsung_recorder pgsql_port %PGSQL_SERVER_PORT% ^
-tsung_recorder proxy_listen_port %LISTEN_PORT%
@REM &
@REM echo $! > /tmp/tsung_recorder.pid
pause
-----------------
D:/tsung_install/bin>"C:/Program Files/erl5.6.3/bin/erl.exe" -smp auto +P 250000
+A 16 +K true -rsh ssh -noshell -sname tsung_recorder -setcookie tsung -boot D
:/tsung_install/lib/erlang/lib/tsung_recorder-1.3.0/priv/tsung_recorder -boot_va
r TSUNGPATH D:/tsung_install/lib/erlang -pa D:/tsung_install/lib/erlang/lib/tsu
ng-1.3.0/ebin -pa D:/tsung_install/lib/erlang/lib/tsung_recorder-1.3.0/ebin -pa
D:/tsung_install/lib/erlang/lib/tsung_controller-1.3.0/ebin -tsung_recorder debu
g_level 5 -tsung_recorder log_file "D:/tsung_install/_tsung/log/tsung.log" -tsun
g_recorder parent_proxy false -tsung_recorder plugin ts_proxy_http -tsung_record
er proxy_log_file "D:/tsung_install/_tsung/tsung_recorder.xml" -tsung_recorder p
gsql_server "127.0.0.1" -tsung_recorder pgsql_port 5432 -tsung_recorder proxy_li
sten_port 8090
kernel-poll not supported; "K" parameter ignored
{error_logger,{{2009,5,13},{23,59,42}},"application_controller: ~s: ~s~n",[["syn
tax error before: ",["'/'"]],"D:/tsung_install/_tsung/log/tsung.log"]}
=ERROR REPORT==== 13-May-2009::23:59:42 ===
application_controller: syntax error before: '/': D:/tsung_install/_tsung/log/ts
ung.log
{
=ERROR REPORT==== 13-May-2009::23:59:42 ===
application_controller: syntax error before: '/': D:/tsung_install/_tsung/log/ts
ung.log
"init terminating in do_boot",{error,'Bad environment variable: "D:/tsung_instal
l/_tsung/log/tsung.log" Application: tsung_recorder'}}
Crash dump was written to: erl_crash.dump
init terminating in do_boot ()
tsung_recorder.erl:
start(_Type, _StartArgs) ->
error_logger:tty(false),
error_logger:logfile({open, ?config(log_file) ++ "-" ++ atom_to_list(node())}),