?
Solved

open file pointers

Posted on 2000-04-06
1
Medium Priority
?
220 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
[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
1 Comment
 
LVL 2

Accepted Solution

by:
munsie earned 400 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month14 days, 6 hours left to enroll

771 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