PHP in Commandline - Segmentation fault (core dump

2019-09-14 02:59发布

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条回答
姐就是有狂的资本
2楼-- · 2019-09-14 03:16

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

查看更多
登录 后发表回答