Hi, i’m running 32bit RedHat version 5 and after long uptime I always ran in problems with RedHat, I never had such problems with Debian which I normally use.
Long uptime:
00:10:01 up 347 days, 21:33, 1 user, load average: 0.77, 0.88, 0.90
I have more than enough free memory but after few days when mysql starts to use more memory it crashes.
total used free shared buffers cached
Mem: 4053 3822 231 0 187 2783
-/+ buffers/cache: 851 3202
Swap: 2047 41 2006
This is from error log, before that I had uptime on mysql around 120 days and I never had problems but after mysql restart and without changing any configuration settings Mysql is having hard time allocating memory.
Number of processes running now: 0
101203 20:40:19 mysqld restarted
101203 20:40:19 [Note] /usr/sbin/mysqld: ready for connections.
Version: ‘5.0.91-community-log’ socket: ‘/var/lib/mysql/mysql.sock’ port: 0 MySQL Community Edition (GPL)
101205 22:50:28 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 1375668 bytes)
101205 22:50:28 [ERROR] Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use$
101205 22:50:28 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 1375668 bytes)
101205 22:50:28 [ERROR] Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use$
101205 22:50:28 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 1375668 bytes)
101205 22:50:28 [ERROR] Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use$
101205 22:50:32 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 1375668 bytes)
101205 22:50:32 [ERROR] Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use$
101205 22:50:32 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 1375668 bytes)
101205 22:50:32 [ERROR] Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use$
101205 22:50:32 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 1375668 bytes)
101205 22:50:32 [ERROR] Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use$
101206 9:01:41 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 1375668 bytes)
101206 9:01:41 [ERROR] Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use$
101206 9:01:41 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 1375668 bytes)
101206 9:01:41 [ERROR] Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use$
101206 9:01:41 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 1375668 bytes)
101206 9:01:41 [ERROR] Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use$
101206 9:01:41 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 1375668 bytes)
101206 9:01:41 [ERROR] Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use$
101206 9:01:41 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 1375668 bytes)
101206 9:01:41 [ERROR] Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use$
101206 9:01:41 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 1375668 bytes)
101206 9:01:41 [ERROR] Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use$
101206 9:01:44 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 1375668 bytes)
101206 9:01:44 [ERROR] Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use$
101206 9:01:44 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 1375668 bytes)
101206 9:01:44 [ERROR] Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use$
101206 9:01:44 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 1375668 bytes)
101206 9:01:44 [ERROR] Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use$
101206 9:01:44 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 1375668 bytes)
101206 9:01:44 [ERROR] Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use$
101206 9:01:44 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 1375668 bytes)
101206 9:01:44 [ERROR] Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use$
101206 9:01:44 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 1375668 bytes)
101206 9:01:44 [ERROR] Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use$
101206 9:01:44 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 1375668 bytes)
101206 9:01:44 [ERROR] Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use$
101206 9:01:53 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 1375668 bytes)
101206 9:01:53 [ERROR] Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use$
101206 9:01:53 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 1375668 bytes)
101206 9:01:53 [ERROR] Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use$
101206 9:01:53 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 1375668 bytes)
101206 9:01:53 [ERROR] Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use$
101206 9:01:53 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 1375668 bytes)
101206 9:01:53 [ERROR] Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use$
101206 9:01:53 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 1375668 bytes)
101206 9:01:53 [ERROR] Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use$
101206 9:01:53 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 1375668 bytes)
101206 9:01:53 [ERROR] Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use$
101206 9:15:39 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 1375668 bytes)
101206 9:15:39 [ERROR] Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use$
101206 9:15:39 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 1375668 bytes)
101206 9:15:39 [ERROR] Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use$
101206 9:15:39 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 1375668 bytes)
101206 9:15:39 [ERROR] Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use$
101206 23:39:10 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 4054792 bytes)
101206 23:39:10 [ERROR] Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use$
101206 23:39:13 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 4054792 bytes)
101206 23:39:13 [ERROR] Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use$
101207 23:00:03 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 2096680 bytes)
101207 23:25:31 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 1375668 bytes)
101207 23:25:31 [ERROR] Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use$
101207 23:25:31 - 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=268435456
read_buffer_size=2097152
max_used_connections=49
max_connections=200
threads_connected=4
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 1081344 K
bytes of memory
Hope that’s ok; if not, decrease some variables in the equation.
thd=0x9e5a4f80
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…
Cannot determine thread, fp=0x9efa68c8, backtrace may not be correct.
Stack range sanity check OK, backtrace follows:
0x81827e5
0x81df06e
0x81df02d
0x81df02d
0x81df02d
0x81df02d
0x81df02d
0x81df02d
0x81e842e
0x81f01a6
0x81f0b5d
0x819aa08
0x81a091d
0x81a0e84
0x81a2e1f
0xb34832
0xa73f6e
New value of fp=(nil) failed sanity check, terminating stack trace!
Please read [URL=“http://MySQL :: MySQL 8.0 Reference Manual :: 5.9.1.5 Using a Stack Trace”]http://dev.mysql.com/doc/mysql/en/using-stack-trace.html[/URL] and follow instructions on how to resolve the stack trace. Res$
stack trace is much more helpful in diagnosing the problem, so please do
resolve it
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort…
thd->query at 0x9c12f018 is invalid pointer
thd->thread_id=1313095
The manual page at [URL=“http://MySQL :: MySQL 8.0 Reference Manual :: B.3.3.3 What to Do If MySQL Keeps Crashing”]http://dev.mysql.com/doc/mysql/en/crashing.html[/URL] contains
information that should help you find out what is causing the crash.
Number of processes running now: 0
101207 23:25:31 mysqld restarted
101207 23:25:31 [Note] /usr/sbin/mysqld: ready for connections.
Version: ‘5.0.91-community-log’ socket: ‘/var/lib/mysql/mysql.sock’ port: 0 MySQL Community Edition (GPL)
101208 21:25:50 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 1441176 bytes)
101208 21:25:50 [ERROR] Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use$
101208 21:25:50 [ERROR] /usr/sbin/mysqld: Out of memory (Needed 1441176 bytes)
101208 21:25:50 [ERROR] Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use$
EDIT: Sorry wrong section, please move it to LAMP.