Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-17621

zabbix server listen backlog SOMAXCONN has fixed to 128, changing net.core.somaxconn and restarting zabbix-server doesn't work

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Duplicate
    • Icon: Trivial Trivial
    • None
    • None
    • Server (S)
    • zabbix-server-mysql 4.4 running on rhel7.4

      Steps to reproduce:

      1. set net.core.somaxconn to bigger than 128, using sysctl -w net.core.somaxconn=12800;
      2. start zabbix-server service;
      3. using "ss -tnlp | grep zabbix" to check the zabbix server listen state , and find that the send-q is still 128, but it should be 12800;

      Result:

      LISTEN     0      128          *:10051                    *:*                   users:(("zabbix_server",pid=1581,fd=4),("zabbix_server",pid=1580,fd=4),("zabbix_server",pid=1579,fd=4),("zabbix_server",pid=1578,fd=4),("zabbix_server",pid=1577,fd=4),("zabbix_server",pid=1576,fd=4),("zabbix_server",pid=1575,fd=4),("zabbix_server",pid=1574,fd=4),("zabbix_server",pid=1573,fd=4),("zabbix_server",pid=1572,fd=4),("zabbix_server",pid=1571,fd=4),("zabbix_server",pid=1570,fd=4),("zabbix_server",pid=1569,fd=4),("zabbix_server",pid=1568,fd=4),("zabbix_server",pid=1567,fd=4),("zabbix_server",pid=1566,fd=4),("zabbix_server",pid=1565,fd=4),("zabbix_server",pid=1564,fd=4),("zabbix_server",pid=1563,fd=4),("zabbix_server",pid=1562,fd=4),("zabbix_server",pid=1561,fd=4),("zabbix_server",pid=1560,fd=4),("zabbix_server",pid=1559,fd=4),("zabbix_server",pid=1558,fd=4),("zabbix_server",pid=1557,fd=4),("zabbix_server",pid=1556,fd=4),("zabbix_server",pid=1555,fd=4),("zabbix_server",pid=1554,fd=4),("zabbix_server",pid=1553,fd=4),("zabbix_server",pid=1552,fd=4),("zabbix_server",pid=1551,fd=4),("zabbix_server",pid=1550,fd=4),("zabbix_server",pid=1549,fd=4),("zabbix_server",pid=1548,fd=4),("zabbix_server",pid=1547,fd=4),("zabbix_server",pid=1546,fd=4),("zabbix_server",pid=1543,fd=4),("zabbix_server",pid=1538,fd=4))
      

      Expected:
      the listen socket backlog should be equal to SOMAXCONN, set in sysctl 12800.

      i have saw the source code about listen() at line 1147 and 1308 in src/libs/zbxcomms/comms.c, the backlog value in listen() is set to "SOMAXCONN", but i can NOT found the reference of "SOMAXCONN", which is 128 in /usr/include/bits/socket.h. if you include this socket.h when compiling, it will fix to 128 and never bigger than 128.

      So is there any way to change it, or add a parameter "ListenBacklog" to zabbix_server.conf?

            zabbix.dev Zabbix Development Team
            zxkydq stan zhang
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: