File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes too many files open Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "too many files open" Watch "too many files open" New topic

too many files open

Nims H.

Joined: Jun 07, 2005
Posts: 9
Dear Friends,

I have following configuration...
Resin-3 on centos-4.

I am using virtual hosting on my server. Now problwm is that some time my server do not redirect to my actuall location as per host name but goes directly to root folder of resin. when i see the lof it shows me that the exception thrown file not found exception. and reason was written that TOO MANY FILES OPEN.

Please help me out.....

Thanx in advance...

[ June 06, 2006: Message edited by: Nims H. ]
[ June 07, 2006: Message edited by: Bear Bibeault ]
Martin Simons
Ranch Hand

Joined: Mar 02, 2006
Posts: 196
Somewhere in your code you are opening files without closing them. Do not
forget to close your files. Either that, or you have so many concurrent
users during the instant in time that a specific code block is running,
that you have exceeded the systems open file limit. If this is the case,
you need to extend the systems open file limit. On Solaris you can do this
using the ulimit command, or even better, in the /etc/system file. On
other systems I am not sure how. I am, however, almost certain, that your
problem lies in the first sentence of this reply.
pawank gupta
Ranch Hand

Joined: Jun 07, 2006
Posts: 34
plz describe ur problem in detail
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Nims H,

Two things.......

We're pleased to have you here with us in the JSP forum, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

You can change it here

In an effort to help you get the most from our forums, we've compiled a
list of tips for asking questions here. You can find the list in our
FAQ section here. In particular, please see UseAMeaningfulSubjectLine

Many people will make a point of skipping by questions with the word 'URGENT' in the subject line. Also, typing in all caps is the equivalent to yelling in a web forum and is considered to be rude. You will stand a better chance of getting your question answered if you fix your subject line.

Again, welcome to JavaRanch and good luck with your question.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

I have amended the subject line.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: too many files open
It's not a secret anymore!