- 论坛徽章:
- 1
|
10可用积分
下面是机器信息和调试信息,肯定是配置文件引起的,所以就没必要拿出来了。
想大家主要谈一下,为什么会出现这个问题:32位linux?libc?pthread?stack?或者其他
- debian:~# uname -a
- Linux debian 2.6.18-6-686-bigmem #1 SMP Mon Oct 13 17:32:29 UTC 2008 i686 GNU/Linux
复制代码- debian:~# free -m
- total used free shared buffers cached
- Mem: 16239 8500 7739 0 30 8323
- -/+ buffers/cache: 147 16092
- Swap: 0 0 0
复制代码- Intel(R) Xeon(R) CPU E5405 @ 2.00GHz
复制代码- debian:~# ulimit -a
- core file size (blocks, -c) 0
- data seg size (kbytes, -d) unlimited
- max nice (-e) 0
- file size (blocks, -f) unlimited
- pending signals (-i) unlimited
- max locked memory (kbytes, -l) unlimited
- max memory size (kbytes, -m) unlimited
- open files (-n) 1024
- pipe size (512 bytes, -p) 8
- POSIX message queues (bytes, -q) unlimited
- max rt priority (-r) 0
- stack size (kbytes, -s) 8192
- cpu time (seconds, -t) unlimited
- max user processes (-u) unlimited
- virtual memory (kbytes, -v) unlimited
- file locks (-x) unlimited
复制代码- +--------------------------+
- | version() |
- +--------------------------+
- | 5.0.32-Debian_7etch8-log |
- +--------------------------+
复制代码
- Feb 4 16:49:33 debian mysqld[2936]: 090204 16:49:33 [ERROR] Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use 'ulimit' to allow mysqld to use more memory or you can add more swap space
- Feb 4 16:49:33 debian mysqld[2936]: mysqld got signal 11;
- Feb 4 16:49:33 debian mysqld[2936]: This could be because you hit a bug. It is also possible that this binary
- Feb 4 16:49:33 debian mysqld[2936]: or one of the libraries it was linked against is corrupt, improperly built,
- Feb 4 16:49:33 debian mysqld[2936]: or misconfigured. This error can also be caused by malfunctioning hardware.
- Feb 4 16:49:33 debian mysqld[2936]: We will try our best to scrape up some info that will hopefully help diagnose
- Feb 4 16:49:33 debian mysqld[2936]: the problem, but since we have already crashed, something is definitely wrong
- Feb 4 16:49:33 debian mysqld[2936]: and this may fail.
- Feb 4 16:49:33 debian mysqld[2936]:
- Feb 4 16:49:33 debian mysqld[2936]: key_buffer_size=33554432
- Feb 4 16:49:33 debian mysqld[2936]: read_buffer_size=2093056
- Feb 4 16:49:33 debian mysqld[2936]: max_used_connections=33
- Feb 4 16:49:33 debian mysqld[2936]: max_connections=100
- Feb 4 16:49:33 debian mysqld[2936]: threads_connected=31
- Feb 4 16:49:33 debian mysqld[2936]: It is possible that mysqld could use up to
- Feb 4 16:49:33 debian mysqld[2936]: key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 1056367 K
- Feb 4 16:49:33 debian mysqld[2936]: bytes of memory
- Feb 4 16:49:33 debian mysqld[2936]: Hope that's ok; if not, decrease some variables in the equation.
- Feb 4 16:49:33 debian mysqld[2936]:
- Feb 4 16:49:33 debian mysqld[2936]: thd=0x8ca81e0
- Feb 4 16:49:33 debian mysqld[2936]: Attempting backtrace. You can use the following information to find out
- Feb 4 16:49:33 debian mysqld[2936]: where mysqld died. If you see no messages after this, something went
- Feb 4 16:49:33 debian mysqld[2936]: terribly wrong...
- Feb 4 16:49:33 debian mysqld[2936]: Cannot determine thread, fp=0xaf2759f8, backtrace may not be correct.
- Feb 4 16:49:33 debian mysqld[2936]: Stack range sanity check OK, backtrace follows:
- Feb 4 16:49:33 debian mysqld[2936]: 0x81c0759
- Feb 4 16:49:33 debian mysqld[2936]: 0x822d274
- Feb 4 16:49:33 debian mysqld[2936]: 0x81c048c
- Feb 4 16:49:33 debian mysqld[2936]: 0x84863b8
- Feb 4 16:49:33 debian mysqld[2936]: 0x8293d97
- Feb 4 16:49:33 debian mysqld[2936]: 0x81db37b
- Feb 4 16:49:33 debian mysqld[2936]: 0x81dbeb7
- Feb 4 16:49:33 debian mysqld[2936]: 0x81dc370
- Feb 4 16:49:33 debian mysqld[2936]: 0x81dd638
- Feb 4 16:49:33 debian mysqld[2936]: 0x81de044
- Feb 4 16:49:33 debian mysqld[2936]: 0xb7f1e240
- Feb 4 16:49:33 debian mysqld[2936]: 0xb7d5949e
- Feb 4 16:49:33 debian mysqld[2936]: New value of fp=(nil) failed sanity check, terminating stack trace!
- Feb 4 16:49:33 debian mysqld[2936]: Please read [url]http://dev.mysql.com/doc/mysql/en/using-stack-trace.html[/url] and follow instructions on how to resolve the stack trace. Resolved
- Feb 4 16:49:33 debian mysqld[2936]: stack trace is much more helpful in diagnosing the problem, so please do
- Feb 4 16:49:33 debian mysqld[2936]: resolve it
- Feb 4 16:49:33 debian mysqld[2936]: Trying to get some variables.
- Feb 4 16:49:33 debian mysqld[2936]: Some pointers may be invalid and cause the dump to abort...
- Feb 4 16:49:33 debian mysqld[2936]: thd->query at 0x8cbf7a8 = create table DB_CHATLOG_0.t_chatlog_20090204 (^I^I `chat_sender_id` int(10) NOT NULL default '0',^I^I `chat_recver_id` int(10) NOT NULL default '0',^I^I `chat_time` int(10) NOT NULL default '0',^I^I `chat_msg_len` int(5) NOT NULL default '0',^I^I `chat_msg_buf` varchar(100),^I^I KEY `i_chatlog_1` (`chat_sender_id`)^I^I)ENGINE=memory, CHARSET=utf8
- Feb 4 16:49:33 debian mysqld[2936]: thd->thread_id=288
- Feb 4 16:49:33 debian mysqld[2936]: The manual page at [url]http://www.mysql.com/doc/en/Crashing.html[/url] contains
- Feb 4 16:49:33 debian mysqld[2936]: information that should help you find out what is causing the crash.
- Feb 4 16:49:33 debian mysqld_safe[4604]: ended
复制代码 |
最佳答案
查看完整内容
没有swap 嘛? 最大连接数都100 这么小了,内存感觉肯定不会超支阿。是配置文件就好说了。
|