As we are using the direct sftp.3gpp we have seen multiple tcp ports opened without closing. This is majorly happens when no XML files are available for collection.
For e.g. we are able to see 900 ssh connections similar to something like below:
tcp 0 0 rchsrv-opennms01:56522 ::ffff:188.8.131.52:ssh ESTABLISHED 28341/java
All of them went away at OpenNMS side, when we restarted OpenNMS process.
May be, OpenNMS side TCP layer is not closing the sockets (If xml files are not available for collection in the destination node, after a particular waiting period we may need to close the opened sftp connection sockets).
So, the open files issue at OpenNMS side may be probably due to so many sftp connections that it keeps open.
Is there any workaround for ensuring sftp sockets in OpenNMS don’t hang with long timeouts.