Jump to content
Sign in to follow this  
szogun

Got timeout reading communication packets

Recommended Posts

Hej od pewnego czasu zmagam się z problemem na vpsie, który dotyczy baz danych, mianowicie po x czasie działania co jakiś czas w logach widnieje (Got timeout reading communication packets)

 

Cytat

[client]
port=3306
socket=/var/run/mysqld/mysqld.sock

[mysqld_safe]
socket=/var/run/mysqld/mysqld.sock

[mysqld]
user=mysql
pid-file=/var/run/mysqld/mysqld.pid
socket=/var/run/mysqld/mysqld.sock
port=3306
basedir=/usr
datadir=/var/lib/mysql
tmpdir=/tmp
lc-messages-dir=/usr/share/mysql
log_error=/var/log/mysql/error.log

symbolic-links=0
 
skip-external-locking
key_buffer_size = 16M
max_allowed_packet = 1024M
table_open_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M

#innodb_use_native_aio = 0
innodb_file_per_table

max_connections=70
max_user_connections=30
wait_timeout=360
interactive_timeout=360
long_query_time=5

!includedir /etc/mysql/conf.d/

 

 

Share this post


Link to post

max_allowed_packet = 1024M , A cache twojej bazy to : table_open_cache = 64 , Sortuje się w sort_buffer_size = 512Kb , dlatego musisz powiększyć baze  

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Create a New Account. It’s free and easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×
×
  • Create New...