Solved

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

Posted on 2011-09-14
3
292 Views
Last Modified: 2012-05-12
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
Comment
Question by:Tolgar
  • 2
3 Comments
 
LVL 13

Accepted Solution

by:
themrrobert earned 500 total points
ID: 36538169
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
 

Author Comment

by:Tolgar
ID: 36538179
How can I get the current limit?

Thanks,
0
 

Author Comment

by:Tolgar
ID: 36538198
I use the following shell:

/usr/local/bin/tcsh

Open in new window


is it also valid for this one?

Thanks,
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now