“Too many files” error, but no process exceeds maximum file limit Announcing the arrival...
Amount of permutations on an NxNxN Rubik's Cube
What is the appropriate index architecture when forced to implement IsDeleted (soft deletes)?
If Windows 7 doesn't support WSL, then what does Linux subsystem option mean?
Why does it sometimes sound good to play a grace note as a lead in to a note in a melody?
How come Sam didn't become Lord of Horn Hill?
What is the difference between globalisation and imperialism?
How does the secondary effect of the Heat Metal spell interact with a creature resistant/immune to fire damage?
How do living politicians protect their readily obtainable signatures from misuse?
When a candle burns, why does the top of wick glow if bottom of flame is hottest?
Why should I vote and accept answers?
Time to Settle Down!
How does the math work when buying airline miles?
What is "gratricide"?
Can anything be seen from the center of the Boötes void? How dark would it be?
Why is it faster to reheat something than it is to cook it?
How to react to hostile behavior from a senior developer?
What would you call this weird metallic apparatus that allows you to lift people?
How do I use the new nonlinear finite element in Mathematica 12 for this equation?
Dating a Former Employee
Can the Great Weapon Master feat's damage bonus and accuracy penalty apply to attacks from the Spiritual Weapon spell?
Find 108 by using 3,4,6
Hangman Game with C++
Why do early math courses focus on the cross sections of a cone and not on other 3D objects?
Maximum summed subsequences with non-adjacent items
“Too many files” error, but no process exceeds maximum file limit
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)
2019 Community Moderator Election Results
Why I closed the “Why is Kali so hard” questionWhat is the referent of a file descriptor?What are the dangers of setting a high limit to max File Descriptors per process?files in /proc/$PID (e.g. ssh-agent, Chrome) are not owned by user but by rootHow to circumvent “Too many open files” in debianProcess exceeding max open files limitCreating threads fails with “Resource temporarily unavailable” with 4.3 kernelDoes /proc/[PID]/stat display cumulative CPU stats about child processesProblem with system wide file handle countWhat is the maximum open files limit?What is this `gmain` process with these unknown PIDs in my trace file?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I am trying to open a file in a C process of mine, but it fails, and I see a "Too many files" error. So I checked all of my processes for how many files they were using, and none of the processes in /proc had more than 11 files open in /proc/(process name)/fd. Most had 0. In total, only 100 files were opened by processes listed within /proc.
Yet, my max is 1024. So, how did I hit the maximum? Are there processes/drivers/tasks in the system not listed under /proc that can own open files? Or is the error message misleading?
I know that I can increase the limit, but I am skeptical that all of these files are supposed to be open, and I'd rather know what is opening all of them and fix it.
EDIT: Turns out the error message was incorrect. I was accidentally casting a file descriptor into a FILE object in C, so naturally it gave me an error message that had nothing to do with that.
Since the problem turned out to be C side, and not Linux side, this question might not belong here. (I'm new here, should I delete the question?)
c proc file-descriptors limit inotify
New contributor
add a comment |
I am trying to open a file in a C process of mine, but it fails, and I see a "Too many files" error. So I checked all of my processes for how many files they were using, and none of the processes in /proc had more than 11 files open in /proc/(process name)/fd. Most had 0. In total, only 100 files were opened by processes listed within /proc.
Yet, my max is 1024. So, how did I hit the maximum? Are there processes/drivers/tasks in the system not listed under /proc that can own open files? Or is the error message misleading?
I know that I can increase the limit, but I am skeptical that all of these files are supposed to be open, and I'd rather know what is opening all of them and fix it.
EDIT: Turns out the error message was incorrect. I was accidentally casting a file descriptor into a FILE object in C, so naturally it gave me an error message that had nothing to do with that.
Since the problem turned out to be C side, and not Linux side, this question might not belong here. (I'm new here, should I delete the question?)
c proc file-descriptors limit inotify
New contributor
Your claim that most processes have 0 files under /proc/PID/fd is highly dubious -- almost all processes should have at least 3 (0, 1, 2; stdin, stdout, stderr). You should run the commands listing stuff under/proc/
as root, if you want an uncensored picture. Please edit in your Q the exact error messages ("Too many files" is not) and commands you used.
– mosvy
4 hours ago
I edited my question, after finding the problem. Should I delete the question?
– Eliezer Miron
4 hours ago
add a comment |
I am trying to open a file in a C process of mine, but it fails, and I see a "Too many files" error. So I checked all of my processes for how many files they were using, and none of the processes in /proc had more than 11 files open in /proc/(process name)/fd. Most had 0. In total, only 100 files were opened by processes listed within /proc.
Yet, my max is 1024. So, how did I hit the maximum? Are there processes/drivers/tasks in the system not listed under /proc that can own open files? Or is the error message misleading?
I know that I can increase the limit, but I am skeptical that all of these files are supposed to be open, and I'd rather know what is opening all of them and fix it.
EDIT: Turns out the error message was incorrect. I was accidentally casting a file descriptor into a FILE object in C, so naturally it gave me an error message that had nothing to do with that.
Since the problem turned out to be C side, and not Linux side, this question might not belong here. (I'm new here, should I delete the question?)
c proc file-descriptors limit inotify
New contributor
I am trying to open a file in a C process of mine, but it fails, and I see a "Too many files" error. So I checked all of my processes for how many files they were using, and none of the processes in /proc had more than 11 files open in /proc/(process name)/fd. Most had 0. In total, only 100 files were opened by processes listed within /proc.
Yet, my max is 1024. So, how did I hit the maximum? Are there processes/drivers/tasks in the system not listed under /proc that can own open files? Or is the error message misleading?
I know that I can increase the limit, but I am skeptical that all of these files are supposed to be open, and I'd rather know what is opening all of them and fix it.
EDIT: Turns out the error message was incorrect. I was accidentally casting a file descriptor into a FILE object in C, so naturally it gave me an error message that had nothing to do with that.
Since the problem turned out to be C side, and not Linux side, this question might not belong here. (I'm new here, should I delete the question?)
c proc file-descriptors limit inotify
c proc file-descriptors limit inotify
New contributor
New contributor
edited 4 hours ago
Eliezer Miron
New contributor
asked 6 hours ago
Eliezer MironEliezer Miron
11
11
New contributor
New contributor
Your claim that most processes have 0 files under /proc/PID/fd is highly dubious -- almost all processes should have at least 3 (0, 1, 2; stdin, stdout, stderr). You should run the commands listing stuff under/proc/
as root, if you want an uncensored picture. Please edit in your Q the exact error messages ("Too many files" is not) and commands you used.
– mosvy
4 hours ago
I edited my question, after finding the problem. Should I delete the question?
– Eliezer Miron
4 hours ago
add a comment |
Your claim that most processes have 0 files under /proc/PID/fd is highly dubious -- almost all processes should have at least 3 (0, 1, 2; stdin, stdout, stderr). You should run the commands listing stuff under/proc/
as root, if you want an uncensored picture. Please edit in your Q the exact error messages ("Too many files" is not) and commands you used.
– mosvy
4 hours ago
I edited my question, after finding the problem. Should I delete the question?
– Eliezer Miron
4 hours ago
Your claim that most processes have 0 files under /proc/PID/fd is highly dubious -- almost all processes should have at least 3 (0, 1, 2; stdin, stdout, stderr). You should run the commands listing stuff under
/proc/
as root, if you want an uncensored picture. Please edit in your Q the exact error messages ("Too many files" is not) and commands you used.– mosvy
4 hours ago
Your claim that most processes have 0 files under /proc/PID/fd is highly dubious -- almost all processes should have at least 3 (0, 1, 2; stdin, stdout, stderr). You should run the commands listing stuff under
/proc/
as root, if you want an uncensored picture. Please edit in your Q the exact error messages ("Too many files" is not) and commands you used.– mosvy
4 hours ago
I edited my question, after finding the problem. Should I delete the question?
– Eliezer Miron
4 hours ago
I edited my question, after finding the problem. Should I delete the question?
– Eliezer Miron
4 hours ago
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Eliezer Miron is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f513306%2ftoo-many-files-error-but-no-process-exceeds-maximum-file-limit%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Eliezer Miron is a new contributor. Be nice, and check out our Code of Conduct.
Eliezer Miron is a new contributor. Be nice, and check out our Code of Conduct.
Eliezer Miron is a new contributor. Be nice, and check out our Code of Conduct.
Eliezer Miron is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f513306%2ftoo-many-files-error-but-no-process-exceeds-maximum-file-limit%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Your claim that most processes have 0 files under /proc/PID/fd is highly dubious -- almost all processes should have at least 3 (0, 1, 2; stdin, stdout, stderr). You should run the commands listing stuff under
/proc/
as root, if you want an uncensored picture. Please edit in your Q the exact error messages ("Too many files" is not) and commands you used.– mosvy
4 hours ago
I edited my question, after finding the problem. Should I delete the question?
– Eliezer Miron
4 hours ago