Windows Server MySQL out of memory (Needed 8164 bytes) Error resolution

Source: Internet
Author: User
Tags ini

Error prompts as follows

Event Type: Error
Event Source: MySQL
Event Type: None
Event id:100
Date: 2016-11-10
Event: 2:06:28
Users: N/A
Computer: v01-e18af3a005d
Describe:
D:\bin\mysqld:out of memory (Needed 8164 bytes)

For more information, the Support Center at http://www.mysql.com.

Read the brochure:
[Url]http://dev.mysql.com/doc/refman/5.1/en/memory-storage-engine.html[/url]
At first I changed the value of the query_cache_size.
I don't think so.
After
Increases the value of the Query_cache_limit.
and Max_heap_table_size.
and tmp_table_size values.
Because we use a lot of preprocessing statements in our stored procedures. And the result of the statement is very large.
At first my results:
Mysql> Show variables like ' max_heap_table_size ';
+---------------------------------+----------------------+
| variable_name | Value |
+---------------------------------+----------------------+
| Max_heap_table_size | 16777216 |
+---------------------------------+----------------------+

Mysql> Show variables like ' tmp_table_size ';
+---------------------------------+----------------------+
| variable_name | Value |
+---------------------------------+----------------------+
| Tmp_table_size | 16777216 |
+---------------------------------+----------------------+

I changed the my.cnf file.

Mysql> Show variables like ' max_heap_table_size ';
+---------------------------------+----------------------+
| variable_name | Value |
+---------------------------------+----------------------+
| Max_heap_table_size | 67108864 |
+---------------------------------+----------------------+

Mysql> Show variables like ' tmp_table_size ';
+---------------------------------+----------------------+
| variable_name | Value |
+---------------------------------+----------------------+
| Tmp_table_size | 67108864 |
+---------------------------------+----------------------+

Of course we know that MySQL defaults to give us a few configurations, we can through other configuration file to make an adjustment, as follows.

1, My-small.ini is designed for small databases. This model should not be used for databases that contain some common items. The
2, My-medium.ini is designed for medium sized databases. If you are using Rhel in your enterprise, you may have significantly more physical memory than the minimum RAM requirement (256MB) for this operating system. This shows that if you have so much RAM memory available, you can naturally run other services on the same machine.
3, My-large.ini is designed for computers that are dedicated to one SQL database. Because it can use up to 512MB of memory for the database, at least 1GB of RAM is required on this type of system so that it can handle both the operating system and the database application.
4, My-huge.ini is designed for databases in the enterprise. Such databases require dedicated servers and more than 1GB or 1GB of RAM.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.