Unable to increase 'open files' limit in 16.10












1















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









share|improve this question

























  • 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
















1















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









share|improve this question

























  • 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














1












1








1








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









share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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



















  • 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










1 Answer
1






active

oldest

votes


















0














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






share|improve this answer























    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
    });


    }
    });














    draft saved

    draft discarded


















    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









    0














    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






    share|improve this answer




























      0














      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






      share|improve this answer


























        0












        0








        0







        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






        share|improve this answer













        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







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 2 days ago









        Lars NordinLars Nordin

        28428




        28428






























            draft saved

            draft discarded




















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            數位音樂下載

            When can things happen in Etherscan, such as the picture below?

            格利澤436b