Solved

MySQL error 4000 - MEMORY ALLOCATION ERROR

Posted on 2012-04-09
1
969 Views
Last Modified: 2012-08-14
Hi all! I've setup a MySQL cluster with 3 servers (1 arbitrator, 2 nodes, the mysqld process is on the same machine as arbitrator), I keep getting error 4000 - MEMORY ALLOCATION ERROR when reading the "vw_users" view. It is a join with a table and a "postal codes" table which has 500k records.

Part of my config:
[ndbd default]
NoOfReplicas = 2
DataDir = /var/lib/mysql-ndb-data
DataMemory = 1G
IndexMemory = 256M
TransactionBufferMemory = 8M
TransactionInactiveTimeout = 2000
MaxNoOfOrderedIndexes = 1024
MaxNoOfAttributes = 10000
MaxNoOfTables = 2500
MaxNoOfConcurrentOperations = 100000
MaxNoOfConcurrentIndexOperations = 100000

Sometimes it works, sometimes it fails. The machines all have 2GB Ram. Am I doing something wrong?

Today, my PHP scripts gave my this error if it is releavant, but I fixed it, it's OK:
Host '10.1.0.1' is blocked because of many connection errors
0
Comment
Question by:alex3948
1 Comment
 

Accepted Solution

by:
alex3948 earned 0 total points
ID: 37848879
Issue has been resolved. This was a very tricky bug in MySQL cluster with pushdown joints. Solution was to call "set ndb_join_pushdown = off" right after the connection and the problem goes away.
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Foreword In the years since this article was written, numerous hacking attacks have targeted password-protected web sites.  The storage of client passwords has become a subject of much discussion, some of it useful and some of it misguided.  Of cou…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question