Re: Trying to simulate browser behavior.
Status: Alpha
Brought to you by:
coroberti
From: Robert I. <cor...@gm...> - 2008-07-02 04:08:07
|
Hi Prahav, On Tue, Jul 1, 2008 at 10:55 PM, Pranav Desai <pra...@gm...> wrote: > Hello, > > I am trying to simulate a browser behavior for accessing a front page > (e.g. www.cnn.com). From traces I see that a few requests go over the > same TCP connections (persistence) and in general there are a few TCP > connections made for completely fetching the whole front page. > > config file > ----------- > BATCH_NAME=test_load > CLIENTS_NUM_MAX=1 # Same as CLIENTS_NUM > CLIENTS_NUM_START=1 > CLIENTS_RAMPUP_INC=2 > INTERFACE =eth1 > NETMASK=16 > IP_ADDR_MIN= 12.0.0.1 > IP_ADDR_MAX= 12.0.16.250 #Actually - this is for self-control > CYCLES_NUM=1 > URLS_NUM=14 > > ########### URL SECTION #################################### > > URL= > http://192.168.55.205/websites/cisco/www.cisco.com/cdc_content_elements/flash/home/sp_072307/spotlight/sp_webEx_tn.jpg > URL= > http://192.168.55.205/websites/cisco/www.cisco.com/cdc_content_elements/flash/home/sp_072307/spotlight/sp_CIN.swf > FRESH_CONNECT=1 > > URL= > http://192.168.55.205/websites/cisco/www.cisco.com/cdc_content_elements/flash/home/sp_072307/spotlight/sp_webEx.swf > > URL=http://192.168.55.205/websites/cisco/www.cisco.com/cdc_content_elements/flash/home/sp_072307/spotlight/sp_humanN_anthem_tn.jpg > URL=http://192.168.55.205/websites/MOO/backfeed10.gif > TIMER_AFTER_URL_SLEEP=2000-5000 > URL=http://192.168.55.205/websites/MOO/bottom.gif > URL=http://192.168.55.205/websites/MOO/style3.css > URL=http://192.168.55.205/websites/MOO/topright.gif > FRESH_CONNECT=1 > > URL=http://192.168.55.205/websites/MOO/rss_smaller.gif > URL=http://192.168.55.205/websites/MOO/index.html.6 > TIMER_AFTER_URL_SLEEP=2000-5000 > > URL=http://192.168.55.205/websites/cnn/www.cnn.com/.element/ssi/www/breaking_news/2.0/banner.html > URL= > http://192.168.55.205/websites/cnn/www.cnn.com/.element/ssi/auto/2.0/sect/MAIN/ftpartners/partner.people.html > TIMER_AFTER_URL_SLEEP=2000-5000 > URL= > http://192.168.55.205/websites/cnn/www.cnn.com/.element/ssi/auto/2.0/sect/MAIN/ftpartners/partner.money.txt > URL= > http://192.168.55.205/websites/cnn/www.cnn.com/.element/img/2.0/global/icons/video_icon.gif > > I am not sure, that the syntax of URL section you are using is correct. Please, try to re-write the configuration file keeping for each URL section it's own parameters, something like below: URL=http://localhost/ACE-INSTALL.html # http://localhost/apache2-default/ACE-INSTALL.html URL_SHORT_NAME=" ACE" REQUEST_TYPE=GET TIMER_URL_COMPLETION = 0 TIMER_AFTER_URL_SLEEP =0 FRESH_CONNECT=1 URL= http://localhost/index.html URL_SHORT_NAME=" INDEX" REQUEST_TYPE=GET TIMER_URL_COMPLETION = 0 # In msec. When positive, Now it is enforced by cancelling url fetch on timeout TIMER_AFTER_URL_SLEEP =1000 FRESH_CONNECT=1 >From the HTTP point of view GET requests may still go via the same TCP/IP connection. What we should expect from FRESH_CONNECT=1 is that the connection will be closed and re-established at each loading cycle. In general connections are the matter of libcurl library, where it is keeping some 5-10 connections minimum, which is govern my MAX_CONNECTIONS flag logic. What happens with the connection policy, when you are trying e.g. 50, 100 virtual clients? -- Truly, Robert Iakobashvili, Ph.D. ...................................................................... Assistive technology that understands you ...................................................................... |