[Tsung] Recording session using proxy's problem

Dmitry Mikheev mds at mita.pp.ru
Wed Jun 20 12:58:57 CEST 2007


Hi there,

I'm experiencing problems with tsung recorder, i can't browse through it's
proxy.
My goal is to test proxy performance, so i use      <option type="ts_http"
name="http_use_server_as_proxy" value="true"></option>

loadgen (tsung), internal cache (squid) and external proxy to internet, and
i'm trying to generate a network load on internal cache using tsung.
I use firefox on loadgen to record a sessions for tsung.

If i connect using internal cache, i can see external internet resources
trough external proxy.
If i connect using tsung recorder, i can't see anything, i can't see any
traffic to external proxy with tcpdump from recorder.

The problem is, recorder tryes to resolve addresses itself, instead of
putting this task on internal cache, am i right?
Is there a way to setup recoder to use parent proxy completely? Is there a
workaround?

tsung version 1.2.1

my tsung.xml:
<?xml version="1.0"?>
<!DOCTYPE tsung SYSTEM "/usr/share/tsung/tsung-1.0.dtd">
<tsung loglevel="notice" version="1.0">

<!-- Client side setup -->
<clients>
 <client host="localhost" use_controller_vm="true"/>
</clients>

<!-- Server side setup -->
<servers>
<server host="192.168.232.128" port="2270" 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="192.168.232.128" 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="10" unit="minute">
  <users interarrival="2" unit="second"></users>
</arrivalphase>
</load>

<options>
  <option type="ts_http" name="http_use_server_as_proxy"
value="true"></option>
<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>
</sessions>
</tsung>

log file


=ERROR REPORT==== 29-May-2007::10:03:51 ===
** Generic server <0.55.0> terminating ** Last message in was {tcp,#Port<
0.117>,
                         "GET http://www.ru/ HTTP/1.1\r\nHost:
www.ru\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3)
Gecko/20070310 Iceweasel/2.0.0.3 (Debian-2.0.0.3-1)\r\nAccept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=
0.8,image/png,*/*;q=0.5\r\nAccept-Language: en-us,en;q=
0.5\r\nAccept-Encoding: gzip,deflate\r\nAccept-Charset: ISO-8859-1,utf-8;q=
0.7,*;q=0.7\r\nKeep-Alive: 300\r\nProxy-Connection: keep-alive\r\n\r\n"}
** When Server state == {proxy,#Port<0.117>,
                            undefined,
                            undefined,
                            new,
                            0,
                            0,
                            [],
                            ts_proxy_http,
                            undefined}
** Reason for termination == ** {{badmatch,{error,nxdomain}},
 [{ts_proxy_http,connect,3},
  {ts_proxy_http,check_serversocket,3},
  {ts_proxy_http,parse,4},
  {ts_client_proxy,handle_info,2},
  {gen_server,handle_msg,6},
  {proc_lib,init_p,5}]}

=ERROR REPORT==== 29-May-2007::10:31:13 ===
** Generic server <0.56.0> terminating ** Last message in was {tcp,#Port<
0.118>,
                         "GET
http://sb.google.com/safebrowsing/update?client=navclient-auto-ffox2.0.0.3&mozver=1.8.1.3-2007031001&version=goog-white-domain
:
<skipped>
REF=ID=120a7dbee10a3020:TM=1180445738:LM=1180445738:GM=1:S=YN-b4Wn-uT9oDMCT\r\n\r\n"}
** When Server state == {proxy,#Port<0.118>,
                            undefined,
                            undefined,
                            new,
                            0,
                            0,
                            [],
                            ts_proxy_http,
                            undefined}
** Reason for termination == ** {{badmatch,{error,nxdomain}},
 [{ts_proxy_http,connect,3},
  {ts_proxy_http,check_serversocket,3},
  {ts_proxy_http,parse,4},
  {ts_client_proxy,handle_info,2},
  {gen_server,handle_msg,6},
  {proc_lib,init_p,5}]}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.process-one.net/pipermail/tsung-users/attachments/20070620/8eba0274/attachment.html


More information about the Tsung-users mailing list