The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

CPU high overload

Discussion in 'Workarounds and Optimization' started by Mladen, Jan 1, 2017.

  1. Mladen

    Mladen Registered

    Joined:
    Feb 4, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Republic of Srpska
    cPanel Access Level:
    Root Administrator
    When I have a large number of visitors (just around 200 vistiros) a websites will not work.
    Server load jumps over 80

    I believe that we are not a good setting of "MySQL".

    Would be really grateful if someone could help me how to set up.


    System information
    - Removed -

    Daily Process Log
    - Removed -

    Server

    • Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz
    • 48 GB DDR3 RAM
    • 2x 2 TB SATA II Enterprise HDD

    /etc/my.cnf
    [mysqld]
    innodb_file_per_table=1
    max_allowed_packet=268435456
    open_files_limit=48364
    default-storage-engine=MyISAM
     
    #1 Mladen, Jan 1, 2017
    Last edited by a moderator: Jan 1, 2017
  2. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    543
    Likes Received:
    39
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    You have to monitor your server using "top" command when server load goes high then you will get idea which process or user causing the load on the server.

    Also you can try adjusting your /etc/my.cnf file based on the "Variables to adjust" output of the MySQLtuner script
     
  3. Mladen

    Mladen Registered

    Joined:
    Feb 4, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Republic of Srpska
    cPanel Access Level:
    Root Administrator
    when using: top

    - Removed -

    when using: perl mysqltuner.pl

    I get the following...

    Variables to adjust:
    query_cache_size (>= 8M)
    join_buffer_size (> 128.0K, or always use indexes with joins)
    tmp_table_size (> 16M)
    max_heap_table_size (> 16M)
    thread_cache_size (start at 4)
    table_open_cache (> 400)
    innodb_buffer_pool_size (>= 547M) if possible.
    innodb_log_file_size should be equals to 1/4 of buffer pool size (=32M) if possible.


    How to correctly enter in my.cnf?


    Currently, entered this
    /etc/my.cnf
    [mysqld]
    innodb_file_per_table=1
    max_allowed_packet=268435456
    open_files_limit=48364
    default-storage-engine=MyISAM​
     
    #3 Mladen, Jan 2, 2017
    Last edited by a moderator: Jan 2, 2017
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,086
    Likes Received:
    1,288
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    The following thread is a good place to start:

    Troubleshooting high server loads on Linux servers

    Regarding MySQL usage, you may also want to use the "mysqladmin processlist" command when the load is high to help determine if a specific database is the culprit.

    Thank you.
     
Loading...

Share This Page