‘Too many open files’ but what are they?

java.io.FileNotFoundException: /opt/tb55/s3/conf/web.xml (Too many open files) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106)

this shows the open file limit has been reached.. you can check this by JMX
java.lang:type=OperatingSystem >  OpenFileDescriptorCount
but what are these files ? you can see this by linux shell script

lsof -u tomcat

lsof manual

solution: increase systems open file limit !!!

vi /etc/security/limits.conf

and edit the line to increase open file limit

* soft nofile 3072
* hard nofile 4048

Reblog this post [with Zemanta]

Related Posts

  1. maven profiles
  2. Projects
  3. Why I haven’t tried JPA?
  4. Complete Apache 2.2-AJP Load Balance via mod_proxy
  5. too much annotation is also bad
    • Anonymous
    • June 13th, 2007

    NB: The OpenFileDescriptorCount is not available in Windows, and it is not included in the OperatingSystemMXBean interface.

  1. thanks for notice,

    I didn’t used coding and interface for this , I see this from monitoring tools like jmanage and jconsole

  1. No trackbacks yet.