Unable to increase 'open files' limit in 16.10
I'm trying to increase the 'open files' to both a regular user and to root user. Been applying different procedures from different sources without success. I'm using Ubuntu 16.10 with Linux 4.8.0-41-generic, and these are the changes I've made so far:
$ grep nofile /etc/security/limits.conf
# - nofile - max number of open files
root - nofile 80000
* - nofile 80000
$ grep pam_limits /etc/pam.d/*
/etc/pam.d/common-session:session required pam_limits.so
/etc/pam.d/common-session-noninteractive:session required pam_limits.so
...
/etc/pam.d/login:session required pam_limits.so
...
$ grep file-max /etc/sysctl.conf
fs.file-max=80000
$ cat /proc/sys/fs/file-max
80000
I've then rebooted. After reboot when I check with 'ulimit':
$ ulimit -Sn
1024
$ ulimit -Hn
4096
security process ulimit
add a comment |
I'm trying to increase the 'open files' to both a regular user and to root user. Been applying different procedures from different sources without success. I'm using Ubuntu 16.10 with Linux 4.8.0-41-generic, and these are the changes I've made so far:
$ grep nofile /etc/security/limits.conf
# - nofile - max number of open files
root - nofile 80000
* - nofile 80000
$ grep pam_limits /etc/pam.d/*
/etc/pam.d/common-session:session required pam_limits.so
/etc/pam.d/common-session-noninteractive:session required pam_limits.so
...
/etc/pam.d/login:session required pam_limits.so
...
$ grep file-max /etc/sysctl.conf
fs.file-max=80000
$ cat /proc/sys/fs/file-max
80000
I've then rebooted. After reboot when I check with 'ulimit':
$ ulimit -Sn
1024
$ ulimit -Hn
4096
security process ulimit
If you log into your machine through ssh, the limit would be bigger. But it does not work for regular login. Same thing for me.
– Marko Kevac
May 4 '17 at 12:33
add a comment |
I'm trying to increase the 'open files' to both a regular user and to root user. Been applying different procedures from different sources without success. I'm using Ubuntu 16.10 with Linux 4.8.0-41-generic, and these are the changes I've made so far:
$ grep nofile /etc/security/limits.conf
# - nofile - max number of open files
root - nofile 80000
* - nofile 80000
$ grep pam_limits /etc/pam.d/*
/etc/pam.d/common-session:session required pam_limits.so
/etc/pam.d/common-session-noninteractive:session required pam_limits.so
...
/etc/pam.d/login:session required pam_limits.so
...
$ grep file-max /etc/sysctl.conf
fs.file-max=80000
$ cat /proc/sys/fs/file-max
80000
I've then rebooted. After reboot when I check with 'ulimit':
$ ulimit -Sn
1024
$ ulimit -Hn
4096
security process ulimit
I'm trying to increase the 'open files' to both a regular user and to root user. Been applying different procedures from different sources without success. I'm using Ubuntu 16.10 with Linux 4.8.0-41-generic, and these are the changes I've made so far:
$ grep nofile /etc/security/limits.conf
# - nofile - max number of open files
root - nofile 80000
* - nofile 80000
$ grep pam_limits /etc/pam.d/*
/etc/pam.d/common-session:session required pam_limits.so
/etc/pam.d/common-session-noninteractive:session required pam_limits.so
...
/etc/pam.d/login:session required pam_limits.so
...
$ grep file-max /etc/sysctl.conf
fs.file-max=80000
$ cat /proc/sys/fs/file-max
80000
I've then rebooted. After reboot when I check with 'ulimit':
$ ulimit -Sn
1024
$ ulimit -Hn
4096
security process ulimit
security process ulimit
edited Mar 8 '17 at 15:26
wjandrea
8,63442260
8,63442260
asked Mar 8 '17 at 15:17
alexalex
163
163
If you log into your machine through ssh, the limit would be bigger. But it does not work for regular login. Same thing for me.
– Marko Kevac
May 4 '17 at 12:33
add a comment |
If you log into your machine through ssh, the limit would be bigger. But it does not work for regular login. Same thing for me.
– Marko Kevac
May 4 '17 at 12:33
If you log into your machine through ssh, the limit would be bigger. But it does not work for regular login. Same thing for me.
– Marko Kevac
May 4 '17 at 12:33
If you log into your machine through ssh, the limit would be bigger. But it does not work for regular login. Same thing for me.
– Marko Kevac
May 4 '17 at 12:33
add a comment |
1 Answer
1
active
oldest
votes
Does Ubuntu v16.10 use systemd?
Then you may be running into the problem where graphical logins are started by systemd which doesn't use /etc/security/limits*.
See this answer instead:
https://superuser.com/a/1322187/116705
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
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: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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
});
}
});
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%2faskubuntu.com%2fquestions%2f890934%2funable-to-increase-open-files-limit-in-16-10%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Does Ubuntu v16.10 use systemd?
Then you may be running into the problem where graphical logins are started by systemd which doesn't use /etc/security/limits*.
See this answer instead:
https://superuser.com/a/1322187/116705
add a comment |
Does Ubuntu v16.10 use systemd?
Then you may be running into the problem where graphical logins are started by systemd which doesn't use /etc/security/limits*.
See this answer instead:
https://superuser.com/a/1322187/116705
add a comment |
Does Ubuntu v16.10 use systemd?
Then you may be running into the problem where graphical logins are started by systemd which doesn't use /etc/security/limits*.
See this answer instead:
https://superuser.com/a/1322187/116705
Does Ubuntu v16.10 use systemd?
Then you may be running into the problem where graphical logins are started by systemd which doesn't use /etc/security/limits*.
See this answer instead:
https://superuser.com/a/1322187/116705
answered 2 days ago
Lars NordinLars Nordin
28428
28428
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- 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%2faskubuntu.com%2fquestions%2f890934%2funable-to-increase-open-files-limit-in-16-10%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
If you log into your machine through ssh, the limit would be bigger. But it does not work for regular login. Same thing for me.
– Marko Kevac
May 4 '17 at 12:33