... because from time to time I'm a web developer, too
About me
Projects
Contact
Links

MySQL said: The total number of locks exceeds the lock table size

October 20, 2009 | databases
author: Karol Zielinski | comments: 1 | views: 2672
Tags: , , , ,

Two days ago I checked logs of my MySQL server and saw an error: “The total number of locks exceeds the lock table size”. What’s that and how to solve the problem?

At first… some official informations:

The size in bytes of the memory buffer InnoDB uses to cache data and indexes of its tables. The default value is 8MB. The larger you set this value, the less disk I/O is needed to access data in tables. On a dedicated database server, you may set this to up to 80% of the machine physical memory size. However, do not set it too large because competition for physical memory might cause paging in the operating system.

So…

  1. This is an error specific to InnoDB tables.
  2. We need to change “innodb_buffer_pool_size” variable in our /etc/mysql/my.cnf.
  3. 80% is for dedicated database servers, so I will change it to 256M.

So… let fix it:

vim /etc/mysql/my.cnf

and put

innodb_buffer_pool_size=256M

under the line with [mysqld].

Now… restart MySQL and everything should be fine.

More informations:

Bookmark and Share
Post MySQL said: The total number of locks exceeds the lock table size to develway Post MySQL said: The total number of locks exceeds the lock table size to Delicious Post MySQL said: The total number of locks exceeds the lock table size to Digg Post MySQL said: The total number of locks exceeds the lock table size to Facebook Post MySQL said: The total number of locks exceeds the lock table size to Reddit Post MySQL said: The total number of locks exceeds the lock table size to StumbleUpon

Related news and resources

Comments (1)

4Avatars v0.3.1 v0.3.1
MySQL Error 1206 « Mike R's Blog
October 20, 2009, 4:25 am

[...] Karol Zielinski: Just a tech stuff James Wallace: [...]

Write a comment

Karol Zielinski :: Just a tech stuff Hello, I'm Karol Zielinski, internet evangelist, an entrepreneur, project manager and a web developer from Gdynia, Poland. I like creative design, good advertisement, social media and all kind of stuff around the web.

Most popular posts

Much more links

Karol Zielinski    |   contact me
Gdynia, Poland
RSS - Just a tech stuff - python, java blog - web development blog Karol Zielinski on twitter Karol Zielinski on LinkedIn Karol Zielinski on facebook Karol Zielinski on delicious Karol Zielinski on digg Karol Zielinski on flickr Karol Zielinski on stumbleupon Karol Zielinski on technorati