10up / ElasticPress

A fast and flexible search and query engine for WordPress.
https://elasticpress.io
GNU General Public License v2.0
1.25k stars 312 forks source link

Out of memory errors #656

Closed wpbullet closed 7 years ago

wpbullet commented 7 years ago

I have tried to use Elasticpress on two different sites in the past few days and both throw an out of memory error even if 2 GB is allocated. I am not sure if this is a current bug in ElasticPress or an incompatibility with some plugin. Each site was running PHP7, one was Apache and the other nginx. No object caching was enabled.

Elasticsearch synchronizes without any problems and works on the backend, however on the frontend a 500 error is thrown with a could not allocate 5042 bytes because the 2 GB were exhausted.

Site A

| name                                     | status   | update    | version |
+------------------------------------------+----------+-----------+---------+
| a3-lazy-load                             | active   | none      | 1.7.1   |
| add-tags-and-category-to-page            | active   | none      | 2.1     |
| admin-bar-disabler                       | active   | none      | 1.3     |
| adminer                                  | inactive | none      | 1.4.5   |
| advanced-code-editor                     | active   | none      | 2.2.6   |
| akismet                                  | active   | none      | 3.2     |
| autoptimize                              | inactive | none      | 2.1.0   |
| cloudflare-flexible-ssl1                 | inactive | none      | 1.2.2   |
| code-snippets                            | active   | none      | 2.7.2   |
| woocommerce-subscriptions-pending-fix    | inactive | none      |         |
| db-error-customizer-premium              | active   | none      | 1.2     |
| dequeue-font-awesome                     | active   | none      | 1.1     |
| disable-comments                         | active   | available | 1.5.2   |
| disable-xml-rpc                          | active   | none      | 1.0.1   |
| easy-google-fonts                        | active   | none      | 1.4.1   |
| easy-social-icons                        | inactive | none      | 2.0.2   |
| easy-wp-smtp                             | active   | none      | 1.2.3   |
| elasticpress                             | inactive | none      | 2.1.2   |
| export-users-to-csv                      | active   | none      | 1.0.0   |
| features-by-woothemes                    | active   | none      | 1.5.0   |
| woocommerce-follow-up-emails             | active   | none      | 4.4.16  |
| groups                                   | active   | none      | 1.13.1  |
| groups-woocommerce                       | active   | none      | 1.9.5   |
| members                                  | active   | none      | 1.1.2   |
| modular-custom-css                       | active   | available | 1.0     |
| neatly-woocommerce                       | active   | available | 1.0.0   |
| nextgen-download-gallery__new            | inactive | available | 1.5.2   |
| nextgen-download-gallery                 | active   | available | 1.5.2   |
| nextgen-gallery__new                     | inactive | available | 2.1.56  |
| nextgen-gallery                          | active   | available | 2.1.50  |
| ord-customizations                       | active   | none      | 1.1     |
| wp-premium-image-manager                 | active   | none      |         |
| page-specific-stylesheets                | active   | none      | 1.2.2   |
| per-page-add-to                          | active   | available | 1.3     |
| PW-Advanced-Woocommerce-Reporting-System | active   | none      | 2.2     |
| q-and-a                                  | active   | none      | 1.0.6.2 |
| query-monitor                            | active   | none      | 2.13.2  |
| really-simple-ssl1                       | active   | available | 2.3.14  |
| redis-cache                              | inactive | none      | 1.3.5   |
| remove-google-fonts-references           | inactive | none      | 2.6     |
| restrict-cart-contents                   | active   | none      | 1.1     |
| storefront-parallax-hero                 | active   | none      | 1.5.2   |
| storefront-pricing-tables                | active   | none      | 1.0.3   |
| storefront-product-hero                  | active   | none      | 1.2.7   |
| storefront-woocommerce-customiser        | active   | none      | 1.9.1   |
| sucuri-scanner                           | inactive | none      | 1.8.3   |
| testimonials-by-woothemes                | active   | none      | 1.5.4   |
| theme-test-drive                         | active   | none      | 2.9.1   |
| user-switching                           | active   | none      | 1.0.9   |
| vaultpress                               | active   | none      | 1.8.5   |
| woo-coming-soon                          | active   | none      | 1.2     |
| woocommerce                              | active   | available | 2.6.8   |
| woocommerce-shipstation                  | active   | none      | 4.1.7   |
| woocommerce-colors                       | inactive | none      | 1.0.6   |
| woocommerce-dynamic-pricing              | active   | none      | 2.11.0  |
| woocommerce-gateway-firstdata            | active   | none      | 4.1.7   |
| woocommerce-groups-splash-page           | active   | none      | 1.0.0   |
| woothemes-updater                        | active   | none      | 1.7.1   |
| woocommerce-nested-category-layout       | active   | none      | 1.9.0   |
| woocommerce-pip                          | inactive | none      | 3.0.0   |
| woocommerce-quick-export-plugin          | active   | none      | 2.1.2   |
| woocommerce-smart-coupons                | active   | none      | 3.1.7   |
| woocommerce-subscriptions                | active   | none      | 2.0.20  |
| woocommerce-table-rate-shipping          | inactive | none      | 2.9.2   |
| woocommerce-shipping-usps                | active   | none      | 4.3.2   |
| woodojo                                  | active   | none      | 1.5.4   |
| wordpress-importer                       | active   | none      | 0.6.3   |
| wp-crontrol                              | active   | none      | 1.3.1   |
| wp-maintenance-mode                      | active   | available | 2.0.8   |
| wp-security-audit-log                    | active   | available | 2.5.7   |
| wordpress-seo                            | active   | available | 3.7.1   |
| zencache                                 | inactive | none      | 160316  |
| p3-profiler                              | must-use | none      |         |
+------------------------------------------+----------+-----------+---------+

Site B

| name                                         | status   | update | version   |
+----------------------------------------------+----------+--------+-----------+
| adminimize                                   | active   | none   | 1.10.6    |
| admin-menu-editor-pro                        | active   | none   | 2.4.1     |
| advanced-cron-manager                        | active   | none   | 1.4.3     |
| akismet                                      | inactive | none   | 3.2       |
| cdn-enabler                                  | inactive | none   | 1.0.3     |
| tiny-compress-images                         | active   | none   | 2.1.0     |
| contact-form-7                               | active   | none   | 4.5.1     |
| debug-bar                                    | inactive | none   | 0.8.4     |
| debug-bar-actions-and-filters-addon          | inactive | none   | 1.5.1     |
| debug-bar-slow-actions                       | inactive | none   | 0.8.3     |
| disable-wordpress-updates                    | active   | none   | 1.4.8     |
| woocommerce-doyoudeliver                     | active   | none   | 1.2       |
| duplicate-post                               | active   | none   | 3.0.3     |
| duplicator-pro                               | inactive | none   | 3.0.16    |
| dynamic-featured-image                       | active   | none   | 3.5.2     |
| elasticpress                                 | inactive | none   | 2.1.2     |
| envato-market                                | inactive | none   | 1.0.0-RC2 |
| envato-wordpress-toolkit                     | inactive | none   | 1.7.3     |
| header-footer                                | active   | none   | 2.0.3     |
| myolg-mods                                   | active   | none   | 1.0.0     |
| checkout-fees-for-woocommerce                | active   | none   | 2.1.1     |
| porto-content-types                          | active   | none   | 1.3       |
| porto-shortcodes                             | active   | none   | 1.6       |
| porto-widgets                                | active   | none   | 1.3       |
| postman-smtp                                 | active   | none   | 1.7.2     |
| pb-add-on-woocommerce                        | active   | none   | 1.4.2     |
| profile-builder-pro                          | active   | none   | 2.4.9     |
| query-monitor                                | active   | none   | 2.13.2    |
| regenerate-thumbnails                        | active   | none   | 2.2.6     |
| screets-lc                                   | inactive | none   | 2.2.5     |
| server-ip-memory-usage                       | active   | none   | 1.3.3     |
| simple-custom-css                            | active   | none   | 3.3       |
| revslider                                    | active   | none   | 5.3.0.1   |
| ssl-insecure-content-fixer                   | active   | none   | 2.2.0     |
| user-role-editor-pro                         | active   | none   | 4.28.2    |
| w3-total-cache                               | active   | none   | 0.9.5.1   |
| woocommerce                                  | active   | none   | 2.6.6     |
| woocommerce-advanced-shipping                | active   | none   | 1.0.11    |
| iconic-woo-attribute-swatches                | active   | none   | 1.0.3     |
| woocommerce-checkout-add-ons                 | active   | none   | 1.8.2     |
| jck_woo_deliveryslots                        | active   | none   | 1.7.2     |
| woocommerce-gateway-purchase-order           | active   | none   | 1.1.3     |
| woocommerce-role-based-price                 | active   | none   | 2.8.8     |
| woocommerce-shop-as-customer                 | active   | none   | 2.03      |
| woocommerce-gateway-westpac-payway-api       | active   | none   | 1.2       |
| woocommerce-wishlists                        | active   | none   | 1.11.1    |
| iconic-woothumbs                             | active   | none   | 4.5.2     |
| wpai-woocommerce-add-on                      | inactive | none   | 2.3.1     |
| wp-all-import-pro                            | inactive | none   | 4.3.2     |
| js_composer                                  | active   | none   | 4.12.1    |
| wp-rocket                                    | inactive | none   | 2.8.23    |
| wp-sitemap-page                              | active   | none   | 1.6       |
| yith-woocommerce-ajax-product-filter-premium | active   | none   | 3.0.12    |
| yith-woocommerce-ajax-search-premium         | active   | none   | 1.4.7     |
| yith-woocommerce-customize-myaccount-page    | active   | none   | 1.1.1     |
| yith-woocommerce-custom-order-status-premium | active   | none   | 1.0.19    |
| yith-woocommerce-email-templates-premium     | active   | none   | 1.2.6     |
+----------------------------------------------+----------+--------+-----------+
tlovett1 commented 7 years ago

Can you trace the error?

wpbullet commented 7 years ago

I couldn't trace the error unfortunately, I just got the out of memory errors. I'm a sysadmin not a php dev so I limit myself to error messages and log files.