i hope you can help me out I'm a bit confused after reading about linux's open file descriptor limits at
http://mysql.he.net/doc/L/i/Linux.html
so mysql's max concurrent connections is limited up to the OS imposed limits as well as Apache limits ?
2.2.x kernel had default open file descriptor limits at 1024
from the above
http://mysql.he.net/doc/L/i/Linux.html it says 2.4.x kernel did away with that limit
but on RH 7.3 with 2.4.18-5 kernel typing in shell as root user
ulimit -a
ulimit -aS
ulimit -aH
shows that open files = 1024 still
ulimit -a
Code:
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 7168
virtual memory (kbytes, -v) unlimited
ulimit -aS
Code:
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 7168
virtual memory (kbytes, -v) unlimited
ulimit -aH
Code:
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
stack size (kbytes, -s) unlimited
cpu time (seconds, -t) unlimited
max user processes (-u) 7168
virtual memory (kbytes, -v) unlimited
a friend said that although 2.4.x kernel removed that limitation, apache can still impose it's own open files limit and for me to get around that in Apache 1.3.26 to
edit apache's start up script apachectl and change the line
ulimit -n 1024
to
ulimit -n 2048
however i have 2 apacectl files
/usr/local/apache/bin/apachectl
/usr/sbin/apachectl
but the line ulimit -n 1024 was only found in
/etc/rc.d/init.d/httpd
which is what i normally use to stop and start apache
Now i've restarted apache, logged out and logged back in and the open files via ulimit -a commands still shows 1024 open files ?
what am i doing wrong or missing ?
thanks