Hi all
I have a java program which has a server-socket listening infinitely. In case of JVM exiting abnormally through kill pid, what happens to system resources in this case, socket object ? Will the sockets be released or it will be locked up?
What is the best way to handle the cleanup of system resources like file descriptors/network-socket/jdbc connection, in case of abnormal JVM exit.
I know about finalizers, finally, but there is some amount of uncertainty and performance degradation using finalization.
Pls provide some ideas