Unable to complete the sync

I am adding a new member in ReplicaSet and it does not seem to finish its first sync.
Below are the LOG file Error messages:
Mon Aug 01 13:15:32.328 [rsSync] oplog sync 1 of 3
Mon Aug 01 13:15:32.332 [rsSync] Socket say send() errno:110 Connection timed out xx.xxx.xxx.xx:27017
Mon Aug 01 13:15:32.338 [rsSync] connection lost to mongo2.applect.com:27017; is your tcp keepalive interval set appropriately?replSet initial sync exception: 9001 socket exception [5] server [xxxxxx.xxxxxx.com:27017] 7 attempts remaining
Can someone please help me debug this error?

Log file clearly says that connection timed out. In third line it says “connection lost to mongo2.applect.com:27017;” which suggests it is connecting to replica set but the tcp session is expiring.You have to set tcp_keepalive_interval as per your requirement. Check the link below. In this oracle documentation, Complete guide to tuning servers for TCP/IP setting is mentioned.
docs.oracle.com/cd/E19644-01/817 … ingos.html
go through it. If you face any issue, please revert back to the forum.