So, I’ve been building a Kohana CGI script to import over 2 million records of data into my MySQL database. After testing, I started the app. After a few minutes, the app ended with an out of memory error.
Well, this error was specifically related to Kohana.(There were others…) It turns out that the Kohana database library was using up all of the memory.
To fix your app, just adjust the “‘benchmark’ => TRUE,” from TRUE to FALSE and you won’t run out of memory because of the database.