Too many open files when running xadmin

Added by Subramanya 1 day ago

I am trying to run the xadmin start command and end up receiving the error in the log as below

N:NDRX:2:67aded1f:17863:77b2b22824c0:000:20251113:130508299195:_open_rply_q:config.c:0122:Failed to open queue: [/master,sys,bg,xadmin,17863] - ERROR ! Queue error, check logs err: Too many open files

This seems like something to do with the message queues however I have right configuration in place as mentioned n the https://www.endurox.org/dokuwiki/doku.php?id=endurox:v8.0.x:guides:ex_adminman#_linux_setup file. Can someone guide on whats the issue here?


Replies (1)

RE: Too many open files when running xadmin - Added by Lauris 1 day ago

Hi,

So for Linux you need this

$ sudo -s
# cat << EOF >> /etc/security/limits.conf

# Do not limit message Q Count.
# Some Linux 3.x series kernels have a bug, that limits 1024
# queues for one system user.
# In 2.6.x and 4.x this is fixed, to have
# unlimited count of queues (memory limit).
# ealrier and later Linuxes have fixed this issue.
*               soft    msgqueue        -1
*               hard    msgqueue        -1

# Increase the number of open files
*               soft    nofile  1024
*               hard    nofile  65536

EOF
# exit
$

+

$ sudo -s

# cat << EOF >> /etc/sysctl.conf

# Max Messages in Queue
fs.mqueue.msg_max=10000

# Max message size, to pass unit tests, use 1M+1K
fs.mqueue.msgsize_max=1049600

# Max number of queues system-wide
fs.mqueue.queues_max=10000

EOF

# Apply kernel parameters now
$ sudo sysctl -f /etc/sysctl.conf

# to check the values, use (print all) and use grep to find:
$ sudo sysctl -a | grep msgsize_max

After that reboot your linux server (or try to logout login) to apply new security settings.

Let me know is this helps.

Thanks

(1-1/1)