Ad Widget

Collapse

PHP-FPM alto consumo de CPU - Alma Linux Zabbix Server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rui.ornellas
    Junior Member
    • Nov 2018
    • 5

    #1

    PHP-FPM alto consumo de CPU - Alma Linux Zabbix Server

    Senhores boa noite!

    Preciso de ajuda, implementei o Zabbix 6.0 e neste zabbix possuimos 5 proxys zabbix.

    Notei que existe um processo chamado PHP-FPM no servidor Zabbix que esta consumindo 100% de cpu.

    Procurei na internet para verificar se consigo limitar o uso de cpu mas não consigo.

    Gostaria de saber o que é recomendado no zabbix 6.0 pois eu tinha essa mesma quantidade de proxys e clientes no Zabbix 5.0 e não tinha problemas com esse processo do php-fpm.
  • rui.ornellas
    Junior Member
    • Nov 2018
    • 5

    #2
    Good night gentlemen!

    I need help, I implemented Zabbix 6.0 and in this zabbix we have 5 zabbix proxies.

    I noticed that there is a process called PHP-FPM on the Zabbix server that is consuming 100% of cpu.

    I looked on the internet to see if I can limit cpu usage but I can't.

    I would like to know what is recommended in zabbix 6.0 because I had the same amount of proxies and clients in Zabbix 5.0 and I had no problems with this php-fpm process.

    Grato/Regards,
    Rui Ornellas Jr

    Comment

    • vladimir_lv
      Senior Member
      • May 2022
      • 240

      #3
      Hi!
      Have you seen some errors in zabbix_server.log?

      Comment

      • rui.ornellas
        Junior Member
        • Nov 2018
        • 5

        #4
        Hi Vladmir,

        I dont find the zabbix_server.log because this log is rotated, but i see on FPM-PHP errors this message:

        [02-Aug-2022 18:45:52] NOTICE: [pool zabbix] child 3701 exited with code 0 after 223.640227 seconds from start
        [02-Aug-2022 18:45:52] NOTICE: [pool zabbix] child 4121 started
        [02-Aug-2022 18:46:12] NOTICE: [pool zabbix] child 3774 exited with code 0 after 218.995590 seconds from start
        [02-Aug-2022 18:46:12] NOTICE: [pool zabbix] child 4141 started
        [02-Aug-2022 18:46:12] NOTICE: Terminating ...
        [02-Aug-2022 18:46:12] NOTICE: exiting, bye-bye!
        [02-Aug-2022 18:47:24] NOTICE: fpm is running, pid 4288
        [02-Aug-2022 18:47:24] NOTICE: ready to handle connections
        [02-Aug-2022 18:47:24] NOTICE: systemd monitor interval set to 10000ms
        [02-Aug-2022 18:48:59] NOTICE: Terminating ...
        [02-Aug-2022 18:48:59] NOTICE: exiting, bye-bye!
        [02-Aug-2022 18:53:00] NOTICE: fpm is running, pid 5747
        [02-Aug-2022 18:53:00] NOTICE: ready to handle connections
        [02-Aug-2022 18:53:00] NOTICE: systemd monitor interval set to 10000ms
        [02-Aug-2022 18:55:05] NOTICE: Terminating ...
        [02-Aug-2022 18:55:05] NOTICE: exiting, bye-bye!
        [02-Aug-2022 19:02:24] NOTICE: fpm is running, pid 974
        [02-Aug-2022 19:02:24] NOTICE: ready to handle connections
        [02-Aug-2022 19:02:24] NOTICE: systemd monitor interval set to 10000ms
        [02-Aug-2022 19:02:28] WARNING: [pool zabbix] server reached pm.max_children setting (5), consider raising it

        I found the configuration file php-fpm, and i increased the parameter on /etc/php-fpm.d/zabbix.conf pm.max_children = 5 to 50 and I didn't see a drop in cpu consumption, i need know what is the parameter i need change to limit de cpu usage.

        Regards,
        Rui Ornellas Jr

        Comment

        • vladimir_lv
          Senior Member
          • May 2022
          • 240

          #5
          Try to set the following:
          Code:
          pm.max_requests = 100

          Comment

          • rui.ornellas
            Junior Member
            • Nov 2018
            • 5

            #6
            Hi Vladmir,

            I change the parameter you sugested but the behavior is same, the cpu is 80% to 100% the load.

            I dont have knowedge about php ... what is this the php-fpm ?

            Best Regards and thanks for your help.

            Rui Ornellas Jr

            Comment

            • filipesena
              Junior Member
              • Jun 2024
              • 1

              #7
              Olá amigos!

              Estou com o mesmo problema, já alterei os parâmetros porém continua com consumo alto de CPU.

              Comment

              Working...