Thursday, March 11, 2010

‘Too many open files’ but what are they?

Tagged with:
Monday, April 30, 2007, 4:48
This news item was posted in HowTo & Tutorial category and has 2 Comments so far.

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]
Share and Enjoy:
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • Wists
  • LinkedIn
  • Slashdot
  • Google Bookmarks
  • Reddit
  • StumbleUpon
  • email
  • Twitter

Related posts:

  1. multiple tomcat instance – single setup
  2. tomcat port configuration
  3. Complete Apache 2.2-AJP Load Balance via mod_proxy
  4. maven profiles

You can leave a response, or trackback from your own site.

2 Responses to “‘Too many open files’ but what are they?”

  1. Anonymous said on Wednesday, June 13, 2007, 8:51

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

  2. Mert Can Akkan said on Thursday, June 14, 2007, 1:42

    thanks for notice,

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

Leave a Reply