Hi James,

   Thanks for your reply.

Actually the Traffic server is getting crashed when I am trying to download the 
files from client from a python code using urllib.urlretrieve().

I am having two setups (two different testbeds). It is working fine on one set 
up in which the links carry 1Gb bandwidth but it is not working on the set up 
in which the links carry 10 Mb bandwidth.

as soon as it downloaded from first server, it is getting crashed. 

 but when I download using wget from command prompt one by one, it is working 
with slower link set up. 

So I tried to debug using the slow.log.threshold. 

traffic_server: Segmentation fault (Address not mapped to object [0x88])
traffic_server - STACK TRACE: 
bin/traffic_server(_Z19crash_logger_invokeiP9siginfo_tPv+0x8e)[0x4ad02e]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x10330)[0x7fce5f6f5330]
bin/traffic_server(_ZNK22ProxyClientTransaction9get_netvcEv+0xc)[0x4f122c]
bin/traffic_server(_ZN6HttpSM12update_statsEv+0x322)[0x5a1282]
bin/traffic_server(_ZN6HttpSM9kill_thisEv+0x380)[0x5b3e60]
bin/traffic_server(_ZN6HttpSM12main_handlerEiPv+0x108)[0x5b49f8]
bin/traffic_server(_ZN10HttpTunnel12main_handlerEiPv+0x19d)[0x5f125d]
bin/traffic_server(_Z15write_to_net_ioP10NetHandlerP18UnixNetVConnectionP7EThread+0x11f0)[0x749c70]
bin/traffic_server(_ZN10NetHandler12mainNetEventEiP5Event+0x29c)[0x73b6dc]
bin/traffic_server(_ZN7EThread7executeEv+0x9c2)[0x76d442]
bin/traffic_server[0x76c04a]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x8184)[0x7fce5f6ed184]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7fce5e9f637d]
gvelus01@ts:/usr/local$ 


Thanks
Gandhimathi

________________________________________
From: James Peach [[email protected]]
Sent: Monday, August 29, 2016 10:15 PM
To: [email protected]
Subject: Re: Slow Request Error

> On Aug 29, 2016, at 5:12 PM, Velusamy, Gandhimathi <[email protected]> 
> wrote:
>
> Hi,
>
>   I am working with balancer plugins and I am getting the following error in 
> my Diags.log.

This is not an error. You have set proxy.config.http.slow.log.threshold, so 
Traffic Server is logging information about requests that took longer than that 
threshold.

https://docs.trafficserver.apache.org/en/latest/admin-guide/files/records.config.en.html#proxy-config-http-slow-log-threshold

> The bandwidth on the links is 10 Mbits/sec.
>
> As I am working on balancer plugin I turned caching off.
>
> I am trying to download pdf files of different sizes from client.
>
> My Diags.log shows:
> Aug 29 19:36:50.096] Server {0x7fdffcf15780} ERROR: <HttpSM.cc:7015 
> (update_stats)> [8] Slow Request: client_ip: 172.16.4.2:46306 url: 
> http://172.16.1.2/book_14mb.pdf status: 200 unique id:  redirection_tries: 0 
> bytes: 14243401 fd: 0 client state: 0 server state: 9 ua_begin: 0.000 
> ua_first_read: 0.000 ua_read_header_done: 0.000 cache_open_read_begin: -0.001 
> cache_open_read_end: -0.001 dns_lookup_begin: 0.000 dns_lookup_end: 0.000 
> server_connect: 0.000 server_first_read: 0.007 server_read_header_done: 0.007 
> server_close: 11.263 ua_close: 11.263 sm_finish: 11.263 plugin_active: -0.001 
> plugin_total: -0.001

Basically all the time in this transaction is between server_read_header_done 
and server_close, so it took a long time for the origin server to deliver the 
object contents.

> [Aug 29 19:42:03.295] Server {0x7fdff9f70700} ERROR: <HttpSM.cc:7015 
> (update_stats)> [9] Slow Request: client_ip: 172.16.4.2:46340 url: 
> http://172.16.2.2/book_14mb.pdf status: 200 unique id:  redirection_tries: 0 
> bytes: 14243401 fd: 0 client state: 0 server state: 9 ua_begin: 0.000 
> ua_first_read: 0.000 ua_read_header_done: 0.000 cache_open_read_begin: -0.001 
> cache_open_read_end: -0.001 dns_lookup_begin: 0.000 dns_lookup_end: 0.000 
> server_connect: 0.000 server_first_read: 0.007 server_read_header_done: 0.007 
> server_close: 11.088 ua_close: 11.088 sm_finish: 11.088 plugin_active: -0.001 
> plugin_total: -0.001
>
> Even for small download also getting the same error:
> Aug 29 20:06:26.853] Server {0x7fdff9e6f700} ERROR: <HttpSM.cc:7015 
> (update_stats)> [10] Slow Request: client_ip: 172.16.4.2:46489 url: 
> http://172.16.3.2/book_3mb.pdf status: 200 unique id:  redirection_tries: 0 
> bytes: 3129946 fd: 0 client state: 0 server state: 9 ua_begin: 0.000 
> ua_first_read: 0.000 ua_read_header_done: 0.000 cache_open_read_begin: -0.001 
> cache_open_read_end: -0.001 dns_lookup_begin: 0.000 dns_lookup_end: 0.000 
> server_connect: 0.000 server_first_read: 0.001 server_read_header_done: 0.001 
> server_close: 1.719 ua_close: 1.719 sm_finish: 1.719 plugin_active: -0.001 
> plugin_total: -0.001
>
>
> May I please, know how to get rid of this error.
>
>
> Thanks
> Gandhimathi

Reply via email to