Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    604
    Likes Received:
    42
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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:
    43,711
    Likes Received:
    1,791
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice