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

Fog Box CPU utilization maxed

Scheduled Pinned Locked Moved Solved
FOG Problems
2
5
501
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
    jherron
    last edited by Sep 7, 2018, 5:36 PM

    My fog database computer CPU is being maxed so logging and changing tabs takes a while. the webpage crashes when i try to look at the logs.

    this led me to try and run the Database Maintenance Commands listed here :
    https://wiki.fogproject.org/wiki/index.php?title=Troubleshoot_MySQL#Database_Maintenance_Commands

    when i try to run this it tells me there are too many connections
    ERROR 1040 (HY000): Too many connections
    [btsdit@localhost ~]$

    at this point im not sure what to do as i am not a SQL guy nor a Linux guy so i dont know where to look or what to look at to fix the connections issues

    Stats of My box:
    2 CPU with 2 cores @ 2ghz each
    6 gigs ram
    Cento os 7
    fog version 1.5.0

    1 Reply Last reply Reply Quote 0
    • S
      Sebastian Roth Moderator
      last edited by Sebastian Roth Sep 7, 2018, 3:59 PM Sep 7, 2018, 9:56 PM

      @jherron Usually max_connections is too low if you have a good amount of clients in your network having the FOG client software installed. Here is how you check and change that value in the live DB:

      mysql> show variables like 'max_connections';
      
      +-----------------+-------+
      | Variable_name   | Value |
      +-----------------+-------+
      | max_connections | 151   |
      +-----------------+-------+
      mysql> set global max_connections = 500;
      

      If you see this is helping you, take a look at the mysql configs and change setting there as well. Make sure you read this as well as we have seen issues with upping the max connection limit sometimes: https://www.rfc3092.net/2017/06/mysql-max_connections-limited-to-214-on-ubuntu-foo/ (just needs a bit of working around in some cases)

      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
      • J
        jherron
        last edited by Sep 10, 2018, 11:32 AM

        forgive me im not versed in sql, how do i grant myself the priveleges necessary to make that change?

        1 Reply Last reply Reply Quote 0
        • S
          Sebastian Roth Moderator
          last edited by Sebastian Roth Sep 10, 2018, 12:05 PM Sep 10, 2018, 12:30 PM

          @jherron Should be fine to connect as root to the DB:

          shell> mysql -u root -p
          Password:
          ...
          mysql> ...
          

          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
          • J
            jherron
            last edited by Sep 11, 2018, 12:02 PM

            Thanks for all the help! things seem to be back in order!

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

            150

            Online

            12.0k

            Users

            17.3k

            Topics

            155.2k

            Posts
            Copyright © 2012-2024 FOG Project