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

Fog using a huge amount of memory and failing

Scheduled Pinned Locked Moved Unsolved
FOG Problems
5
27
3.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.
  • J
    Joe Gill @george1421
    last edited by Jun 7, 2018, 5:07 PM

    @george1421
    Running on a Hyper V Virtual Machine
    FOG OS - Debian 9.4
    Memory - 4 GB
    CPU - 2 CPUs allotted

    I used Top to determine these. If their is a better command let me know and I will certainly run that and report back.

    Memory Usage (in order from most to least) –
    Apache2 (20 percent)
    mysql
    FOGImageSize
    FOGPingHosts
    FOGSnapinHash

    CPU Usage –
    Apache2

    G 1 Reply Last reply Jun 7, 2018, 5:15 PM Reply Quote 0
    • G
      george1421 Moderator @Joe Gill
      last edited by george1421 Jun 7, 2018, 11:19 AM Jun 7, 2018, 5:15 PM

      @joe-gill Can I get to bits of info I forgot to ask?

      1. Top CPU usage service
      2. Number of clients you have in your FOG environment
      3. Fog check in interval Fog Configuration -> Fog Settings -> Fog Client -> FOG_CLIENT_CHECKIN_TIME (if you have less than 300 [5 minutes] you might want to bump that up to 300 or 600 seconds).

      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!

      J 1 Reply Last reply Jun 7, 2018, 5:19 PM Reply Quote 0
      • J
        Joe Gill @george1421
        last edited by Jun 7, 2018, 5:19 PM

        @george1421
        Top CPU usage service is Apache2.
        Total hosts is ~500.

        Where is the www.conf file located in Debian? I searched high and low and could not find it. I found something in the /etc/php/7.0/ directory but it didn’t have pm.max_requests.

        Thanks!

        G 1 Reply Last reply Jun 7, 2018, 5:21 PM Reply Quote 0
        • G
          george1421 Moderator @Joe Gill
          last edited by Jun 7, 2018, 5:21 PM

          @joe-gill said in Fog using a huge amount of memory and failing:

          /etc/php/7.0/

          is probably a close directory for php 7.x in there should be a maybe a /etc/php-fpm.d directory and in that there should be www.conf. The file name is consistent its just the location of the file that changes with the version of php.

          Also I added an additional question to my list.

          Fog check in interval Fog Configuration -> Fog Settings -> Fog Client -> FOG_CLIENT_CHECKIN_TIME (if you have less than 300 [5 minutes] you might want to bump that up to 300 or 600 seconds).

          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!

          J 1 Reply Last reply Jun 7, 2018, 6:12 PM Reply Quote 0
          • J
            Joe Gill @george1421
            last edited by Jun 7, 2018, 6:12 PM

            @george1421

            I seem to be having bigger issues. PHP is completely un-responsive now. I can and have been able to reach the Apache test page on our server but cannot get anything to run in php. I tried restarting the service, rebooting the server, unistalling php and re-running the fog installer. I will start a new thread and tag you in it.

            1 Reply Last reply Reply Quote 0
            • J
              jstephen @george1421
              last edited by jstephen Jun 7, 2018, 12:46 PM Jun 7, 2018, 6:46 PM

              @george1421 Huh. I’ve got Apache 2.0 Handler here. Should I follow the steps in the link or is there something else that I should do?

              G 1 Reply Last reply Jun 7, 2018, 6:55 PM Reply Quote 0
              • G
                george1421 Moderator @jstephen
                last edited by george1421 Jun 7, 2018, 12:56 PM Jun 7, 2018, 6:55 PM

                @jstephen You have 1.5.4 installed, but you have the apache handler in place and you didn’t change it?

                If that is true then I can understand why your UI is a bit sucky. That is why they moved to php-fpm. Wait your info.php page showed that you had the fast cgi enabled.

                edit: Hint, make sure you are replying to the proper thread. 😉

                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!

                J 1 Reply Last reply Jun 7, 2018, 7:07 PM Reply Quote 0
                • J
                  jstephen @george1421
                  last edited by Jun 7, 2018, 7:07 PM

                  @george1421 George, I think I did reply to the proper thread… it is just a little confusing since someone else with a similar problem seems to have popped in!

                  Fog is version 1.5.4. This same server has been updated through many, many versions for 4 years or mo so maybe it has some lingering old stuff!

                  My phpinfo page does not indicate that I have FastCGI enabled. I’m reading through this thread ( https://forums.fogproject.org/topic/10717/can-php-fpm-make-fog-web-gui-fast/4 ) now to see whether there is information about getting mpm working.

                  G 1 Reply Last reply Jun 7, 2018, 7:10 PM Reply Quote 0
                  • G
                    george1421 Moderator @jstephen
                    last edited by Jun 7, 2018, 7:10 PM

                    @jstephen Sorry my mistake same issue and same color avatar.

                    I don’t think the FOG installer is setting mpm by design. That will help with performance but not using php-fpm will give you a craptacular experience with the new gui.

                    So you ran the info-php script and its still reporting Apache handler?

                    0_1528398591654_php-apache.png

                    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 0
                    • G
                      george1421 Moderator
                      last edited by george1421 Jun 7, 2018, 2:05 PM Jun 7, 2018, 8:04 PM

                      I was able to remote in and find out what was going sideways with the OP’s system. I’ll fill out the details in a bit, but there is the keys.

                      mods-enabled/php5.conf set handler

                      9.4

                      sites-enabled/001-fog.config

                      It appears to be an issue with at least debian 9.4 at the moment where php-fpm wasn’t being enabled causing the sluggish UI and high apache usage.

                      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 0
                      • 1
                      • 2
                      • 2 / 2
                      2 / 2
                      • First post
                        27/27
                        Last post

                      221

                      Online

                      12.0k

                      Users

                      17.3k

                      Topics

                      155.2k

                      Posts
                      Copyright © 2012-2024 FOG Project