[mdlug] Help: Changing open file limits on Ubuntu 8.04
Jim Broughton
jbroughton at twmi.rr.com
Fri Mar 27 18:25:38 EDT 2009
Here ya go. I think this explains limits.conf quite well.
http://www.kernel.org/pub/linux/libs/pam/Linux-PAM-html/sag-pam_limits.html
Notice how the USERS must be addressed within this file. Not just a
global setting.
Cheers, Jim.
Michael wrote:
> Hey all;
> I am at my wits end on this problem on one of my Web servers that also hosts
> my NFS mounts. I am asking here out of last resort because my Google-fu has
> failed me.
>
> It appears as though I am running out of available open file descriptors.
> The current set up is only allowing 1024. My big user: www-data is also
> under the same limits. This is causing quite a bit of latency on the server,
> which might come under quite a bit of load.
>
> So far, I have made sure to place in /etc/security/limits.conf:
>
>
> * hard nofile 65536
> * soft nofile 65536
>
>
> I also updated sysctl.conf:
>
>
> fs.file-max = 65536
>
>
> After sysctl -p I can
>
> $ cat /proc/sys/fs/file-max
> 65536
>
>
> but ulimit -n still reads 1024. And trying to set it leads to errors:
>
> $ ulimit -n 65536
> -bash: ulimit: open files: cannot modify limit: Operation not permitted
>
>
> In the end I really need this increased for all users, including the
> www-data process. I am really having difficulty here.
>
> Thanks for any help,
>
> Michael
> _______________________________________________
> mdlug mailing list
> mdlug at mdlug.org
> http://mdlug.org/mailman/listinfo/mdlug
>
>
More information about the mdlug
mailing list