The moose likes I/O and Streams and the fly likes java.io.FileNotFoundException: (Too many open files) in Opmn logs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "java.io.FileNotFoundException: (Too many open files) in Opmn logs" Watch "java.io.FileNotFoundException: (Too many open files) in Opmn logs" New topic

java.io.FileNotFoundException: (Too many open files) in Opmn logs

RaghavaRao oura

Joined: Apr 26, 2007
Posts: 8
Getting above Error and Apache logs througing HTTP 500 error.
Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

What is your question?

"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
RaghavaRao oura

Joined: Apr 26, 2007
Posts: 8
Oracle Application server.

After concurency requests came into apache server. it throws HTTP 500 Error. In opmn logs islands also showing

29/10/11 21:18:31 java.io.FileNotFoundException:********/Logs/ (Too many open files)
29/10/11 21:18:31 at java.io.FileOutputStream.openAppend(Native Method)
29/10/11 21:18:31 at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
29/10/11 21:18:31 at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
29/10/11 21:18:31 at com.integrator.lib.Logger.writeLog(Logger.java:28)
29/10/11 21:18:31 at com.integrator.lib.ProcessHttpRequest.getResponse(ProcessHttpRequest.java:840)
29/10/11 21:18:31 at NECIBRedirect.service(NECIBRedirect.java:133)
29/10/11 21:18:31 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
29/10/11 21:18:31 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:835)
29/10/11 21:18:31 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:341)
29/10/11 21:18:31 at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:816)
29/10/11 21:18:31 at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:231)
29/10/11 21:18:31 at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:136)
29/10/11 21:18:31 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
29/10/11 21:18:31 at java.lang.Thread.run(Thread.java:534)

due to above Error getting HTTP 500 Internal server Error..... on the screen....
Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

You still haven't posted a question.
Rohan Dhapodkar

Joined: Jun 27, 2011
Posts: 23
Looks like you have many file descriptors open in your java program. On Unix file descriptors not only includes java.io.File object but socket inputStream and OutputStream are also treated as file. On Unix system, max open file descriptors are set for user and you can query it using 'ulimit -a'
This error message means you have many open file. You need to review your code.
I agree. Here's the link: http://aspose.com/file-tools
subject: java.io.FileNotFoundException: (Too many open files) in Opmn logs
Similar Threads
Tomcat console in UNIX
run exe in client sid
IE dump
HTTPS displaytag Excel Export not working in WebLogic 11g, IE
error running servlets using tomcat