[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

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

Posted on 2011-09-14
3
Medium Priority
?
298 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 13

Accepted Solution

by:
themrrobert earned 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

656 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