There can be 3 potential causes of Socket Timeout.
Solutions:
In the properties file -
agent_home/conf/application.properties add two parameters with values as below.
These may also help with the agent not getting into the “Unknown” state.
ae.connect.timeout=60 #timeout for establishing connection
ae.socket.timeout=120 #socket timeout: timeout for which the
packets can be stalled without breaking connection.
Both are in seconds. Start with these values and increase it if you still see
timeout errors. Values can be up to a few minutes.