Solved

open file pointers

Posted on 2000-04-06
1
216 Views
Last Modified: 2010-04-20
Is there a limit to how many file pointers can be opened on a linux box by a remote connection (or even on the box itself)?  If so, is there any way to change that number?
0
Comment
Question by:visual032798
1 Comment
 
LVL 2

Accepted Solution

by:
munsie earned 100 total points
ID: 2692070
according to /usr/include/linux/limit.h, the limit is 256 per process.  This should include any file descriptors, pipes, and sockets.

but, with a quick little program that just opened up all of the files it could, I was able to open 1024 files at once.

This was done with the 2.2.14 kernel.

If you need more file descriptors, I would question your program's design, but the only way to change the limits is by changing the setting in the kernel source.  I didn't see anything obvious to change quickly scanning the kernel source, but it should be in there.

again, this is per process.  If you telnet in and start a 100 processes in the background, each process can have a 1024 files open.

good luck,
dennis
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
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.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

758 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

19 Experts available now in Live!

Get 1:1 Help Now