Skip to main content

Optimization for 4GB Server Dedicated CENTOS 6.5 Xeon 3450

Comments

9 comments

  • cPanelMichael
    Hello :) The following thread is a good place to start when obtaining data for MySQL optimization: mysqlmymonlite.sh server stats gathering tool for cPanel Server There is a variant to the MySQL tuner that is more suited towards newer versions of MySQL. In addition, try to let MySQL run at least 24 hours before using a tuner. Thank you.
    0
  • thinkbot
    You have too little RAM memory to fit main buffers replace your my.cnf with this [mysqld] skip-name-resolve myisam_use_mmap=1 max_connections = 100 max_user_connections = 50 join_buffer_size=512K sort_buffer_size=256K table_open_cache = 5000 table_definition_cache = 3000 max_allowed_packet = 32M thread_cache_size = 16 query_cache_type = 1 query_cache_size =50M query_cache_limit = 1M max_heap_table_size = 30M tmp_table_size = 30M key_buffer_size = 500M innodb_buffer_pool_size = 1000M innodb_stats_on_metadata=0 slow_query_log=1 slow_query_log_file=mysql-slow.log long_query_time=0.1 This will make of course huge improvement, but it still won't fit whole innodb_buffer_pool_size in RAM, innodb buffer Make sure to remove databases that are not used and rerun mysqltuner.pl again And which tables are used more often, InnoDB or MyISAM ?
    0
  • maisondasilva
    Hi Thanks Help My costumer use WordPress Joomla, more MyISAM What ram for me? 8gb is good? Process Manager Mysql CPU% 5% Memory% 12% Thanks Maison
    0
  • thinkbot
    If your all innodb databases are not used, so they will probably fit in memory MyiSAM tables all fits in buffers now, so they will work very fast You should install munin plugin for WHM to have monitoring of server usage on graphs please rerun mysqltuner.pl
    0
  • maisondasilva
    Hi Mysql Use 31,2% RAM 1,9% CPU is correct? Thanks Maison
    0
  • thinkbot
    You should install something more reliable for server monitoring, like munin plugin in WHM Process Manager is very basic tool for showing server utilization
    0
  • maisondasilva
    I have 8gb installed on the server now, I need to change some more configuration below? [quote="thinkbot, post: 1571582">You have too little RAM memory to fit main buffers replace your my.cnf with this [mysqld] skip-name-resolve myisam_use_mmap=1 max_connections = 100 max_user_connections = 50 join_buffer_size=512K sort_buffer_size=256K table_open_cache = 5000 table_definition_cache = 3000 max_allowed_packet = 32M thread_cache_size = 16 query_cache_type = 1 query_cache_size =50M query_cache_limit = 1M max_heap_table_size = 30M tmp_table_size = 30M key_buffer_size = 500M innodb_buffer_pool_size = 1000M innodb_stats_on_metadata=0 slow_query_log=1 slow_query_log_file=mysql-slow.log long_query_time=0.1 This will make of course huge improvement, but it still won't fit whole innodb_buffer_pool_size in RAM, innodb buffer Make sure to remove databases that are not used and rerun mysqltuner.pl again And which tables are used more often, InnoDB or MyISAM ?
    0
  • thinkbot
    First please rerun mysqltuner.pl and post results here
    0
  • Julien Mary
    That changed the server from turtle style to blazing fast : THANKS
    0

Please sign in to leave a comment.