At the end of all (104) modules etc getting installed without problems I run into the following error:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 3 bytes) in /home/quickstart/websites/martplug.test/profiles/martplug/modules/features/martplug_sample_content/martplug_sample_content.features.content.inc on line 8182 Call Stack: 0.0004 647576 1. {main}() /home/quickstart/websites/martplug.test/install.php:0 0.0085 1298440 2. install_drupal() /home/quickstart/websites/martplug.test/install.php:26 0.2325 13701136 3. install_run_tasks() /home/quickstart/websites/martplug.test/includes/install.core.inc:79 1.2560 57468640 4. install_run_task() /home/quickstart/websites/martplug.test/includes/install.core.inc:342 1.2571 57635656 5. _batch_page() /home/quickstart/websites/martplug.test/includes/install.core.inc:452 1.2578 57674472 6. _batch_finished() /home/quickstart/websites/martplug.test/includes/batch.inc:89 1.2597 57817768 7. _install_profile_modules_finished() /home/quickstart/websites/martplug.test/includes/batch.inc:463 1.2597 57817768 8. drupal_flush_all_caches() /home/quickstart/websites/martplug.test/includes/install.core.inc:1540 4.4593 97827528 9. module_invoke_all() /home/quickstart/websites/martplug.test/includes/common.inc:7165 6.9519 122197488 10. call_user_func_array() /home/quickstart/websites/martplug.test/includes/module.inc:818 6.9519 122197856 11. features_flush_caches() /home/quickstart/websites/martplug.test/includes/module.inc:0 6.9519 122197856 12. features_rebuild() /home/quickstart/websites/martplug.test/profiles/martplug/modules/contrib/features/features.module:216 6.9519 122198304 13. _features_restore() /home/quickstart/websites/martplug.test/profiles/martplug/modules/contrib/features/features.module:808 6.9843 123339520 14. features_get_component_states() /home/quickstart/websites/martplug.test/profiles/martplug/modules/contrib/features/features.module:770 7.0023 124105480 15. features_get_signature() /home/quickstart/websites/martplug.test/profiles/martplug/modules/contrib/features/features.export.inc:720 7.0023 124105560 16. features_get_default() /home/quickstart/websites/martplug.test/profiles/martplug/modules/contrib/features/features.export.inc:504 7.0023 124105560 17. features_include_defaults() /home/quickstart/websites/martplug.test/profiles/martplug/modules/contrib/features/features.export.inc:593 7.0044 124151664 18. module_load_include() /home/quickstart/websites/martplug.test/profiles/martplug/modules/contrib/features/features.module:368
When loading the site I get:
Notice: Undefined index: menu-shop in menu_block_view() (line 469 of /home/quickstart/websites/martplug.test/modules/menu/menu.module).
Notice: Undefined index: menu-about in menu_block_view() (line 469 of /home/quickstart/websites/martplug.test/modules/menu/menu.module).
Notice: Undefined index: menu-legal in menu_block_view() (line 469 of /home/quickstart/websites/martplug.test/modules/menu/menu.module).
setting memory in php-apache.ini to infinitive (memory_limit = -1) clears the problem. But something is generating a lot of bytes :)
Yay! Martplug installed!
Comments
Comment #1
webchickI got this too (well, an HTTP error 500 during install and then WSODs everywhere after) with 64M of memory, though memory_limit = 128M was enough to get things installed for me.
I think it'd be great if the profile had a requirements check for RAM so you didn't get stuck.
Comment #2
recidive commentedOk, so this is not just an issue with install phase? How can we measure install and runtime memory usage? Is there any best practices for this?
Comment #3
webchickNo, I think it is related to install phase from both of us.
In terms of best practices, I'm not sure. I usually experiment by gradually incrementing up my memory_limit until something works. But last night I was in a hurry so I just doubled it, and it worked. :)
Comment #4
phoranje commentedWhen I installed the profile it ended after 104/104 with an exhausted memory error.
After out commenting the last feature in martplug.info (dependencies[] = martplug_sample_content) the install finished okay.
So the greediness lies probably in this step of the install process.
Comment #5
recidive commentedYes, I think this is related to Default Content module loading all images and text to memory when creating sample contents.
Comment #6
banditcakes commentedYou need at least 512mb to run successfully
Comment #7
kenorb commented