Solved

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

Posted on 2011-09-14
3
295 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 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

More Than Just A Video Library

Train for your certification. Learn the latest DevOps tools. Grow your skillset to do better work.

At Linux Academy, we release new training modules every week so you'll always be up to date on the latest tech.

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…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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…
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.

718 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