I have been looking at my shared server's "top" or "Show Current CPU Usage" for quite sometime now and the one thing that is always on top is the MySQL error pid. which is something like this
Here is my my.cnfCode:/usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --log-error=/etc/httpd/logs/mysqld.err --pid-file=/var/lib/mysql/server.server.com.pid
Code:[mysqld] max_allowed_packet=100M set-variable = max_connections=600 safe-show-database # Connection timeout connect_timeout = 20 # Timeout for inactive connections wait_timeout = 60 # Network buffer length (I think this is the linux default) net_buffer_length = 16K log-error = /etc/httpd/logs/mysqld.err binlog_cache_size = 2M table_cache = 6588 join_buffer_size = 320M tmp_table_size = 512M sort_buffer_size = 128M thread_cache_size = 6 max_heap_table_size = 320M query_cache_size = 312M key_buffer_size = 128M [client] socket=/var/lib/mysql/mysql.sock
How can I optimize mySQL so that it doesnt end up using a lot of my CPU resources and slowing down a lot of work for my users?
Thanks a lot for anyone who helps.



LinkBack URL
About LinkBacks
Reply With Quote





