Solved

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

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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 …
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
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.:
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.

708 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

16 Experts available now in Live!

Get 1:1 Help Now