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

CPU Usage 100%

Scheduled Pinned Locked Moved Unsolved
FOG Problems
4
37
10.5k
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.
  • A
    anthony.delarosa
    last edited by Aug 23, 2017, 5:16 PM

    Server
    • FOG Version: 1.4.3
    • OS: CentOS 6.7
    Client
    • Service Version:
    • OS:
    Description

    For some reason CPU Usage is pretty much always at 100% in vSphere and when I check the top command I see all these httpd processes. Is this because of all the clients that have the FOG client installed?

    It’s currently using a lot of CPU and it really shouldn’t as we use it daily but not that much to justify the amount of CPU.

    Here is a snapshot of the top command:

    0_1503508464796_ea753178-3e90-4faa-a866-b610772f929d-image.png

    And here is a snapshot of vSphere:

    0_1503508546817_ff08925f-57b6-4f57-9149-b834df65bdfa-image.png

    0_1503508572306_b9cb365b-9abd-40b8-8e15-4cb936295c23-image.png

    Any idea what is going on?

    Thanks

    1 Reply Last reply Reply Quote 0
    • T
      THEMCV
      last edited by Aug 23, 2017, 5:22 PM

      Can you try updating to the latest stable (or dev-branch) and see if it helps at all?

      Also, do you have your FOG server setup to do anything else besides imaging? I had multi-site driver sync going and it chewed up a lot of CPU.

      1 Reply Last reply Reply Quote 0
      • A
        anthony.delarosa
        last edited by Aug 23, 2017, 5:38 PM

        @THEMCV i set it up a while ago and i don’t recall setting up anything else besides the default setting and it’s just being used to image! not sure where to locate that multi-site sync you’re talking about. help out?

        T 1 Reply Last reply Aug 23, 2017, 5:49 PM Reply Quote 0
        • T
          THEMCV @anthony.delarosa
          last edited by Aug 23, 2017, 5:49 PM

          @anthony-delarosa I have mine a little more tweaked to do that stuff with some scripts from the devs Here’s the link if you want to check out injecting drivers which is step 1 🙂

          Let’s try updating.

          Navigate to your FOG directory

          cd /root/fogproject
          
          git pull
          
          cd /bin/
          
          ./installfog.sh -y 
          
          #run as root or sudo, can't remember for CentOS
          

          Give that a try and see if it’s any better. 🙂

          1 Reply Last reply Reply Quote 0
          • A
            anthony.delarosa
            last edited by Aug 23, 2017, 6:09 PM

            mmm i keep getting a

            • Unzipping the binaries…Done
            • Copying binaries where needed …Failed

            Tried rebooting and same thing : S

            1 Reply Last reply Reply Quote 0
            • A
              anthony.delarosa
              last edited by Aug 23, 2017, 6:12 PM

              this is the error in the fog_error_log

              Archive: binaries1.4.3.zip
              End-of-central-directory signature not found. Either this file is not
              a zipfile, or it constitutes one disk of a multi-part archive. In the
              latter case the central directory and zipfile comment will be found on
              the last disk(s) of this archive.
              unzip: cannot find zipfile directory in one of binaries1.4.3.zip or
              binaries1.4.3.zip.zip, and cannot find binaries1.4.3.zip.ZIP, period.

              T 1 Reply Last reply Aug 23, 2017, 6:13 PM Reply Quote 0
              • T
                THEMCV @anthony.delarosa
                last edited by Aug 23, 2017, 6:13 PM

                @anthony-delarosa Are you running the installer as root/sudo?

                A 2 Replies Last reply Aug 23, 2017, 6:17 PM Reply Quote 0
                • A
                  anthony.delarosa @THEMCV
                  last edited by Aug 23, 2017, 6:17 PM

                  @themcv i’ve done it through sudo, I have upgrade FOG before and I don’t recall ever doing it as root : S let me give that a shot

                  1 Reply Last reply Reply Quote 0
                  • A
                    anthony.delarosa @THEMCV
                    last edited by Aug 23, 2017, 6:19 PM

                    @themcv so both root and sudo fail at the same part : S

                    1 Reply Last reply Reply Quote 0
                    • A
                      anthony.delarosa
                      last edited by Aug 23, 2017, 6:25 PM

                      one thing I did notice is that https://svn.code.sf.net/p/freeghost/code/tags/1.4.4 does not get binaries1.4.4.zip but instead binaries 1.4.3.zip which is what is looking for so that’s fair but one thing that is different about that zip file is that the owner if root and not fog like the rest of the folders

                      0_1503512721406_92a56c9a-27ad-49d7-9f7f-a2dedbb32bab-image.png

                      1 Reply Last reply Reply Quote 0
                      • T
                        THEMCV
                        last edited by Aug 23, 2017, 6:30 PM

                        Ooooohh so you’re using svn not git? That might be the problem.

                        What does git branch bring up if /root/fogproject/ ?

                        1 Reply Last reply Reply Quote 1
                        • A
                          anthony.delarosa
                          last edited by Aug 23, 2017, 6:36 PM

                          I initially set it up with subversion back in the day so i kinda stuck to svn on every upgrade! i’ll give GIT a try

                          1 Reply Last reply Reply Quote 0
                          • T
                            THEMCV
                            last edited by Aug 23, 2017, 6:37 PM

                            Sure. 🙂 If you want to upgrade to the dev-branch (I would) we can go from there and see if it’s any better. 🙂

                            A 1 Reply Last reply Aug 23, 2017, 9:58 PM Reply Quote 0
                            • A
                              anthony.delarosa @THEMCV
                              last edited by Aug 23, 2017, 9:58 PM

                              @themcv hey, i upgraded using GIT and now i’m on 1.4.4 and now running top:

                              0_1503525229778_e90d3f77-8fd1-4c03-896e-f608dab4893e-image.png

                              and this is vSphere performance for CPU

                              0_1503525262652_f7e3b7fe-7f58-4317-8c41-722231fc1fb3-image.png

                              does FOG generally use that muchCPU MHz? it is the VM that uses most CPU in this VM Host:

                              0_1503525469342_70835a54-a20d-401e-8970-90a94f0ec5fe-image.png

                              Seems like quite a lot to me

                              G 1 Reply Last reply Aug 23, 2017, 10:19 PM Reply Quote 0
                              • G
                                george1421 Moderator @anthony.delarosa
                                last edited by george1421 Aug 23, 2017, 4:21 PM Aug 23, 2017, 10:19 PM

                                @anthony-delarosa How many client computers (with fog client installed) are on your network? With mysql at 27% it sounds like you have quite a few checking in.

                                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!

                                A 1 Reply Last reply Aug 23, 2017, 10:50 PM Reply Quote 0
                                • A
                                  anthony.delarosa @george1421
                                  last edited by Aug 23, 2017, 10:50 PM

                                  @george1421 we do, easily over 800 clients! i was not aware that the clients would be checking in with FOG! I thought it was FOG that would contact the host if it needed to communicate something to it

                                  G W 3 Replies Last reply Aug 23, 2017, 11:24 PM Reply Quote 0
                                  • G
                                    george1421 Moderator @anthony.delarosa
                                    last edited by Aug 23, 2017, 11:24 PM

                                    @anthony-delarosa No the fog client works the other way around, the clients check into the master fog server for things to do. They also post inventory info and such.

                                    Since you have a great performance data so far, I wonder if you would be willing to help the fog project by doing something I had on the back burner for a while.

                                    The idea is simply to install php-fpm and have apache use that instead of its internal php engine. I’m interested to know how that impact:

                                    1. Performance of the web gui
                                    2. Impact on performance of the entire fog server CPU usage.

                                    I see you are using an older OS, but the php-fpm package should still be available in epel or in the centos repository. If you have a little time to test this idea let me know and I will put together a tutorial on how to set this up. Reverting back to the default apache php can be done by just commenting out one line. I would do it on my production fog server, but I only have a small campus. I’ve been looking for someone who had around 1000 clients to see if the test was dramatic.

                                    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!

                                    A 1 Reply Last reply Aug 24, 2017, 12:47 AM Reply Quote 1
                                    • G
                                      george1421 Moderator @anthony.delarosa
                                      last edited by Aug 23, 2017, 11:27 PM

                                      @anthony-delarosa In your case you can in crease the check-in delay to help with cpu usage on your fog server. You can do this with the understanding that it will also take longer for clients to see snapin deployments and other assigned tasks. It will not impact image deployment only fog client tasks. (but I’d like to see the results of the php-fpm test before you make this change if you agree).

                                      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!

                                      A 1 Reply Last reply Aug 24, 2017, 12:50 AM Reply Quote 0
                                      • W
                                        Wayne Workman @anthony.delarosa
                                        last edited by Aug 23, 2017, 11:38 PM

                                        @anthony-delarosa said in CPU Usage 100%:

                                        @george1421 we do, easily over 800 clients! i was not aware that the clients would be checking in with FOG! I thought it was FOG that would contact the host if it needed to communicate something to it

                                        The fog client uses polling to communicate with the fog server, this is detailed here: https://wiki.fogproject.org/wiki/index.php?title=FOG_Client#Polling_Behavior

                                        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
                                        • A
                                          anthony.delarosa @george1421
                                          last edited by Aug 24, 2017, 12:47 AM

                                          @george1421 hey George! yeah i think i can help you out there! send me the detailed steps i need to take and i can always take a snapshot of this so if all fails i can revert back!

                                          G 1 Reply Last reply Aug 24, 2017, 12:51 AM Reply Quote 0
                                          • 1
                                          • 2
                                          • 1 / 2
                                          1 / 2
                                          • First post
                                            2/37
                                            Last post

                                          229

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project