国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數據庫 > MySQL > 正文

MySQL示例-mysqld got signal 11

2024-07-24 12:35:19
字體:
來源:轉載
供稿:網友
  背景:
  MySQL-5.7.12, debian 8核16G虛擬機, 業務方反饋在某一個時間點, 出現了大量的數據庫報錯, 之后恢復正常;
 
  場景:
  開發查看日志后, 發現在某個時間點, 應用斷開了所有與數據庫的連接, 幾秒鐘以后就恢復了;
  同時監控系統的內存使用率出現了異常的驟降;
  MySQL案例-mysqld got signal 11(補充)
 
  3min之后收到了報警系統的信息, 內存使用率82%;
 
  分析:
  第一時間的判斷是網絡的問題造成了應用層的連接斷開了, 但是這種內存使用率驟降的現象不會是網絡造成的;
  查看MySQL的日志, 發現MySQL實例發生了crash, 相關的報錯信息如下:
 
  07:42:44 UTC - mysqld got signal 11 ;
  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.
  key_buffer_size=8388608
  read_buffer_size=16777216
  max_used_connections=29
  max_threads=5000
  thread_count=32
  connection_count=22
  It is possible that mysqld could use up to
  key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 245834871 K bytes of memory
  Hope that is ok; if not, decrease some variables in the equation.
  Thread pointer: 0x7f607c0072c0
  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 = 7f6141b36e80 thread_stack 0x40000
  /usr/sbin/mysqld(my_print_stacktrace+0x2c)[0xe77fec]
  /usr/sbin/mysqld(handle_fatal_signal+0x459)[0x7a7019]
  /lib/x86_64-linux-gnu/libpthread.so.0(+0xf8d0)[0x7f643257a8d0]
  /usr/sbin/mysqld(_ZN16Partition_helper25handle_ordered_index_scanEPh+0x5c)[0xbbabec]
  /usr/sbin/mysqld(_ZN7handler13ha_index_lastEPh+0x1b0)[0x7f4410]
  /usr/sbin/mysqld(_Z14join_read_lastP7QEP_TAB+0x65)[0xc1f605]
  /usr/sbin/mysqld(_Z10sub_selectP4JOINP7QEP_TABb+0x11b)[0xc25e4b]
  /usr/sbin/mysqld(_ZN4JOIN4execEv+0x3b8)[0xc1ea78]
  /usr/sbin/mysqld(_Z12handle_queryP3THDP3LEXP12Query_resultyy+0x238)[0xc8e408]
  /usr/sbin/mysqld[0x770ccf]
  /usr/sbin/mysqld(_Z21mysql_execute_commandP3THDb+0x3403)[0xc51103]
  /usr/sbin/mysqld(_Z11mysql_parseP3THDP12Parser_state+0x3ad)[0xc531bd]
  /usr/sbin/mysqld(_Z16dispatch_commandP3THDPK8COM_DATA19enum_server_command+0x817)[0xc53a47]
  /usr/sbin/mysqld(_Z10do_commandP3THD+0x18f)[0xc54faf]
  /usr/sbin/mysqld(handle_connection+0x278)[0xd108d8]
  /usr/sbin/mysqld(pfs_spawn_thread+0x1b4)[0xe90784]
  /lib/x86_64-linux-gnu/libpthread.so.0(+0x80a4)[0x7f64325730a4]
  /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7f6430e1b87d]
  Trying to get some variables.
  Some pointers may be invalid and cause the dump to abort.
  Query (7f607c015ad0): select * from test where time>='2016-07-29 00:00:00' and time<='2016-07-29 23:59:59' and tag in (2,3,6) order by id desc limit 2000
  Connection ID (thread ID): 138760
  Status: NOT_KILLED
  The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
  information that should help you find out what is causing the crash.
  2016-07-29T07:42:45.661724Z mysqld_safe Number of processes running now: 0
  2016-07-29T07:42:45.664516Z mysqld_safe mysqld restarted
  2016-07-29T15:42:45.991109+08:00 0 [Note] /usr/sbin/mysqld (mysqld 5.7.12-log) starting as process 8367 ...
 
  Resource temporarily unavailable
  代表MySQL發現某一項資源臨時不可用, 應該是資源耗盡 or 申請失敗等情況;
 
  stack_bottom = 7f6141b36e80 thread_stack 0x40000
  /usr/sbin/mysqld(my_print_stacktrace+0x2c)[0xe77fec]
  /usr/sbin/mysqld(handle_fatal_signal+0x459)[0x7a7019]
  /lib/x86_64-linux-gnu/libpthread.so.0(+0xf8d0)[0x7f643257a8d0]
  /usr/sbin/mysqld(_ZN16Partition_helper25handle_ordered_index_scanEPh+0x5c)[0xbbabec]
  /usr/sbin/mysqld(_ZN7handler13ha_index_lastEPh+0x1b0)[0x7f4410]
  /usr/sbin/mysqld(_Z14join_read_lastP7QEP_TAB+0x65)[0xc1f605]
  /usr/sbin/mysqld(_Z10sub_selectP4JOINP7QEP_TABb+0x11b)[0xc25e4b]
  /usr/sbin/mysqld(_ZN4JOIN4execEv+0x3b8)[0xc1ea78]
  /usr/sbin/mysqld(_Z12handle_queryP3THDP3LEXP12Query_resultyy+0x238)[0xc8e408]
  /usr/sbin/mysqld[0x770ccf]
  /usr/sbin/mysqld(_Z21mysql_execute_commandP3THDb+0x3403)[0xc51103]
  /usr/sbin/mysqld(_Z11mysql_parseP3THDP12Parser_state+0x3ad)[0xc531bd]
  /usr/sbin/mysqld(_Z16dispatch_commandP3THDPK8COM_DATA19enum_server_command+0x817)[0xc53a47]
  /usr/sbin/mysqld(_Z10do_commandP3THD+0x18f)[0xc54faf]
  /usr/sbin/mysqld(handle_connection+0x278)[0xd108d8]
  /usr/sbin/mysqld(pfs_spawn_thread+0x1b4)[0xe90784]
  /lib/x86_64-linux-gnu/libpthread.so.0(+0x80a4)[0x7f64325730a4]
  /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7f6430e1b87d]
  從紅字等地方的信息, 可以推斷出當時MySQL是正在執行查詢, 這些查詢中有join, 也有subquery, 且查詢的表包含了分區表;
 
  可以預料到在crash的時候, MySQL執行這些語句時肯定需要申請一部分join用的buffer, 同時子查詢也會建立臨時表, 都需要占用內存空間。

(編輯:武林網)

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 宁阳县| 南陵县| 清原| 富宁县| 普陀区| 太仓市| 浦北县| 西丰县| 琼结县| 万源市| 大宁县| 万山特区| 胶南市| 师宗县| 乐山市| 托克逊县| 桂阳县| 卢氏县| 岳阳市| 富顺县| 奉节县| 溆浦县| 东辽县| 台南市| 华容县| 博乐市| 潍坊市| 河曲县| 习水县| 集贤县| 河北省| 蕲春县| 涪陵区| 巴南区| 龙门县| 石门县| 奎屯市| 长乐市| 昌宁县| 北川| 永安市|