开发者社区> 问答> 正文

mysql 每半个小crash一次,求解读日志

日志如下:
130420 10:06:42 - 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.
We will try our best to scrape up some info that will hopefully help diagnose
the problem, but since we have already crashed, something is definitely wrong
and this may fail.

key_buffer_size=67108864
read_buffer_size=262144
max_used_connections=1
max_threads=151
threads_connected=1
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 260376 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x1b654a0
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 = 0x7f9b1413bcf0 thread_stack 0x40000
[0x757e14]
[0x4bf50b]
[0x62cbe0]
/lib/x86_64-linux-gnu/libc.so.6(get_nprocs+0x10d) [0x7f9b1561e4ed]
/lib/x86_64-linux-gnu/libc.so.6(+0x7f13e) [0x7f9b155ab13e]
/lib/x86_64-linux-gnu/libc.so.6(__libc_malloc+0x1ab) [0x7f9b155af0fb]
/lib/x86_64-linux-gnu/libc.so.6(+0x6f20b) [0x7f9b1559b20b]
/lib/x86_64-linux-gnu/libnss_files.so.2(_nss_files_gethostbyaddr_r+0x1bb) [0x7f9b14df450b]
[0x87ea10]
[0x87e796]
[0x4c617c]
[0x4c76a0]
[0x4c7eaf]
[0x628dda]
[0x87ac79]

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query ((nil)): is an invalid pointer
Connection ID (thread ID): 12
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.
130420 10:06:42 mysqld_safe Number of processes running now: 0
130420 10:06:42 mysqld_safe mysqld restarted
130420 10:06:42 InnoDB: Initializing buffer pool, size = 16.0M
130420 10:06:42 InnoDB: Completed initialization of buffer pool
130420 10:06:42 InnoDB: Started; log sequence number 0 44233
130420 10:06:42 [Note] Event Scheduler: Loaded 0 events
130420 10:06:42 [Note] /usr/local/mysql/libexec/mysqld: ready for connections.
Version: '5.1.60' socket: '/tmp/mysql.sock' port: 3306 Source distribution
我来说下具体情况,这个环境是试用lnmp.org的包搭建的,手动关闭了bin-log,在访问网站的时候偶尔会出现数据库连接失败的情况,查看了日志。看不太明白,求大神帮助。

展开
收起
落地花开啦 2016-02-13 11:47:43 3044 0
1 条回答
写回答
取消 提交回答
  • 喜欢技术,喜欢努力的人

    查看配置文件,或者用最新版的MYSQL吧。

    2019-07-17 18:41:53
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
PostgresChina2018_赖思超_PostgreSQL10_hash索引的WAL日志修改版final 立即下载
Kubernetes下日志实时采集、存储与计算实践 立即下载
日志数据采集与分析对接 立即下载

相关镜像