Solved

open file pointers

Posted on 2000-04-06
1
217 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
iptables limit connection per ip correct way ? 2 84
parse convert xml feed to text (python) 2 66
linux boot fsck problem 3 61
a free alternative to cpanel? 1 58
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…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
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.

932 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