I have a new server with 32 cpus and 32gb ram and we are having mysql errors once in a while, mostly on a Magento website.
SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
I have alterady tweaked mysql, but the error remains.
I also installed mysql tuner > /http://108.168.204.170/mysqltunerReport.txt
and mysqlmymom > /http://108.168.204.170/mysqlmymonlite_stats.txt
Here is my my.cnf:
SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
I have alterady tweaked mysql, but the error remains.
I also installed mysql tuner > /http://108.168.204.170/mysqltunerReport.txt
and mysqlmymom > /http://108.168.204.170/mysqlmymonlite_stats.txt
Here is my my.cnf:
Code:
[mysqld]
local-infile=0
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
#skip-locking
##skip-innodb
query_cache_limit=32M
query_cache_size=32M
query_cache_type=1
max_user_connections=100
max_connections=1000
interactive_timeout=300
wait_timeout=100
connect_timeout=999
thread_cache_size=128
key_buffer=16M
join_buffer=1M
join_buffer_size=1M
max_allowed_packet=512M
table_cache=1024
#record_buffer=1M
sort_buffer_size=2M
read_buffer_size=2M
max_connect_errors=10
thread_concurrency=8
myisam_sort_buffer_size=64M
server-id=1
federated
innodb_buffer_pool_size=1G
#[mysql.server]
#user=mysql
#basedir=/var/lib
open_files_limit=50000
[safe_mysqld]
err-log=/var/log/mysqld.log
pid-file=/var/lib/mysql/mysql.pid
#[mysqldump]
#quick
#max_allowed_packet=16M
[mysql]
no-auto-rehash
[isamchk]
key_buffer=64M
sort_buffer=64M
read_buffer=16M
write_buffer=16M
[myisamchk]
key_buffer=64M
sort_buffer=64M
read_buffer=16M
write_buffer=16M
[mysqlhotcopy]
interactive-timeout