Mysql crash one o two times every day

Hello,
my percona mysql prod server crash every day with the following log.


This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
Attempting to collect some information that could help diagnose the problem.
As this is a crash and something is definitely wrong, the information
collection process might fail.
Please help us make Percona Server better by reporting any
bugs at https://bugs.percona.com/

key_buffer_size=8388608
read_buffer_size=131072
max_used_connections=84
max_threads=1001
thread_count=63
connection_count=63
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 406432 K bytes of memory
Hope that’s ok; if not, decrease some variables in the equation.

Build ID: 8cd70042119a9a870d74dbfcaf5795781cdbc5eb
Server Version: 5.7.37-40 Percona Server (GPL), Release ‘40’, Revision ‘3a1347ec0d4’

Thread pointer: 0x7f84c7be6b50
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong…
stack_bottom = 7f8552291e60 thread_stack 0x40000
/usr/sbin/mysqld(my_print_stacktrace+0x2c)[0x55eedf164b7c]
/usr/sbin/mysqld(handle_fatal_signal+0x591)[0x55eedefa96f1]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12730)[0x7f89b2943730]
/usr/sbin/mysqld(my_hash_sort_bin+0x23)[0x55eedf567293]
/usr/sbin/mysqld(+0xd9df9e)[0x55eedf149f9e]
/usr/sbin/mysqld(my_hash_insert+0x188)[0x55eedf14a6c8]
/usr/sbin/mysqld(_ZN11Query_cache11store_queryEP3THDP10TABLE_LIST+0x42a)[0x55eedee8737a]
/usr/sbin/mysqld(_Z12handle_queryP3THDP3LEXP12Query_resultyy+0x2b3)[0x55eedef0b2d3]
/usr/sbin/mysqld(+0xb1f29b)[0x55eedeecb29b]
/usr/sbin/mysqld(_Z21mysql_execute_commandP3THDb+0x570c)[0x55eedeed337c]
/usr/sbin/mysqld(_Z11mysql_parseP3THDP12Parser_stateb+0x485)[0x55eedeed5805]
/usr/sbin/mysqld(_Z16dispatch_commandP3THDPK8COM_DATA19enum_server_command+0x127f)[0x55eedeed6aef]
/usr/sbin/mysqld(_Z10do_commandP3THD+0x1cf)[0x55eedeed7cff]
/usr/sbin/mysqld(handle_connection+0x2c8)[0x55eedef90da8]
/usr/sbin/mysqld(pfs_spawn_thread+0x157)[0x55eedf1812a7]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x7fa3)[0x7f89b2938fa3]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x3f)[0x7f89b2135eff]

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (7f839c693180): SELECT wo.slug as idplantilla, wol.nombrecampo, wol.idlinea, wol.proveedor as idproveedor, wol.orden, wol.tipocampo, wol.titulo, wol.disponible, ‘’ as desplegado, wol.link, ‘’ as clase_css, wol.acciones, wol.condiciones FROM web_operacionescabecera wo INNER JOIN web_operacioneslineas wol ON(wo.idweboperacion = wol.idweboperacion) WHERE wo.slug = ‘BODEGONES_DATOS_ANCLADOS’ /AND wol.disponible IN(0,1)/ AND wol.login IN (‘1’, ‘2’) AND wol.proveedor IN (‘0’, ‘UTVK’) AND wo.iddispositivo = ‘web01’ AND wol.grimpo_lastdelete IS NULL ORDER BY wol.orden ASC, wol.proveedor ASC
Connection ID (thread ID): 1612099
Status: NOT_KILLED

You may download the Percona Server operations manual by visiting
Percona Server for MySQL is a drop-in replacement for MySQL. You may find information
in the manual which will help you identify the cause of the crash.


I update with last 5.7 version and migrate server from 32 to 64 GB RAM.
I discard RAM problems, and discard query problems.
My old MySql 5.7 without Percona work perfectlly with the same databases and queries, any suggestion?

thanks

This line tells me that the linux kernel is killing MySQL. Can you please check dmesg and the system log for any OOM killer messages? If you find these, that means MySQL is using too much memory.

1 Like

Hello and thanks for answer.
i check dmesg -T and the last record is 27/04/2022 and mysql last crash ocurred today on 29/04/2022

My mysql is configured with 16GB InnoDb Buffer Pool Size and is deployed on a Debian 10 server and, this serer only runs mysq

free -h
total used free shared buff/cache available
Mem: 62Gi 22Gi 451Mi 24Mi 39Gi 39Gi
Swap: 0B 0B 0B

1 Like

Have you isolated if a specific query causes the crash?
It seems your query cache is enabled. Can you please set the following then restart MySQL and see if the issue persists?

query_cache_type=0
query_cache_size=0
1 Like

I make configuration change that suggest but, i think that is not a query problem because i checked the crashed logs and every time is a different query and, the same query is executed to old mysql server and works fine.

I try to set new config values and wait the feedback.
thanks

1 Like