• Resolved erwang

    (@erwang)


    Hi, I m currently facing a big problem on my website. I got random WSOD and I think it’s due to DB overloading.

    Using Query monitor I can see that a single product page create 300 query. In PhpqMyadmin I also see “ø per hour: 14,153,260” … Not an expert but that look pretty bad.

    My website is really small as you can see, it doesn’t generate a lot of traffic and I don’t now how to investigate further…

    Any help or idea is welcomed !

    Thanks

    ### WordPress Environment ###WordPress address (URL): https://cleauline.frSite address (URL): https://cleauline.frWC Version: 9.8.1Legacy REST API Package Version: L’extension Legacy REST API n’est pas installée sur ce site.Action Scheduler Version: ✔ 3.9.2Log Directory Writable: ✔WP Version: ❌ 6.7.2 - Une nouvelle version de WordPress est disponible (6.8)WP Multisite: –WP Memory Limit: 768 MoWP Debug Mode: –WP Cron: ✔Language: fr_FRExternal object cache: –### Server Environment ###Server Info: Apache/2.4.62 (Debian)PHP Version: 8.3.20PHP Post Max Size: 673 MoPHP Time Limit: 70PHP Max Input Vars: 16384cURL Version: 7.74.0OpenSSL/1.1.1wSUHOSIN Installed: –MySQL Version: 10.11.11-MariaDB-deb12Max Upload Size: 672 MoDefault Timezone is UTC: ✔fsockopen/cURL: ✔SoapClient: ✔DOMDocument: ✔GZip: ✔Multibyte String: ✔Remote Post: ✔Remote Get: ✔### Database ###WC Database Version: 9.8.1WC Database Prefix: wpgh_Taille totale de la base de données: 59.87MBTaille de la base de données: 55.43MBTaille de l’index: 4.44MBwpgh_woocommerce_sessions: Données : 0.25MB + Index : 0.02MB + Moteur InnoDBwpgh_woocommerce_api_keys: Données : 0.02MB + Index : 0.03MB + Moteur InnoDBwpgh_woocommerce_attribute_taxonomies: Données : 0.02MB + Index : 0.02MB + Moteur InnoDBwpgh_woocommerce_downloadable_product_permissions: Données : 0.02MB + Index : 0.06MB + Moteur InnoDBwpgh_woocommerce_order_items: Données : 0.02MB + Index : 0.02MB + Moteur InnoDBwpgh_woocommerce_order_itemmeta: Données : 0.06MB + Index : 0.03MB + Moteur InnoDBwpgh_woocommerce_tax_rates: Données : 0.02MB + Index : 0.06MB + Moteur InnoDBwpgh_woocommerce_tax_rate_locations: Données : 0.02MB + Index : 0.03MB + Moteur InnoDBwpgh_woocommerce_shipping_zones: Données : 0.02MB + Index : 0.00MB + Moteur InnoDBwpgh_woocommerce_shipping_zone_locations: Données : 0.02MB + Index : 0.03MB + Moteur InnoDBwpgh_woocommerce_shipping_zone_methods: Données : 0.02MB + Index : 0.00MB + Moteur InnoDBwpgh_woocommerce_payment_tokens: Données : 0.02MB + Index : 0.02MB + Moteur InnoDBwpgh_woocommerce_payment_tokenmeta: Données : 0.02MB + Index : 0.03MB + Moteur InnoDBwpgh_woocommerce_log: Données : 0.02MB + Index : 0.02MB + Moteur InnoDBwpgh_actionscheduler_actions: Données : 1.52MB + Index : 0.69MB + Moteur InnoDBwpgh_actionscheduler_claims: Données : 0.02MB + Index : 0.02MB + Moteur InnoDBwpgh_actionscheduler_groups: Données : 0.02MB + Index : 0.02MB + Moteur InnoDBwpgh_actionscheduler_logs: Données : 1.52MB + Index : 0.48MB + Moteur InnoDBwpgh_addonlibrary_addons: Données : 0.17MB + Index : 0.00MB + Moteur InnoDBwpgh_addonlibrary_categories: Données : 0.02MB + Index : 0.00MB + Moteur InnoDBwpgh_commentmeta: Données : 0.00MB + Index : 0.00MB + Moteur MyISAMwpgh_comments: Données : 0.01MB + Index : 0.01MB + Moteur MyISAMwpgh_e_events: Données : 0.02MB + Index : 0.02MB + Moteur InnoDBwpgh_links: Données : 0.00MB + Index : 0.00MB + Moteur MyISAMwpgh_lws_cl_ignore: Données : 0.02MB + Index : 0.00MB + Moteur InnoDBwpgh_options: Données : 8.57MB + Index : 0.14MB + Moteur MyISAMwpgh_postmeta: Données : 23.53MB + Index : 0.56MB + Moteur MyISAMwpgh_posts: Données : 17.65MB + Index : 0.16MB + Moteur MyISAMwpgh_pp_activity_logs: Données : 0.02MB + Index : 0.00MB + Moteur InnoDBwpgh_sib_model_forms: Données : 0.02MB + Index : 0.00MB + Moteur InnoDBwpgh_sib_model_users: Données : 0.02MB + Index : 0.00MB + Moteur InnoDBwpgh_smush_dir_images: Données : 0.02MB + Index : 0.03MB + Moteur InnoDBwpgh_statistics_events: Données : 0.02MB + Index : 0.05MB + Moteur InnoDBwpgh_statistics_exclusions: Données : 0.02MB + Index : 0.03MB + Moteur InnoDBwpgh_statistics_historical: Données : 0.02MB + Index : 0.03MB + Moteur InnoDBwpgh_statistics_pages: Données : 0.02MB + Index : 0.08MB + Moteur InnoDBwpgh_statistics_useronline: Données : 0.02MB + Index : 0.02MB + Moteur InnoDBwpgh_statistics_visit: Données : 0.02MB + Index : 0.02MB + Moteur InnoDBwpgh_statistics_visitor: Données : 0.06MB + Index : 0.13MB + Moteur InnoDBwpgh_statistics_visitor_relationships: Données : 0.06MB + Index : 0.03MB + Moteur InnoDBwpgh_termmeta: Données : 0.00MB + Index : 0.01MB + Moteur MyISAMwpgh_terms: Données : 0.00MB + Index : 0.01MB + Moteur MyISAMwpgh_term_relationships: Données : 0.01MB + Index : 0.02MB + Moteur MyISAMwpgh_term_taxonomy: Données : 0.01MB + Index : 0.01MB + Moteur MyISAMwpgh_usermeta: Données : 0.04MB + Index : 0.03MB + Moteur MyISAMwpgh_users: Données : 0.00MB + Index : 0.01MB + Moteur MyISAMwpgh_wc_admin_notes: Données : 0.06MB + Index : 0.00MB + Moteur InnoDBwpgh_wc_admin_note_actions: Données : 0.05MB + Index : 0.02MB + Moteur InnoDBwpgh_wc_category_lookup: Données : 0.02MB + Index : 0.00MB + Moteur InnoDBwpgh_wc_customer_lookup: Données : 0.02MB + Index : 0.03MB + Moteur InnoDBwpgh_wc_download_log: Données : 0.02MB + Index : 0.03MB + Moteur InnoDBwpgh_wc_orders: Données : 0.02MB + Index : 0.11MB + Moteur InnoDBwpgh_wc_orders_meta: Données : 0.06MB + Index : 0.11MB + Moteur InnoDBwpgh_wc_order_addresses: Données : 0.02MB + Index : 0.06MB + Moteur InnoDBwpgh_wc_order_coupon_lookup: Données : 0.02MB + Index : 0.03MB + Moteur InnoDBwpgh_wc_order_operational_data: Données : 0.02MB + Index : 0.03MB + Moteur InnoDBwpgh_wc_order_product_lookup: Données : 0.02MB + Index : 0.06MB + Moteur InnoDBwpgh_wc_order_stats: Données : 0.02MB + Index : 0.05MB + Moteur InnoDBwpgh_wc_order_tax_lookup: Données : 0.02MB + Index : 0.03MB + Moteur InnoDBwpgh_wc_product_attributes_lookup: Données : 0.02MB + Index : 0.02MB + Moteur InnoDBwpgh_wc_product_download_directories: Données : 0.02MB + Index : 0.02MB + Moteur InnoDBwpgh_wc_product_meta_lookup: Données : 0.05MB + Index : 0.11MB + Moteur InnoDBwpgh_wc_rate_limits: Données : 0.02MB + Index : 0.02MB + Moteur InnoDBwpgh_wc_reserved_stock: Données : 0.02MB + Index : 0.00MB + Moteur InnoDBwpgh_wc_stancer_card: Données : 0.02MB + Index : 0.03MB + Moteur InnoDBwpgh_wc_stancer_customer: Données : 0.02MB + Index : 0.03MB + Moteur InnoDBwpgh_wc_stancer_payment: Données : 0.02MB + Index : 0.03MB + Moteur InnoDBwpgh_wc_stancer_subscription: Données : 0.02MB + Index : 0.02MB + Moteur InnoDBwpgh_wc_tax_rate_classes: Données : 0.02MB + Index : 0.02MB + Moteur InnoDBwpgh_wc_webhooks: Données : 0.02MB + Index : 0.02MB + Moteur InnoDBwpgh_wdp_orders: Données : 0.02MB + Index : 0.05MB + Moteur InnoDBwpgh_wdp_order_items: Données : 0.02MB + Index : 0.06MB + Moteur InnoDBwpgh_wdp_persistent_rules_cache: Données : 0.02MB + Index : 0.00MB + Moteur InnoDBwpgh_wdp_rules: Données : 0.02MB + Index : 0.03MB + Moteur InnoDBwpgh_wpforms_logs: Données : 0.02MB + Index : 0.00MB + Moteur InnoDBwpgh_wpforms_payments: Données : 0.02MB + Index : 0.14MB + Moteur InnoDBwpgh_wpforms_payment_meta: Données : 0.02MB + Index : 0.05MB + Moteur InnoDBwpgh_wpforms_tasks_meta: Données : 0.02MB + Index : 0.00MB + Moteur InnoDBwpgh_wpml_mails: Données : 0.44MB + Index : 0.03MB + Moteur InnoDBwpgh_yoast_indexable: Données : 0.09MB + Index : 0.09MB + Moteur InnoDBwpgh_yoast_indexable_hierarchy: Données : 0.02MB + Index : 0.05MB + Moteur InnoDBwpgh_yoast_migrations: Données : 0.02MB + Index : 0.02MB + Moteur InnoDBwpgh_yoast_primary_term: Données : 0.02MB + Index : 0.03MB + Moteur InnoDBwpgh_yoast_seo_links: Données : 0.06MB + Index : 0.03MB + Moteur InnoDB### Post Type Counts ###attachment: 176custom_css: 2customize_changeset: 25elementor_library: 1et_header_layout: 4et_template: 8et_theme_builder: 1nav_menu_item: 19page: 18popup: 2popup_theme: 8post: 2product: 23product_variation: 187revision: 153shop_coupon: 3shop_order: 6shop_order_placehold: 26shopengine-template: 1wcpa_pt_forms: 1wp_global_styles: 3wp_navigation: 1wpforms: 1yaymail_template: 12### Security ###Secure connection (HTTPS): ✔Hide errors from visitors: ✔### Active Plugins (32) ###Tarification dynamique avancée pour WooCommerce: par AlgolPlus – 4.9.5Advanced Product Fields for WooCommerce: par StudioWombat – 1.6.13Titan Anti-spam & Security: par CreativeMotion – 7.3.8Blocksy Companion: par CreativeThemes – 2.0.95Elementor: par Elementor.com – 3.27.7Error Log Monitor: par Janis Elsts – 1.7.11Flexible Shipping: par Octolize – 6.0.0Font Awesome: par Font Awesome – 5.0.1Health Check & Troubleshooting: par La communauté WordPress – 1.7.1Local Google Fonts: par EverPress – 0.23.0LWS Cleaner: par LWS – 2.4.1.3LWS Hide Login: par LWS – 2.2.4LWS Optimize: par LWS – 3.2.4.3LWS Tools: par LWS – 2.4.9Newsletter, SMTP, Email marketing and Subscribe forms by Brevo: par Brevo – 3.1.97Password Protected: par Password Protected – 2.7.8Plugins Garbage Collector (Database Cleanup) Old!: par Vladimir Garagulya – 0.14Popup Maker: par Popup Maker – 1.20.4Query Monitor: par John Blackbourn – 3.17.2Remove Product Content for WooCommerce: par wpArtisan – 1.0.1Stancer: par Stancer – 1.3.0Unlimited Elements for Elementor: par Unlimited Elements – 1.5.144Chronopost & Mondial relay pour WooCommerce - WCMultiShipping: par Mondial Relay WooCommerce - WCMultiShipping – 2.5.5Woo Coming Soon: par Fahad Mahmood – 1.4.7WooCommerce: par Automattic – 9.8.1Yoast SEO: par L’équipe Yoast – 24.9WP CLI Login Command Server: par Evan Mattson – 1.3WP Crontrol: par John Blackbourn – 1.18.0WP Mail Logging: par WP Mail Logging Team – 1.14.0Smush: par WPMU DEV – 3.18.0WP Statistics: par VeronaLabs – 14.13.1WPForms Lite: par WPForms – 1.9.4.2### Inactive Plugins (1) ###LWSCache: par LWS – 2.8.5### Dropin Plugins () ###db.php: Query Monitor Database Class (Drop-in)### Settings ###Legacy API Enabled: –Force SSL: –Currency: EUR (€)Currency Position: right_spaceThousand Separator: Decimal Separator: ,Number of Decimals: 2Taxonomies: Product Types: simple (simple)variable (variable)Taxonomies: Product Visibility: outofstock (outofstock)Connected to WooCommerce.com: –Enforce Approved Product Download Directories: ✔HPOS feature enabled: ✔Order datastore: Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStoreHPOS data sync enabled: –### Logging ###Enabled: ✔Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2Retention period: 30 joursLevel threshold: –Log directory size: 53 Ko### WC Pages ###Base de la boutique: #7 - /boutique/Panier: #8 - /panier/ - Contient le bloc woocommerce/cartCommander: #9 - /commande/ - Contient le bloc woocommerce/checkoutMon compte: #10 - /mon-compte/ - Contient le code court [woocommerce_my_account]Conditions générales de vente et d’utilisation: #359 - /conditions-generales-de-vente/### Theme ###Name: BlocksyVersion: 2.0.95Author URL: https://creativethemes.comChild Theme: ❌ – Si vous modifiez WooCommerce sur un thème parent que vous n‘avez pas construit personnellementnous vous recommandons d‘utiliser un thème enfant. Voir : Comment créer un thème enfantTheme type: Thème classiqueWooCommerce Support: ✔### Templates ###Overrides: blocksy/woocommerce/cart/cart.phpblocksy/woocommerce/cart/mini-cart.phpblocksy/woocommerce/content-widget-product.phpblocksy/woocommerce/content-widget-reviews.phpblocksy/woocommerce/myaccount/my-account.phpblocksy/woocommerce/product-searchform.phpblocksy/woocommerce/single-product/tabs/tabs.php### Admin ###Enabled Features: activity-panelsanalyticsproduct-block-editorcouponscore-profilercustomize-storecustomer-effort-score-tracksimport-products-taskexperimental-fashion-sample-productsshipping-smart-defaultsshipping-setting-tourhomescreenmarketingmobile-app-banneronboardingonboarding-taskspattern-toolkit-full-composabilityproduct-custom-fieldsremote-inbox-notificationsremote-free-extensionspayment-gateway-suggestionsprintfulshipping-label-bannersubscriptionsstore-alertstransient-noticeswoo-mobile-welcomewc-pay-promotionwc-pay-welcome-pagelaunch-your-storeadd-to-cart-with-options-stepper-layoutDisabled Features: product-data-viewsexperimental-blockscoming-soon-newsletter-templateminified-jsproduct-pre-publish-modalsettingsasync-product-editor-category-fieldproduct-editor-template-systemuse-wp-horizonblockified-add-to-cartDaily Cron: ✔ Next scheduled: 2025-04-17 10:21:03 +02:00Options: ✔Notes: 67Onboarding: completed### Action Scheduler ###Terminé: 1 451Oldest: 2025-03-23 18:13:27 +0100Newest: 2025-04-17 03:24:57 +0200Échoué: 141Oldest: 2025-03-24 20:40:30 +0100Newest: 2025-04-17 07:31:03 +0200En attente: 7Oldest: 2025-04-18 03:24:57 +0200Newest: 2025-04-19 18:30:47 +0200### Status report information ###Generated at: 2025-04-17 09:02:09 +02:00

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Zee

    (@doublezed2)

    Hello erwang,

    Thank you for contacting WooCommerce support.

    I understand you’re experiencing random white screens of death (WSOD), and based on what you’ve described, it does seem like your database is under heavy load.

    To help investigate further, could you please share your site’s System Status Report again? You can paste it at https://pastebin.com and share the link here so it is readable for me.

    Additionally, check WooCommerce > System Status > Logs for any errors. If you find any error share them in the same way.

    Looking forward to your response. 🙂

    Thread Starter erwang

    (@erwang)

    Hi, here is the requested pastebin : https://pastebin.com/vnRbYARa
    I got some news about my problem. As my website is hosted in a shared server, the 15M/H queries might not only come from my website.

    Therefore, using QueryMonitor, I can see that a single product page use between 200 et 300 query to loaded.
    Is this a normal stat ?

    Thanks

    Mahfuzur Rahman

    (@mahfuzurwp)

    Hi @erwang,

    Thanks for sharing the update. You’re right that 200–300 queries per product page can add up, especially on shared hosting. While this range isn’t unusual for WooCommerce sites with multiple plugins, it’s still a good idea to review what’s contributing to it.

    Looking at your active plugins, here are a few that are likely adding extra database queries on product pages:

    • Advanced Product Fields for WooCommerce and Tarification dynamique avancée: These enhance product customization and pricing, and often load extra meta or rules.
    • Elementor and Unlimited Elements: These page builders can add overhead depending on how the product template is built.
    • Woo Coming Soon, Popup Maker, and shipping plugins like Chronopost & Mondial Relay may also inject content or functionality on product pages.

    Here’s what you can try:

    • Use Query Monitor to spot repeated or heavy queries and see which plugin or function is behind them.
    • Try switching to a default theme like Storefront temporarily and disable plugins one by one to check the difference in query count.
    • Enable full-page caching if you haven’t already (it doesn’t look like a dedicated caching plugin is active beyond LWS tools).

    I hope this helps! Thank you.

    Thread Starter erwang

    (@erwang)

    Hi, thanks for those precious informations !
    As suggested I looked at Query monitor result on a single page product and in my test, 283 out of 349 queries are duplicates and nearly al of them (except 2) are made by WooCoommerce.
    In those, 2 queries are each called 73 times
    https://pasteboard.co/2WA6WuB4RO4h.png
    https://pasteboard.co/0s76xQTDMAoG.png
    https://pasteboard.co/m5BMxwQdrlN7.png
    https://pasteboard.co/XdCnMH0dkpx5.png
    https://pasteboard.co/qjaafnqGuyaL.png

    Is there anything I can do about that ?

    Regards


    Zee

    (@doublezed2)

    Hello erwang,

    Thank you for your reply.

    The screenshots you shared show database queries that are typical for a WooCommerce site.

    Since you’re using shared hosting, any performance issues you notice could be related to server limitations. I recommend switching to a VPS or a host that uses a “containerized” architecture for better performance and resource isolation.

    Please let me know if you have any questions.

    Best regards.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘15M database query per hour’ is closed to new replies.