• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    CPU 100%

    Scheduled Pinned Locked Moved Unsolved
    Linux Problems
    3
    7
    509
    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.
    • T
      Tanguy
      last edited by

      Hello everybody,

      We have a fog server on Debian 10 (it’s a Virtual Machine) and the CPU usage is always 100%. After a top command, we see that the php is a the guilty guy.
      How can we fix this problem ?

      Thanks a lot and have a nice day

      george1421G 1 Reply Last reply Reply Quote 0
      • george1421G
        george1421 Moderator @Tanguy
        last edited by

        @Tanguy How many client computers do you have in your environment that have the fog client installed on them?

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

        T 1 Reply Last reply Reply Quote 1
        • T
          Tanguy @george1421
          last edited by

          @george1421 We’ve got approximately 600 pc but we are on holiday this week…

          george1421G 1 Reply Last reply Reply Quote 0
          • george1421G
            george1421 Moderator @Tanguy
            last edited by

            @Tanguy OK here is what I’m thinking. We had a performance issue a while ago with earlier releases of FOG, where the default sql server data engine was being used instead of a higher performance version.

            The conditions were > 300 computers with the fog client installed. When you looked at top and sorted by P cpu there would be many php-fpm services running as well as high CPU usage on mariadb. This is because the default ISAM db engine uses table style locking on an update, where INNODB uses row level locking. Switching over to INNODB resolved this issue. I don’t remember which version of FOG is when the Devs switched over to using innodb by default. I did write a tutorial on how to update your db design that you might want to use to see if you are still using the ISAM engine or the INNODB database engine. If you are using the INNODB engine, then we will need to debug this issue since its something different than what we’ve seen before.
            https://forums.fogproject.org/topic/16099/configure-fog-database-to-use-innodb-engine?_=1698321484681

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

            T 1 Reply Last reply Reply Quote 1
            • T
              Tanguy @george1421
              last edited by

              @george1421 Thank you for your reply. Il will follow your tutorial and see if it’s better.

              george1421G 1 Reply Last reply Reply Quote 0
              • george1421G
                george1421 Moderator @Tanguy
                last edited by george1421

                @Tanguy Lets first identify that the database engine is at fault here. Lets just do the first step in the tutorial.

                SELECT TABLE_NAME,ENGINE
                FROM information_schema.TABLES
                WHERE TABLE_SCHEMA = 'fog' and ENGINE = 'MyISAM';
                

                If the query responds with MyISAM then this is the problem. If it responds with INNODB, then lets discuss.

                If its the data engine, you can make this change while the system is up and running, no need to schedule downtime.

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                1 Reply Last reply Reply Quote 1
                • K
                  KaiHerlemann
                  last edited by KaiHerlemann

                  Which process exactly causes this problem?
                  I had the same problem in the past, see here: https://forums.fogproject.org/topic/15031/fogtaskscheduler-causes-always-100-cpu-usage

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post

                  173

                  Online

                  12.0k

                  Users

                  17.3k

                  Topics

                  155.2k

                  Posts
                  Copyright © 2012-2024 FOG Project