simple.pg of polygraph-2.8.1 on linux

Ashwani Wason <[email protected]>
Newsgroups gmane.comp.web.web-polygraph.user
Organization Bytemobile, Inc.
Message-ID <1119466200.4065.43.camel@ash>
Hi,

I am pretty much following the instructions in the user manual of
polygraph-2.8.1 for using the default simple.pg, which sets up a server
on 127.0.0.1:9090 and client on 127.0.0.1. I am on Fedora (post core 4)
Linux.

The client fails to connect to the server. I changed the IP addresses so
that the client and the server run on different machines, but still I
get the same error. I searched the list archives and web for this error
but did not find much info.

Here is some output from the client:

Running: "/usr/local/polygraph/bin/polyclt
--config /home/awason/polygraph/workloads/simple.pg
--cfg_dirs /home/awason/polygraph/workloads/include --verb_lvl 10"...
gadgets.cc:282: (s0) Success
gadgets.cc:282: (s0) Success
gadgets.cc:282: (s0) Success
/usr/local/polygraph/bin/polyclt: warning: no run phases were specified;
generating and using default phase
PolyApp.cc:720: (s0) Success
000.01| dynamic modules loaded: 0
000.02| Command: /usr/local/polygraph/bin/polyclt
--config /home/awason/polygraph/workloads/simple.pg
--cfg_dirs /home/awason/polygraph/workloads/include --verb_lvl 10
000.02| Configuration:
        version:            2.8.1
        host_type:          i686-pc-linux-gnu
        verb_lvl:           10
        dump:               err,
        dump_size:          1.000KB
        notify:             <none>
        doorman_listen_at:  <none>
        doorman_send_to:    <none>
        label:              [none]
        fd_limit:           983
        config:             /home/awason/polygraph/workloads/simple.pg
        cfg_dirs:           /home/awason/polygraph/workloads/include
        console:            -
        log:                [none]
        log_buf_size:       -1Bytes
        store_working_set:  [none]
        load_working_set:   [none]
        sample_log:         [none]
        sample_log_buf_size:-1Bytes
        accept_foreign_msgs:off
        stats_cycle:        5.00sec
        file_scan:          poll
        priority_sched:     5
        fake_hosts:         
        delete_old_addrs:   yes
        idle_tout:          <none>
        local_rng_seed:     1
        global_rng_seed:    1
        unique_world:       on
        proxy:              <none>
        ports:              <none>
        loadable_modules:   
        icp_tout:           2.00sec
        ign_false_hits:     on
        ign_bad_cont_tags:  off
        prn_false_misses:   off
000.02| Server content distributions:
        Server S101:
                content   planned%    likely%     error% mean_sz_bytes
        some-content                   100.00     100.00       0.00
13326.41
        expected average server-side cachability: 80.00%
        expected average server-side object size: 13326.41Bytes

000.02| Phases:
     phase  pop_beg  pop_end load_beg load_end  rec_beg  rec_end
smsg_beg smsg_end     goal      flags
dflt              1.00     1.00     1.00     1.00     1.00     1.00
1.00     1.00 <none>
000.02| StatsSamples:
        static stats samples:   0
        dynamic stats samples:  0

gadgets.cc:282: (s0) Success
gadgets.cc:282: (s0) Success
000.02| FDs: 1024 out of 1024 FDs can be used; safeguard limit: 983
000.02| resource usage: 
        CPU Usage: 71msec sys + 1.66sec user = 1.73sec
        Page faults with physical i/o: 3

000.02| group-id: 0c586135.2b222de0:00000004 pid: 11744
000.02| current time: 1119464324.170414 or Wed, 22 Jun 2005 18:18:44 GMT
000.02| registered client-side session watches: 0
000.02| registered client-side data filters: 0
000.02| fyi: PGL configuration stored (370bytes)
000.02| fyi: no bench selected with use(); will not attempt to create
agent addresses
000.02| created 1 agents total
000.02| Robot R101 [1 / 0c586135.2b222de0:00000006] at 127.0.0.1
000.02| fyi: current state (1) stored
000.02| fyi: max local population size: 1 robots
000.02| Connection.cc:136: error: 1/1 (s22) Invalid argument
000.02| Client.cc:306: error: 1/2 (c59) failed to establish a connection
000.02| 127.0.0.1 failed to connect to 127.0.0.1:9090
000.02| fyi: reached max local population size: 1 robots
000.02| Connection.cc:136: error: 2/3 (s22) Invalid argument
000.02| Client.cc:306: error: 2/4 (c59) failed to establish a connection
..
..

Output from the server:

Running: "/usr/local/polygraph/bin/polysrv
--config ./workloads/simple.pg --cfg_dirs ./workloads/include --verb_lvl
10"...
gadgets.cc:282: (s0) Success
gadgets.cc:282: (s0) Success
gadgets.cc:282: (s0) Success
/usr/local/polygraph/bin/polysrv: warning: no run phases were specified;
generating and using default phase
PolyApp.cc:720: (s0) Success
000.02| Command: /usr/local/polygraph/bin/polysrv
--config ./workloads/simple.pg --cfg_dirs ./workloads/include --verb_lvl
10
000.02| Configuration:
        version:            2.8.1
        host_type:          i686-pc-linux-gnu
        verb_lvl:           10
        dump:               err,
        dump_size:          1.000KB
        notify:             <none>
        doorman_listen_at:  <none>
        doorman_send_to:    <none>
        label:              [none]
        fd_limit:           983
        config:             ./workloads/simple.pg
        cfg_dirs:           ./workloads/include
        console:            -
        log:                [none]
        log_buf_size:       -1Bytes
        store_working_set:  [none]
        load_working_set:   [none]
        sample_log:         [none]
        sample_log_buf_size:-1Bytes
        accept_foreign_msgs:off
        stats_cycle:        5.00sec
        file_scan:          poll
        priority_sched:     5
        fake_hosts:         
        delete_old_addrs:   yes
        idle_tout:          5.00min
        local_rng_seed:     1
        global_rng_seed:    1
        unique_world:       on
        ign_urls:           off
000.02| Server content distributions:
        Server S101:
                content   planned%    likely%     error% mean_sz_bytes
        some-content                   100.00     100.00       0.00
13326.41
        expected average server-side cachability: 80.00%
        expected average server-side object size: 13326.41Bytes

000.02| Phases:
     phase  pop_beg  pop_end load_beg load_end  rec_beg  rec_end
smsg_beg smsg_end     goal      flags
dflt              1.00     1.00     1.00     1.00     1.00     1.00
1.00     1.00 <none>

000.02| StatsSamples:
        static stats samples:   0
        dynamic stats samples:  0

gadgets.cc:282: (s0) Success
gadgets.cc:282: (s0) Success
000.02| FDs: 1024 out of 1024 FDs can be used; safeguard limit: 983
000.02| resource usage: 
        CPU Usage: 57msec sys + 1.64sec user = 1.70sec
        Page faults with physical i/o: 12

000.02| group-id: 0c586126.5eff2dda:00000004 pid: 11738
000.02| current time: 1119464309.832712 or Wed, 22 Jun 2005 18:18:29 GMT
000.02| fyi: PGL configuration stored (370bytes)
000.02| fyi: no bench selected with use(); will not attempt to create
agent addresses
000.02| created 1 agents total
000.02| Server S101 [1 / 0c586126.5eff2dda:00000006] at 127.0.0.1:9090
HTTP/1.1
000.02| fyi: current state (1) stored
000.02| starting 1 HTTP agents...
000.10| i-dflt      0   0.00     -1  -1.00   0    1
000.19| i-dflt      0   0.00     -1  -1.00   0    1
..
..

I can telnet to that address and port.

[root@ash ~]# telnet 127.0.0.1 9090
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
GET 

Connection closed by foreign host.

Thanks,
Ashwani

This e-mail and any attachments may contain confidential and
privileged information. If you are not the intended recipient,
please notify the sender immediately by return e-mail, do not forward 
this email to any other person, delete this
e-mail and destroy all copies. Any dissemination or use of this
information by a person other than the intended recipient is
unauthorized and may be illegal.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.