client wait 30s befor send SYN to ftp server on the passive port
hi, i have runed in a ftp problem, ask for help. ftp client: Oracle Database 11.2.0.3, IBM AIX 6100-07-03 OS on IBM Power7 ftp server: vsFTPd v2.2.2 , CentOS 6.6 x64 on x86 server
i run a Oracle PL/SQL procedure for transfer the BLOB file from database to the ftp server that at same subnet network. the PL/SQL procedure is copy from https://oracle-base.com/articles/misc.... when the PL/SQL procedure is running, client wait 30s to establish ftp passive connection EVERY TIME !
i has trace the Oracle database when running the ftp procedure, found some 'TCP Socket (Kgas)' Waits. Oracle don't think the waits is from database but the network: https://docs.oracle.com/database/121/...
i has check the parameter of network on ftp client and server. rfc1323 or net.ipv4.tcp_timestamps is enabled on both. ftp client and server are connect to the same network switch(H3C S7510 core switch).
the tcpdump file from ftp client and server at the same time is here: https://c-t.work/s/84534f77f2b947
thanks.
https://oracle-base.com/dba/miscellan...
Can you add logging with timestamps to
FUNCTION get_passive
?The
PASV
request and TCP connection to the new port are in that function.yes, i had do that. it show 30s waiting time at client. the pic: https://c-t.work/s/06b4d08403c448
You get the delay on both TCP connection opens.
The reference says REMOTE_HOST is a name which gets resolved somewhere.
Can you run
nslookup
on the ftp client machine with the IP address of the FTP server to see if there is a delay in name resolution.I has used the ip adress of ftp server as "remote_host" in UTL_TCP.OPEN_CONNECTION. I has added the hostname and ip address to /etc/hosts on both ftp client and server. And, i had checked the config file /etc/netsvc.conf : hosts=local,bind,nis @bubbasnmp
Have you tried
UTL_INADDR
to test name resolution - IP -> name and name -> IP.https://oracle-base.com/articles/misc...