One of the mysterious reasons for hanging of a long running server is running out of file descriptors. While you can delay the problem by increasing file descriptor (also known as File handle) count, it will not solve the problem in most cases. Then you need to figure out which method is leaking the file descriptors or to begin with if that is even an issue. I will show you a simple one-line code to get File Descriptor count in Java:
Older News | ||||||
S | M | T | W | T | F | S |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 1 | 2 | 3 | 4 |
5 | 6 | 7 | 8 | 9 | 10 | 11 |