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

FOGTaskScheduler daemon uses 100% of CPU

Scheduled Pinned Locked Moved Solved
General Problems
4
14
3.2k
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.
  • F
    Fernando Gietz Developer
    last edited by Jun 19, 2017, 4:53 PM

    FOG version: 1.4.2
    OS: RedHat 7.3

    I am using RedHat 7.3 in my FOG server and I see that the FOGTaskScheduler daemon uses the 100% of the CPU. Is this behaviour normal?
    The server has 6 cores and ono of them is full.

    J 1 Reply Last reply Jun 19, 2017, 6:41 PM Reply Quote 0
    • J
      Junkhacker Developer @Fernando Gietz
      last edited by Jun 19, 2017, 6:41 PM

      @Fernando-Gietz that is absolutely not normal. i have no idea why it would be doing that.

      signature:
      Junkhacker
      We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

      1 Reply Last reply Reply Quote 0
      • T
        Tom Elliott
        last edited by Jun 19, 2017, 9:20 PM

        Can you check with:

        systemctl -l status FOGScheduler
        

        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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 0
        • F
          Fernando Gietz Developer
          last edited by Fernando Gietz Jun 20, 2017, 5:40 AM Jun 20, 2017, 11:38 AM

          # systemctl -l status FOGScheduler
          ● FOGScheduler.service - FOGScheduler
             Loaded: loaded (/usr/lib/systemd/system/FOGScheduler.service; enabled; vendor preset: disabled)
             Active: active (running) since lun 2017-06-19 18:44:45 CEST; 18h ago
           Main PID: 1136 (FOGTaskSchedule)
             CGroup: /system.slice/FOGScheduler.service
                     ├─1136 /usr/bin/php -q /opt/fog/service/FOGTaskScheduler/FOGTaskScheduler &
                     └─1140 /usr/bin/php -q /opt/fog/service/FOGTaskScheduler/FOGTaskScheduler &
          
          jun 19 18:44:45 fog7.lgp.ehu.es systemd[1]: Started FOGScheduler.
          jun 19 18:44:45 fog7.lgp.ehu.es systemd[1]: Starting FOGScheduler...
          

          Doing a ps

          # ps aux | grep FOGTas
          root      1136  0.0  0.1 330196 17388 ?        Ss   jun19   0:00 /usr/bin/php -q /opt/fog/service/FOGTaskScheduler/FOGTaskScheduler &
          root      1140 99.9  0.1 418668 15072 ?        R    jun19 1134:24 /usr/bin/php -q /opt/fog/service/FOGTaskScheduler/FOGTaskScheduler &
          T 1 Reply Last reply Jun 20, 2017, 12:27 PM Reply Quote 0
          • T
            Tom Elliott @Fernando Gietz
            last edited by Jun 20, 2017, 12:27 PM

            @Fernando-Gietz what’s your load average on the machine?

            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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

            1 Reply Last reply Reply Quote 0
            • F
              Fernando Gietz Developer
              last edited by Jun 20, 2017, 1:07 PM

              0_1497964017696_Captura de pantalla de 2017-06-20 15-06-20.png

              W 1 Reply Last reply Jun 21, 2017, 2:22 AM Reply Quote 0
              • W
                Wayne Workman @Fernando Gietz
                last edited by Wayne Workman Jun 20, 2017, 8:25 PM Jun 21, 2017, 2:22 AM

                @Fernando-Gietz Just a side question, what utility outputs all those columns like that?

                For the load issue - I’d say check the sleep time? FOG Configuration -> FOG Settings -> FOG Linux service sleep times You could also view active queries in mysql by issuing show processlist; that has lead me to root causes with fog several times.

                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!
                Daily Clean Installation Results:
                https://fogtesting.fogproject.us/
                FOG Reporting:
                https://fog-external-reporting-results.fogproject.us/

                1 Reply Last reply Reply Quote 0
                • F
                  Fernando Gietz Developer
                  last edited by Jun 21, 2017, 1:27 PM

                  Hi Wayne,

                  0_1498051641283_Captura de pantalla de 2017-06-21 15-24-44.png

                  0_1498051651900_Captura de pantalla de 2017-06-21 15-26-46.png

                  1 Reply Last reply Reply Quote 0
                  • T
                    Tom Elliott
                    last edited by Jun 21, 2017, 4:09 PM

                    What’s the load average.

                    The Top you command you used is not showing me the actual load averages.

                    Maybe uptime would be better?

                    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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                    Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                    Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                    1 Reply Last reply Reply Quote 0
                    • F
                      Fernando Gietz Developer
                      last edited by Jun 22, 2017, 3:21 PM

                      I have started the FOGScheduler daemon and the load is:

                      [root@fog7 fogproject]# systemctl start FOGScheduler
                      [root@fog7 fogproject]# uptime
                       16:54:22 up 6 days,  2:30,  1 user,  load average: 1,19, 0,78, 0,90
                       16:54:28 up 6 days,  2:30,  1 user,  load average: 1,18, 0,78, 0,90
                       16:54:35 up 6 days,  2:30,  1 user,  load average: 1,53, 0,87, 0,93
                       16:54:42 up 6 days,  2:30,  1 user,  load average: 1,57, 0,89, 0,94
                       16:55:39 up 6 days,  2:31,  1 user,  load average: 2,02, 1,13, 1,01
                       17:11:10 up 6 days,  2:46,  1 user,  load average: 1,80, 1,63, 1,30
                      

                      I stop the daemon and …

                      [root@fog7 fogproject]# systemctl stop FOGScheduler
                      [root@fog7 fogproject]# uptime
                       17:14:05 up 6 days,  2:49,  1 user,  load average: 1,66, 1,65, 1,36
                      [root@fog7 fogproject]# uptime
                       17:18:42 up 6 days,  2:54,  1 user,  load average: 0,86, 1,31, 1,31
                      [root@fog7 fogproject]# uptime
                       17:20:26 up 6 days,  2:56,  1 user,  load average: 0,86, 1,16, 1,25
                      
                      1 Reply Last reply Reply Quote 0
                      • F
                        Fernando Gietz Developer
                        last edited by Jun 23, 2017, 12:00 PM

                        Solved!! The problem was some tasks that had misconfigured the cron hour 😠

                        T 1 Reply Last reply Jun 23, 2017, 12:15 PM Reply Quote 0
                        • T
                          Tom Elliott @Fernando Gietz
                          last edited by Jun 23, 2017, 12:15 PM

                          @Fernando-Gietz How do you mean?

                          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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                          W 1 Reply Last reply Jun 23, 2017, 1:28 PM Reply Quote 0
                          • W
                            Wayne Workman @Tom Elliott
                            last edited by Jun 23, 2017, 1:28 PM

                            @Tom-Elliott like a cron task with all * I guess.

                            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!
                            Daily Clean Installation Results:
                            https://fogtesting.fogproject.us/
                            FOG Reporting:
                            https://fog-external-reporting-results.fogproject.us/

                            1 Reply Last reply Reply Quote 0
                            • F
                              Fernando Gietz Developer
                              last edited by Jun 23, 2017, 3:43 PM

                              Yes. In the hour field 0, 23/2

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

                              207

                              Online

                              12.0k

                              Users

                              17.3k

                              Topics

                              155.2k

                              Posts
                              Copyright © 2012-2024 FOG Project