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

How to increase the number of files that can be opened simultaneously on Linux

Hi,
I am working on an application and I hit a problem. I searched it on the web and found solution.

The solution is in here:

http://wiki.apache.org/lucene-java/LuceneFAQ#Why_am_I_getting_an_IOException_that_says_.22Too_many_open_files.22.3F

And my approach will be this:

Try to increase the number of files that can be opened simultaneously. On Linux using bash this can be done by calling ulimit -n <number>.

However, I didn't understand how to do it. Can you please explicitly explain me how I can make this work?

Thanks,
0
Tolgar
Asked:
Tolgar
  • 2
1 Solution
 
themrrobertCommented:
if u are in a GUI environment, hold [ctrl]+[alt]+[f2]

login to the command prompt as root user.

on the admin shell prompt (#) type this:  ulimit -n 300000

or whatever ur new limit will be
0
 
TolgarAuthor Commented:
How can I get the current limit?

Thanks,
0
 
TolgarAuthor Commented:
I use the following shell:

/usr/local/bin/tcsh

Open in new window


is it also valid for this one?

Thanks,
0

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

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