LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-19-2005, 10:27 AM   #1
Baltasar
Member
 
Registered: Jan 2004
Distribution: Fedora & Debian
Posts: 43

Rep: Reputation: 15
MySQL Innodb troubles


Hi,

I'm running MySQL 3.23.xx on a server about 10 months without a problem, but today the service just stopped. I looked in the mysql.log and noticed that the service tried to restart itself without any user intervened
Then i tried to start the service again, but it failed becaus mysql could not bind to /var/lib/mysql/mysql.sock. After two attempts to start the service i get a useful entry in the mysql.log:
Code:
050419 14:16:23  mysqld started
InnoDB: Fatal error: cannot allocate 367017984 bytes of
InnoDB: memory with malloc! Total allocated memory
InnoDB: by InnoDB 25282872 bytes. Operating system errno: 12
InnoDB: Cannot continue operation!
InnoDB: Check if you should increase the swap file or
InnoDB: ulimits of your operating system.
InnoDB: On FreeBSD check you have compiled the OS with
InnoDB: a big enough maximum process size.
InnoDB: We now intentionally generate a seg fault so that
InnoDB: on Linux we get a stack trace.
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=8388600
record_buffer=131072
sort_buffer=2097144
max_used_connections=0
max_connections=500
threads_connected=0
It is possible that mysqld could use up to
key_buffer_size + (record_buffer + sort_buffer)*max_connections = 1096188 K
bytes of memory
Hope that's ok, if not, decrease some variables in the equation

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...
Bogus stack limit or frame pointer, fp=0xbff00e0c, stack_bottom=0x3020100, thread_stack=65536, aborting backtrace.
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort...
thd->query at 0x7f8e7f90  is invalid pointer
thd->thread_id=0

Successfully dumped variables, if you ran with --log, take a look at the
details of what thread 0 did to cause the crash.  In some cases of really
bad corruption, the values shown above may be invalid

The manual page at http://www.mysql.com/doc/C/r/Crashing.html contains
information that should help you find out what is causing the crash
050419 14:16:25  mysqld ended
I remembered when i setup mysql on the server i configured also mysql to use InnoDB, but never used it.
The values in my.cnf are:
innodb_data_file_path = ibdata1:50M:autoextend
set-variable = innodb_buffer_pool_size=350M
set-variable = innodb_additional_mem_pool_size=20M

For a quick solution i added skip-innodb to my.cnf and the mysql service went back online
But i want to know what happened so i can avoid such downtime.
BTW, the ibdata1 has exectly 50M now. Has the ibdata1 reached the maximum file size or was it created with 50M the first time i started mysql with innodb values?


Thank you in advance!
Baltasar
 
Old 04-20-2005, 09:01 AM   #2
Baltasar
Member
 
Registered: Jan 2004
Distribution: Fedora & Debian
Posts: 43

Original Poster
Rep: Reputation: 15
Is nobody familiar with mysql who could help me?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL & InnoDB riluve Linux - Software 0 03-13-2005 09:19 PM
Help mysql innodb recovery from .frm pig.2003 SUSE / openSUSE 0 11-10-2004 03:25 AM
Help mysql innodb recovery from .frm pig.2003 Linux - Software 0 11-10-2004 02:35 AM
mysql troubles! cav Slackware 2 02-07-2004 03:25 AM
InnoDB problem with MySQL jerry_redhat Linux - Software 2 07-09-2003 12:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration