If you are seeing too many application file handles, it is likely that you have a leak in your application code. On a Windows machine, you can check the open files through the Resource Monitor Tool which contains this information in the Disk section: This command will return in the last column the file descriptor name: java 1234 user mem REG 253,0 395156 785358 /home/application/fileleak1.txt For example, if your JVM process has the pid 1234: lsofpid -p 1234 To check the number of open files per process you can use the Linux command lsof. On a Linux machine, everything is a file: this includes, for example, regular files or sockets. You can approach this issue with the following check-list:įirstly, we need to determine if the Root cause of “ Too many open Files” is the JVM process itself. In Linux, the maximum open file limits are set by default for each process or user and the defaut values are quite small.Īlso note that socket connections are treated like files and they use file descriptor, which is a limited resource. The error Java IOException “Too many open files” can happen on high-load servers and it means that a process has opened too many files (file descriptors) and cannot open new ones.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |