PHP in Commandline - Segmentation fault (core dumped) - Debug while running phpindexer.php in Magento

早过忘川 提交于 2019-12-12 05:50:10

问题


I'm running a script in commandline. It runs for about 5 minutes and then returns Segmentation fault (core dumped)

The script is a Magento reindexing script. Found in /shell for those familiar with the platform

Command line script running is php indexer.php --reindex catalog_url

It just throws Segmentation fault (core dumped) - I don't know where to look for any more info than that?


回答1:


It seems like the script is running out of the memory. Magento native UrlRewrite indexer is quite slow and using a lot of memory. If you have 26k products and a lot of categories it might produce a segmentation fault.

You can try alternative Url Rewrite indexer that is using much less memory and takes much less time than core one, because performing all the operations on database level. But it requires privileges for creation and using of stored routines to work properly. Also it is strictly recommended to try it on dev environment first, to see that it will not be broken, since sometimes developers adding invalid records to core_url_rewrite table that breaking some operations.

The extension can be found by the following url: http://www.ecomdev.org/2011/10/08/ecomdev-breaks-magento-speed-limits.html



来源:https://stackoverflow.com/questions/12191996/php-in-commandline-segmentation-fault-core-dumped-debug-while-running-phpi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!