If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > MySQL Out of Memory Error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-23-09, 10:29
micky126 micky126 is offline
Registered User
 
Join Date: Aug 2009
Posts: 8
MySQL Out of Memory Error

Hi,

Does Anybody help me out in configuring/tuning my MySQL Server.

Here are the details of our physical server:
Microsoft Windows Server 2003
32 bit

Intel Xeon 3.0GHz
RAM 32GB

We are using MySQL Server 5.0
Currently we are running 20 servlets and each instance averages 15000 kb.
We are using inodb tables
We have hundreds of users and Everytime the mysqld-nt process reaches 1,000,000k memory usagem, it crashes. The MySQL service automatically stopped. We are also encountering Unable to create new thread error.

I know I posted this thread several times but until now there were still no clear answers for me. Need some help here..
Reply With Quote
  #2 (permalink)  
Old 04-10-10, 06:19
nancy86 nancy86 is offline
Registered User
 
Join Date: Feb 2010
Posts: 3
The out of memory error means that mysql does not have enough memory to store the entire query result: You might have encountered below mentioned error message -

"mysql: Out of memory at line 42, 'malloc.c'
mysql: needed 8136 byte (8k), memory in use: 12481367 bytes (12189k)
ERROR 2008: MySQL client ran out of memory
"

In order to resolve this issue first check the query if it is correct. Is it reasonable that it should return so many rows? If not, correct the query and try again. Otherwise you need to invoke quick option to resolve the issue. This option will not cache each query result, rather print each row as it is received. If the issue still persists then the only way to resolve the issue is by using MySQL Repair software, which will repair the MySQL database and retain its cache value.

I hope this will help you out.

All the best!
Reply With Quote
  #3 (permalink)  
Old 04-13-10, 04:40
it-iss.com it-iss.com is offline
Registered User
 
Join Date: Sep 2009
Location: San Sebastian, Spain
Posts: 623
Without the actual log message it is difficult to pinpoint where your problem lies. For instance, are you using memory resident tables? Could this be affecting the servers memory usage.
__________________
Ronan Cashell
Senior Oracle/MySQL DBA
http://www.it-iss.com
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On