• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 162
  • Last Modified:

File not found

I often get an error java.io.FileNotFoundException: /misc/res2/resin-2.0.5/doc/jsp/dc_menu.jsp.(Too many files open )
What is the reason for this error?
0
anumouli
Asked:
anumouli
  • 2
  • 2
2 Solutions
 
JavatmCommented:
> What is the reason for this error?
The most basic thing which its telling you :

A file is not found, either a file that you are using
or the dc_menu.jsp

Hope that helps . . .
Javatm
0
 
sciuriwareCommented:
Is it possible that you opened several files and never closed them?

After something like:   PrintWriter pw = new PrintWriter( ... what ever ... );
                                          .... writing ... writing ....
you must do:                       pw.close();

The same goes for reading.

;JOOP!
0
 
objectsCommented:
The follwoing post says increasing the available memory fixes the problem:
http://www.caucho.com/support/resin-interest/0203/0212.html
0
 
sciuriwareCommented:
I read the article ... I think that everybody forgets that the number of open files
is merely an Operating System limit. You can't go on forever and raise your VM to 2Gb.
I don't know what the per-process limit is on actual systems (I tend to use a few files),
but, for instance, on Windows2000 it's easy to hit the all-system-limit ("out of resources").

;JOOP!
0
 
objectsCommented:
I pretty much agree with you but if that is so then why would increasing the available memory get rid of the error.
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now