MySQL said: The total number of locks exceeds the lock table size
October 20, 2009 | databasesauthor: Karol Zielinski | comments: 1 | views: 2672
Tags: database, error, innodb, locks, mysql
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…
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:
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.
October 20, 2009, 4:25 am
[...] Karol Zielinski: Just a tech stuff James Wallace: [...]