[eluser]Narf[/eluser]
PHP itself takes a half of that. When the PHP binary is executed, by default
all of its compiled modules will be loaded as well. The more extras you have - the more memory they will eat.
Also, exactly for the purposes of profiling, in order to be able to display database queries, CodeIgniter will store them all in a property. Again, this is by default and you can turn it off:
Code:
$this->db->save_queries = FALSE;
... or in your config/database.php:
Code:
$config['default']['save_queries'] = FALSE;
Additionally, in order to prevent repeating calls to a database - results from them are cached in the DB_result objects as well. So unless you unset those and if you're dealing with large chunks of data - it is normal that it takes up some memory.