• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue Mariadb stop responding

OlivierV

New Pleskian
Hello,
We use Plesk 12.5.30 on Centos 7 with an application with lot's of user connected on.
Sometimes Mariadb is not responding and I have in Php log : The server "MySQL server has gone away" on a simple request in a little table.
We must restart mariadb service, but all session are broken.
We have nothing in the mariadb log file...

The main database used for this application is 873.3 Mio large using MyIsam

Can someone help us to know where is the problem ?

Thank you for your help.
 
To fix, check that “wait_timeout” mysql variable in your my.cnf configuration file is large enough. Also you can increase the maximal packet size limit “max_allowed_packet” in my.cnf file, eg. set max_allowed_packet = 128M, then restart mariadb service.
 
Hello,

Thank you for this help I will modify the cnf file and wait if the problem disappeared. The old value was 16M.
My server have 64Go of RAM.
Here is my configuration file :

Code:
[mysqld]
local-infile=0
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
#max_connections=300

####OPTIMISATION TEST#####

max_connections=448
max_user_connections=30
key_buffer=4096M
myisam_sort_buffer_size=64M
join_buffer_size=1M
read_buffer_size=32M
sort_buffer_size=32M
table_open_cache=1500
thread_concurrency=10
thread_cache_size=128M
max_allowed_packet=128M
query_cache_limit=1M
query_cache_size=1024M
query_cache_type=1
table_definition_cache=1150
slow_query_log=1
#####END TEST######

### Test ###
low_priority_updates=1
concurrent_insert=ALWAYS

[mysqld_safe]
log-error=/var/log/mariadb/mariadb.log
pid-file=/var/run/mariadb/mariadb.pid
#
# include all files from the config directory
#
!includedir /etc/my.cnf.d
 
Back
Top