Hello i am having a issue where i create connections to the as400 system using tomcat.
Everytime we call the as400 system it creates a connection. Sometimes the system lags and we never get a response back and it just holds up so we never close that connection so the file stays open.
I have ulimit set to 65535
Is there a way that after 10 or so minutes if a connection like this
java 29838 tomcat 504u IPv6 631178 TCP server.net.local:53494->as400:8000 (ESTABLISHED)
java 29838 tomcat 505u IPv6 631137 TCP server.net.local:53480->as400:8000 (ESTABLISHED)
java 29838 tomcat 506u IPv6 631141 TCP server.net.local:53483->as400:8000 (ESTABLISHED)
java 29838 tomcat 507u IPv6 631281 TCP server.net.local:53503->as400:8000 (ESTABLISHED)
java 29838 tomcat 508u IPv6 631179 TCP server.net.local:53495->as400:8000 (ESTABLISHED)
java 29838 tomcat 509u IPv6 630925 TCP server.net.local:53446->as400:8000 (ESTABLISHED)
so if a connection has a TCP connection, or if it is called as400:8000? I can have something that will kill it after 10 minutes or so?
Or is this impossible to do.
Thank you for your time any help is appreciated.