[svlug] How to enable nofile during boot

Robert Freiberger rfreiberger at gmail.com
Wed May 3 11:41:24 PDT 2017


Heh, I found I forgot to include the so file in the /etc/pam.d/login file.
But after I did this, the results are the same. From the /proc/<pid>/limits
it's showing the default but takes the new changes when it's restarted.

At work we have a semi-custom spin of RHEL and I wonder if there's
something else over riding my settings.

Also I tried restarting the service as myself and root with same results.

On Wed, May 3, 2017 at 5:58 AM Greg Herlein <gherlein at herlein.com> wrote:

> pam_limits.so?
>
> You sure you are not comparing the system limits to a user limit?
>
>
> https://www.cyberciti.biz/faq/linux-increase-the-maximum-number-of-open-files/
>
>
>
>
>
>
> --------------------------------------------------------------------------------------------------------------
> Greg Herlein   |   415-368-7546 <(415)%20368-7546>   |   LinkedIn
> <http://www.linkedin.com/in/gherlein>
>
>
>
> On Wed, May 3, 2017 at 1:04 AM, Ivan Sergio Borgonovo <
> mail at webthatworks.it> wrote:
>
>>
>> On 05/03/2017 09:02 AM, Robert Freiberger wrote:
>> > Hello,
>> >
>> > I'm stuck on a work task and for the life of me, don't understand why my
>> > settings are not taking hold of the system.
>> >
>>
>> > $ cat /etc/security/limits.conf
>> > * soft nofile 871114
>> > * hard nofile 871114
>> >
>> > So when I restart the host, I can find these settings are showing up.
>> >
>> > $ cat /proc/sys/fs/file-max
>> > 871114
>>
>> * applies just to non root users.
>>
>> Is there any chance apache is run with different users depending on how
>> you start it?
>> Is there any chance one time you checked with ulimit and another time
>> you checked the process limit?
>>
>> --
>> Ivan Sergio Borgonovo
>> http://www.webthatworks.it http://www.borgonovo.net
>>
>>
>> _______________________________________________
>> svlug mailing list
>> svlug at lists.svlug.org
>> http://lists.svlug.org/lists/listinfo/svlug
>>
>
> _______________________________________________
> svlug mailing list
> svlug at lists.svlug.org
> http://lists.svlug.org/lists/listinfo/svlug
>
-- 
Robert Freiberger
510-936-1210
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.svlug.org/archives/svlug/attachments/20170503/b70db957/attachment-0001.htm


More information about the svlug mailing list