Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Why are there multiples of these processes

    Scheduled Pinned Locked Moved General pfSense Questions
    7 Posts 2 Posters 749 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      MarioG
      last edited by

      I recently converted from 2.4.4 to 2.6.0 via fresh install using previous config at install time. While looking into why memory increased to much I found multiples of some processes and ask if any reason for these to be multiple:

      php-fpm: pool nginx (php-fpm)
      This goes from 3 to 7 averaging processes, each process uses the largest amount of memory. ps aux shows 135112 +- each. This affects memory more than anything. Unfortunately, I had 2 power outages that backup power ran out and had to restart, so I don't know if the number of processes goes down or just keeps going up, will need to wait longer.

      nginx: worker process (nginx)
      Always shows 2 of these.

      /bin/sh /usr/local/sbin/sshguard -i /var/run/sshguard.pid
      Always shows 2 of these.

      After more data collection, I will be posting memory questions separately. Thank you.

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        That's using ps -aux at the command line directly?

        M 1 Reply Last reply Reply Quote 0
        • M
          MarioG @stephenw10
          last edited by

          @stephenw10 Forgot to mention that. It was the web GUI because the machine does not have a display or keyboard. I found out top does not work in the GUI command line.

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            Diag > System Activity shows the output of top -aSH

            M 1 Reply Last reply Reply Quote 0
            • M
              MarioG @stephenw10
              last edited by MarioG

              @stephenw10 Thanks for that! Yes I see a lot more info/lines, but it does not answer my question of if those duplicates are normal or not. The top command will not convert to excel cleanly like the ps aux command so I can sort how I want. I don't want to address the memory issue until I have more info. Do you know if the duplicate php-fpm: pool nginx (php-fpm) tasks are normal? I also notice in top there are 17" /usr/local/libexec/ipsec/charon --use-s" lines 58M each! and many more with multiple instances. Just trying to get a hold of some basics so I can ask about the daily memory growth.

              1 Reply Last reply Reply Quote 0
              • stephenw10S
                stephenw10 Netgate Administrator
                last edited by

                Duplicate php processes are normal, yes:

                [22.05-RELEASE][admin@4100-2.stevew.lan]/root: ps -aux | grep php-fpm
                root      455   0.0  0.7 105632 28984  -  Ss   26Jul22     0:18.82 php-fpm: master process (/usr/local/lib/php-fpm.conf) (php-fpm)
                root     9506   0.0  1.3 138676 54012  -  I    28Jul22     0:13.28 php-fpm: pool nginx (php-fpm)
                root    29594   0.0  1.3 135504 52744  -  I    28Jul22     0:11.96 php-fpm: pool nginx (php-fpm)
                root    73519   0.0  1.3 138956 54368  -  I    Fri16       0:12.08 php-fpm: pool nginx (php-fpm)
                root    91360   0.0  1.3 135476 52624  -  I    28Jul22     0:11.19 php-fpm: pool nginx (php-fpm)
                root    93061   0.0  1.3 135488 52544  -  I    28Jul22     0:13.17 php-fpm: pool nginx (php-fpm)
                root    95124   0.0  1.3 138052 53304  -  I    Fri16       0:11.09 php-fpm: pool nginx (php-fpm)
                root    98499   0.0  1.3 135452 52668  -  I    28Jul22     0:11.77 php-fpm: pool nginx (php-fpm)
                root    14184   0.0  0.1  11172  2620  0  S+   23:44       0:00.00 grep php-fpm
                
                M 1 Reply Last reply Reply Quote 0
                • M
                  MarioG @stephenw10
                  last edited by

                  @stephenw10 thank you very much! I am working on why my memory utilization went from 3-4 percent to 11-12 percent and growing. Once I collect and compare the top info for a few days I will seek more help. Thanks for the quick responses.

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.