|
|
Gentoo 2006+Mysql 4.0.26,内存有4G,好像只有2G被用了,mysql总是忽然死掉,大家帮忙想想办法,谢谢了。
mysqld.err文件内容
060521 20:37:31 Slave I/O thread: connected to master 'backup@192.168.0.102:3306', replication started in log 'Xeon30_ReadWrite-bi$
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=1073741824
read_buffer_size=8384512
max_used_connections=655
max_connections=1500
threads_connected=655
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 157828 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
You seem to be running 32-bit Linux and have 655 concurrent connections.
If you have not changed STACK_SIZE in LinuxThreads and built the binary
yourself, LinuxThreads is quite likely to steal a part of the global heap for
the thread stack. Please read http://www.mysql.com/doc/L/i/Linux.html
thd=0x3f962ac0
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...
frame pointer (ebp) is NULL, did you compile with
-fomit-frame-pointer? Aborting backtrace!
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort...
thd->query at (nil) is invalid pointer
thd->thread_id=142697
The manual page at http://www.mysql.com/doc/en/Crashing.html contains
information that should help you find out what is causing the crash.
/usr/sbin/mysqld: ready for connections.
top的结果,里面内存总有2G没有用起来
top - 13:30:37 up 5 days, 5:12, 1 user, load average: 11.69, 29.64, 47.17
Tasks: 472 total, 2 running, 470 sleeping, 0 stopped, 0 zombie
Cpu(s): 55.1% us, 35.9% sy, 0.0% ni, 9.0% id, 0.0% wa, 0.0% hi, 0.0% si
Mem: 4154480k total, 1726992k used, 2427488k free, 228616k buffers
Swap: 4008208k total, 0k used, 4008208k free, 1118804k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
12892 mysql 16 0 1362m 151m 2832 S 40.7 3.7 0:12.85 mysqld
13050 mysql 16 0 1362m 151m 2832 S 32.5 3.7 0:09.53 mysqld
12932 mysql 16 0 1362m 151m 2832 S 27.2 3.7 0:12.84 mysqld
12922 mysql 16 0 1362m 151m 2832 R 25.2 3.7 0:09.28 mysqld
12910 mysql 16 0 1362m 151m 2832 S 12.5 3.7 0:07.65 mysqld
13179 mysql 16 0 1362m 151m 2832 S 12.1 3.7 0:06.32 mysqld
13106 mysql 15 0 1362m 151m 2832 S 8.5 3.7 0:08.70 mysqld
12944 mysql 15 0 1362m 151m 2832 S 5.6 3.7 0:03.52 mysqld
13071 mysql 15 0 1362m 151m 2832 S 3.6 3.7 0:07.51 mysqld
13118 mysql 15 0 1362m 151m 2832 S 3.3 3.7 0:11.25 mysqld
12825 mysql 15 0 1362m 151m 2832 S 3.0 3.7 0:10.03 mysqld
12929 mysql 15 0 1362m 151m 2832 S 3.0 3.7 0:12.20 mysqld
13047 mysql 15 0 1362m 151m 2832 S 2.3 3.7 0:04.90 mysqld
12737 mysql 15 0 1362m 151m 2832 S 1.3 3.7 0:07.18 mysqld
12736 mysql 15 0 1362m 151m 2832 S 1.0 3.7 0:05.38 mysqld
13582 root 16 0 2280 1304 820 R 1.0 0.0 0:00.17 top
12745 mysql 15 0 1362m 151m 2832 S 0.3 3.7 0:13.65 mysqld |
|