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

High apache2 load

Scheduled Pinned Locked Moved
FOG Problems
5
8
1.9k
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
    jayphizzle
    last edited by jayphizzle Apr 22, 2016, 2:08 AM Apr 22, 2016, 8:07 AM

    Hi!

    Currently i’m moving from a old 1.2 fog server to a new 1.3 fog server.
    A few days ago i deployed a snapin on the 1.2 server to replace the old fog client with the new one.
    This is working without issues so far. More and more clients are successfull connected to the new fog server.

    OS: Ubuntu 14.04.4
    fog trunk : 7254
    Clients: ~230
    (170 already moved to the new server)

    What i changed so far:

    • Set Fog Mem Config to 512MB
    • Set MySQL Limit to 200 Connections

    This is the current situation:
    alt text

    Load it is not constant, there are some little drops (for ~5s) from time to time.

    /var/log/apache2/access.log

    ::1 - - [22/Apr/2016:10:00:22 +0200] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.20 (Ubuntu) OpenSSL/1.0.2g (internal dummy connection)"
    

    /var/log/apache2/error.log

    [Fri Apr 22 10:02:26.668597 2016] [:error] [pid 7651] [client 10.xx.xx.57:65488] PHP Warning:  Cannot modify header information - headers already sent by (output started at /var/www/html/fog/lib/fog/page.class.php:176) in /var/www/html/fog/lib/fog/page.class.php on line 179, referer: http://10.xx.xx.164/fog/management/index.php?node=home
    [Fri Apr 22 10:02:26.668635 2016] [:error] [pid 7651] [client 10.xx.xx.57:65488] PHP Warning:  Cannot modify header information - headers already sent by (output started at /var/www/html/fog/lib/fog/page.class.php:176) in /var/www/html/fog/lib/fog/page.class.php on line 180, referer: http://10.xx.xx.164/fog/management/index.php?node=home
    [Fri Apr 22 10:02:31.709296 2016] [:error] [pid 7584] [client 10.xx.xx.57:65525] PHP Warning:  Cannot modify header information - headers already sent by (output started at /var/www/html/fog/lib/fog/page.class.php:176) in /var/www/html/fog/lib/fog/page.class.php on line 179, referer: http://10.xx.xx.164/fog/management/index.php?node=about
    [Fri Apr 22 10:02:31.709320 2016] [:error] [pid 7584] [client 10.xx.xx.57:65525] PHP Warning:  Cannot modify header information - headers already sent by (output started at /var/www/html/fog/lib/fog/page.class.php:176) in /var/www/html/fog/lib/fog/page.class.php on line 180, referer: http://10.xx.xx.164/fog/management/index.php?node=about
    

    /var/log/apache2/other_vhosts_access.log

    10.xx.xx.164:80 10.xx.xx.74 - - [22/Apr/2016:10:03:58 +0200] "GET /fog/service/servicemodule-active.php?moduleid=clientupdater&mac=78:45:C4:08:DD:E7%7C%7C00:00:00:00:00:00:00:E0&newService=1 HTTP/1.1" 200 358 "-" "-"
    10.xx.xx.164:80 10.xx.xx.74 - - [22/Apr/2016:10:03:58 +0200] "GET /fog/service/getversion.php?client&newService=1 HTTP/1.1" 200 359 "-" "-"
    10.xx.xx.164:80 10.xx.xx.74 - - [22/Apr/2016:10:03:58 +0200] "GET /fog/service/servicemodule-active.php?moduleid=taskreboot&mac=78:xx:xx:xx:xx:xx%7C%7C00:00:00:00:00:00:00:E0&newService=1 HTTP/1.1" 200 358 "-" "-"
    

    Is there anything i can adjust to reduce the load?

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott
      last edited by Apr 22, 2016, 12:08 PM

      Update and the header info should be fixed.

      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 1
      • S
        Sebastian Roth Moderator
        last edited by Apr 22, 2016, 2:38 PM

        And another user in the list who is seeing high load on current FOG trunk. We need to get this sorted!

        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

        T 1 Reply Last reply Apr 22, 2016, 2:55 PM Reply Quote 0
        • T
          Tom Elliott @Sebastian Roth
          last edited by Apr 22, 2016, 2:55 PM

          @Sebastian-Roth Going to guess that doing a “Reset all hosts” encryption data will fix (after the initial repull of data) the load average.

          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

          J 1 Reply Last reply Apr 22, 2016, 3:39 PM Reply Quote 0
          • J
            jayphizzle @Tom Elliott
            last edited by Apr 22, 2016, 3:39 PM

            @Tom-Elliott can i just do that ?

            I also noticed that the load now (on a friday afternoon) is much lower.
            I guess the load rises with the amount of online/connected clients.

            alt text

            1 Reply Last reply Reply Quote 0
            • J
              Joe Schmitt Senior Developer
              last edited by Apr 22, 2016, 3:43 PM

              @jayphizzle I also recommend trying a reset encryption data for all hosts. You should see a short spike in traffic, but afterwards the load should be “normal”, assuming it’s an issue with the client.

              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.

              J 1 Reply Last reply Apr 24, 2016, 7:34 PM Reply Quote 0
              • J
                jayphizzle @Joe Schmitt
                last edited by Apr 24, 2016, 7:34 PM

                @Jbob I will try that. Is there a special menu point to reset encryption for all clients? or do i need to create a group will all hosts and select “reset encryption data” in the group settings?

                W 1 Reply Last reply Apr 24, 2016, 10:08 PM Reply Quote 0
                • W
                  Wayne Workman @jayphizzle
                  last edited by Apr 24, 2016, 10:08 PM

                  @jayphizzle Use a group, as you said. That’s how I do it.

                  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
                  • 1 / 1
                  1 / 1
                  • First post
                    8/8
                    Last post

                  152

                  Online

                  12.0k

                  Users

                  17.3k

                  Topics

                  155.2k

                  Posts
                  Copyright © 2012-2024 FOG Project