[Tsung] Tsung can't connect to remote client host[remote beam]
Tonny Adhi
ragnalinux at gmail.com
Thu Aug 3 15:24:18 CEST 2006
Hi,i'm completely newbie in erlang and tsung.
Lately i'm trying to benchmark my apache installation on my SuSE box using
tsung.
I already configured the scenario and also set up passwordless ssh in SuSE
box and the box that i used to run tsung [my SuSE box also configured to
simulate the client].
Here's my scenario
<?xml version="1.0"?>
<!DOCTYPE tsung SYSTEM "/usr/local/share/tsung/tsung-1.0.dtd">
<tsung loglevel="debug" version="1.0">
<!-- Client side setup -->
<clients>
<client host="fafner" weight="1" maxusers="200">
<ip value="192.168.100.1"></ip>
</client>
<client host="mobile" weight="1" maxusers="100">
<ip value="192.168.100.10"></ip>
</client>
</clients>
<!-- Server side setup -->
<servers>
<server host="192.168.100.10" port="80" type="tcp"></server>
</servers>
<!-- to start os monitoring (cpu, network, memory). Use an erlang
agent on the remote machine or SNMP. erlang is the default -->
<monitoring>
<monitor host="mobile" type="snmp"></monitor>
</monitoring>
<load>
<!-- several arrival phases can be set: for each phase, you can set
the mean inter-arrival time between new clients and the phase
duration -->
<arrivalphase phase="1" duration="3" unit="minute">
<users interarrival="0.2" unit="second"></users>
</arrivalphase>
</load>
<options>
<option type="ts_http" name="user_agent">
<user_agent probability="80">Mozilla/5.0 (X11; U; Linux i686; en-US; rv:
1.7.8) Gecko/20050513 Galeon/1.3.21</user_agent>
<user_agent probability="20">Mozilla/5.0 (Windows; U; Windows NT 5.2;
fr-FR; rv:1.7.8) Gecko/20050511 Firefox/1.0.4</user_agent>
</option>
</options>
<!-- start a session for a http user. the probability is the
frequency of this type os session. The sum of all session's
probabilities must be 100 -->
<sessions>
<session name="http-example" probability="100" type="ts_http">
<!-- full url with server name, this overrides the "server" config value
-->
<request> <http url="/" method="GET" version="1.1"></http> </request>
<request> <http url="/tonny/tes.php" method="GET" version="1.1"></http>
</request>
<request> <http url="/tonny/wget.zip" method="GET" version="1.1"></http>
</request>
<request> <http url="/tonny/lacus.jpg" method="GET" version="1.1"></http>
</request>
<thinktime value="20" random="true"></thinktime>
<request> <http url="/tonny/tes.php" method="GET" version="1.1" ></http>
</request>
</session>
</sessions>
</tsung>
And here's the log from tsung_controller
=INFO REPORT==== 3-Aug-2006::17:44:35 ===
ts_config_server:(5:<0.44.0>) Config server started, logdir is
"/root/.tsung/log/20060803-10:44"
=INFO REPORT==== 3-Aug-2006::17:44:35 ===
ts_mon:(5:<0.43.0>) starting monitor, global
=INFO REPORT==== 3-Aug-2006::17:44:35 ===
ts_mon:(5:<0.45.0>) Init, log dir is
"/root/.tsung/log/20060803-10:44"
=INFO REPORT==== 3-Aug-2006::17:44:35 ===
ts_mon:(5:<0.45.0>) starting monitor
=INFO REPORT==== 3-Aug-2006::17:44:35 ===
ts_os_mon:(5:<0.43.0>) starting os_mon
=INFO REPORT==== 3-Aug-2006::17:44:35 ===
ts_os_mon:(5:<0.50.0>) os_mon started
=INFO REPORT==== 3-Aug-2006::17:44:35 ===
ts_config:(5:<0.44.0>) Reading config file:
/root/.tsung/tsung.xml
=INFO REPORT==== 3-Aug-2006::17:44:35 ===
ts_config_http:(4:<0.44.0>) Get user agent: 80 "Mozilla/5.0 (X11; U;
Linux i686; en-US; rv:1.7.8) Gecko/20050513 Galeon/1.3.21"
=INFO REPORT==== 3-Aug-2006::17:44:35 ===
ts_config_http:(4:<0.44.0>) Get user agent: 20 "Mozilla/5.0 (Windows;
U; Windows NT 5.2; fr-FR; rv:1.7.8) Gecko/20050511 Firefox/1.0.4"
=INFO REPORT==== 3-Aug-2006::17:44:35 ===
ts_config:(5:<0.44.0>) Session name for id 1 is "http-example"
=INFO REPORT==== 3-Aug-2006::17:44:35 ===
ts_config:(5:<0.44.0>) Session type: persistent=true
=INFO REPORT==== 3-Aug-2006::17:44:35 ===
ts_config_http:(5:<0.44.0>) Relative URL, single server
=INFO REPORT==== 3-Aug-2006::17:44:35 ===
ts_config_server:(5:<0.44.0>) SYSINFO:Erlang version: Erlang (BEAM)
emulator version 5.5 [source] [async-threads:1] [hipe]
=INFO REPORT==== 3-Aug-2006::17:44:35 ===
ts_config_server:(5:<0.44.0>) SYSINFO:System architecture
i686-pc-linux-gnu
=INFO REPORT==== 3-Aug-2006::17:44:35 ===
ts_config_server:(5:<0.44.0>) SYSINFO:Current path:
/usr/local/lib/erlang/lib/tsung-1.2.0/ebin/tsung.beam
=INFO REPORT==== 3-Aug-2006::17:44:35 ===
ts_config_server:(7:<0.53.0>) No File server defined, skip
=INFO REPORT==== 3-Aug-2006::17:44:35 ===
ts_mon:(5:<0.45.0>) Activate clients with text backend
=INFO REPORT==== 3-Aug-2006::17:44:35 ===
ts_config_server:(6:<0.44.0>) starting newbeam on host mobile from
fafner with Args " -rsh ssh -detached -setcookie tsung -shared -boot
/usr/local/lib/erlang//lib/tsung-1.2.0/priv/tsung -boot_var TSUNGPATH
/usr/local/lib/erlang/ -pa /usr/local/lib/erlang//lib/tsung-1.2.0/ebin -pa
/usr/local/lib/erlang//lib/tsung_controller-1.2.0/ebin -tsung debug_level 7
-tsung dump none -tsung log_file
ts_encoded_47root_47.tsung_47log_4720060803_4510_5844"
=INFO REPORT==== 3-Aug-2006::17:44:35 ===
ts_os_mon:(7:<0.50.0>) Starting SNMP mgr on {192,168,100,10}
=INFO REPORT==== 3-Aug-2006::17:44:35 ===
ts_os_mon:(6:<0.50.0>) SNMP mgr started; remote node is {192,
168,
100,
10}
=INFO REPORT==== 3-Aug-2006::17:45:07 ===
ts_config_server:(0:<0.44.0>) Can't start newbeam on host mobile
(reason: timeout) ! Aborting!
=ERROR REPORT==== 3-Aug-2006::17:45:07 ===
** Generic server ts_config_server terminating
** Last message in was {'$gen_cast',{newbeam,mobile,[]}}
** When Server state == {state,{config,
undefined,
7,
none,
text,
undefined,
[{client,
"mobile",
1.00000,
200,
[{192,168,100,10}]},
{client,
"fafner",
1.00000,
300,
[{192,168,100,1}]}],
[{server,"192.168.100.10",80,gen_tcp}],
[{"mobile",snmp}],
[{arrivalphase,
1,
180,
undefined,
undefined,
2.00000e-3,
infinity}],
undefined,
false,
[],
undefined,
[{session,
1,
100,
ts_http,
true,
negociate,
undefined}],
17,
false,
20,
6,
6,
undefined,
negociate},
"/root/.tsung/log/20060803-10:44",
undefined,
fafner,
0,
0,
undefined,
2.00000}
** Reason for termination ==
** {bad_return_value,{stop,normal}}
=INFO REPORT==== 3-Aug-2006::17:45:07 ===
ts_mon:(0:<0.45.0>) Aborting by request !
=INFO REPORT==== 3-Aug-2006::17:45:07 ===
ts_os_mon:(5:<0.50.0>) Terminating ts_os_mon, stop beams: []
=INFO REPORT==== 3-Aug-2006::17:45:07 ===
ts_mon:(5:<0.45.0>) stoping monitor ({normal,
{gen_server,
call,
[ts_os_mon,
{stop},
infinity]}})
My SuSE box is running on 1.6 Ghz P4 with SuSE 10 and erlang/otp R11 and the
other box using fedora core 5 AMD Athlon XP 1.6 Ghz erlang/otp R11.
My suse box hostname is mobile and fc5 box hostname is fafner. Both of
them already configured in /etc/hosts in SuSE and fedora.
Don't know what to do,there's always timeout when tsung tried to connect on
SuSE to create more users.
--
Be Linux and Be Different
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.process-one.net/pipermail/tsung-users/attachments/20060803/5432ecb4/attachment-0001.html
More information about the Tsung-users
mailing list