2

我正在尝试从 Magento 2 导出大约 5500 种产品,但收到 503 错误。我已将 PHP 内存限制增加到 2GBphp.ini.htaccess

.htaccess
    php_value memory_limit 2048M
    php_value max_execution_time 372000

Apache 也已重新启动。但我仍然收到503 error. 我该如何解决这个问题?我从 system.log 收到的最后一个已知错误是

[2018-02-27 10:01:55] main.WARNING: Memory size allocated for the temporary table is more than 20% of innodb_buffer_pool_size. Please update innodb_buffer_pool_size or decrease batch size value (which decreases memory usages for the temporary table). Current batch size: 100000; Allocated memory size: 2300000000 bytes; InnoDB buffer pool size: 6442450944 bytes.

我已经按照 magento2 的建议解决了这个问题,减少了 catalog_category_product 的批量大小

magento 目录中似乎没有记录任何错误,但 503 错误似乎仍然发生在产品导出上。该文件最终会出现在数据库中以供下载,但导出时不会自动下载。

在导出大约 30 秒后,我看到了这个错误。

Service Unavailable由于维护停机或容量问题,服务器暂时无法为您的请求提供服务。请稍后再试。

4

0 回答 0