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

    Maximum Number of processes has been reached

    Scheduled Pinned Locked Moved 2.2 Snapshot Feedback and Problems - RETIRED
    5 Posts 4 Posters 2.9k 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.
    • Q
      quantumx
      last edited by

      The following error is appearing within the System, General logging area every 6-10 minutes:

      system[237]: [WARNING] The maximum number of processes has been reached. Please review your configuration and consider raising 'process.max'

      Is this a PHP or kernel level error and how would one go about addressing it?

      1 Reply Last reply Reply Quote 0
      • E
        eri--
        last edited by

        Ignore that its from php-fpm configuration.

        1 Reply Last reply Reply Quote 0
        • I
          ingmthompson
          last edited by

          @ermal:

          Ignore that its from php-fpm configuration.

          Can this error message be suppressed? It's annoying seeing my logs filled with the same error over and over.

          1 Reply Last reply Reply Quote 0
          • P
            phil.davis
            last edited by

            @ermal: Could you give some explanation of this please? For our education.
            As I understand it, fpm has a number of worker processes that service requests for processing PHP code. When all those processes are busy doing something, and another PHP request arrives, this message pops out. But, is the PHP request queued, resulting in just a processing delay, or does it get thrown away, resulting in some error code on the GUI, or some work not done in a back-end?

            If requests are queued, how big is the queue? and I guess there will be another (more critical) message if the queue gets full?

            If requests are queueing, then I understand that that is a good thing on low-memory systems like Alix 2D13 256MB, rather than creating many fpm-php processes and running out of memory!

            As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
            If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

            1 Reply Last reply Reply Quote 0
            • E
              eri--
              last edited by

              Well you have to understand how php-fpm works.

              It spawns processes and has provisioning for worst case.

              Since php in pfSense 'abuses' exit instead of returning from scripts the php-fpm helpers are closed after a request.
              Hence you end most of the time in respwaning a child php process when working from GUI.

              It will be solved moving forward but step-by-step.

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