Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Category Save with 3000+ products doesn't complete and shows blank page #10987

Closed
sayan-gitkid opened this issue Sep 21, 2017 · 4 comments
Closed
Labels
Component: CatalogUrlRewrite Fixed in 2.2.x The issue has been fixed in 2.2 release line Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release

Comments

@sayan-gitkid
Copy link

sayan-gitkid commented Sep 21, 2017

Preconditions

  1. Magento CE 2.1.7
  2. PHP php5.6.25 (php.ini configs memory_limit = 7000M, mysql.connect_timeout = -1)
  3. mysql5.7.14

Steps to reproduce

  1. Clean install of Magento CE 2.1.7
  2. Create 4000+simple products and assign them to categories with 4-5 level deep categories randomly. A product belongs to 5-15 categories.
  3. Import products successfully.
  4. Save a category below Default Category containing more than 4000+ produts

Expected result

  1. Category saved successfully.

Actual result

  1. [Screenshot, logs] Category takes long time to save and request timeouts.
  2. php error_log
    [21-Sep-2017 07:39:20 UTC] PHP Fatal error: Allowed memory size of 805306368 bytes exhausted (tried to allocate 64 bytes)
@magento-engcom-team magento-engcom-team added the Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed label Sep 21, 2017
@orlangur
Copy link
Contributor

This is due to poor URL Rewrites performance, tracked as MAGETWO-69145 internally according to #10242 (comment).

Not sure if it works better already on Magento 2.2.0 branch.

@magento-engcom-team magento-engcom-team added the Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed label Sep 21, 2017
@sayan-gitkid
Copy link
Author

@orlangur Thanks for the info. Yes, it seems the issue is UrlRewrites. Just checked the mysql query log and found that the db rolls back after query to url_rewrites. Will try the same sample data in magento 2.2.0 and check it.

@sayan-gitkid
Copy link
Author

@orlangur Tested the same product, category files in Magento 2.1.9, and Magento 2.2.0 rc-3 and the url_rewrite performance has improved. The category save is working fine.

@orlangur
Copy link
Contributor

@sayan-gitkid thanks for testing! Closing as the fix for this issue is already available on Magento 2.2.0 branch which will be released really soon.

Not sure if needed changes could be backported at all due to BC constraints.

@orlangur orlangur added Fixed in 2.2.x The issue has been fixed in 2.2 release line Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release labels Sep 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: CatalogUrlRewrite Fixed in 2.2.x The issue has been fixed in 2.2 release line Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release
Projects
None yet
Development

No branches or pull requests

3 participants