Database out of memory error – but enough is defined
-
My website is big ~ 700,000 WooCommerce products.
I have changed my wp-config:<?php define( 'WP_MEMORY_LIMIT', '54800M' ); define( 'WP_MAX_MEMORY_LIMIT', '54800M');
PHP.ini is set to memory_limit=52800M
and I still get memory errors when running most of the actions of my plugins:
[25-Dec-2023 01:13:42 UTC] WordPress database error Out of memory (Needed 4294967256 bytes) for query SELECT COUNT(DISTINCT claim_id) FROM wpyd_actionscheduler_actions WHERE claim_id != 0 AND status IN ( 'pending', 'in-progress') made by do_action('wp_ajax_as_async_request_queue_runner'), WP_Hook->do_action, WP_Hook->apply_filters, WP_Async_Request->maybe_handle, ActionScheduler_AsyncRequest_QueueRunner->handle, do_action('action_scheduler_run_queue'), WP_Hook->do_action, WP_Hook->apply_filters, ActionScheduler_QueueRunner->run, ActionScheduler_Abstract_QueueRunner->has_maximum_concurrent_batches, ActionScheduler_DBStore->get_claim_count [25-Dec-2023 01:15:46 UTC] WordPress database error Out of memory (Needed 4294967256 bytes) for query SELECT COUNT(DISTINCT claim_id) FROM wpyd_actionscheduler_actions WHERE claim_id != 0 AND status IN ( 'pending', 'in-progress') made by do_action('wp_ajax_as_async_request_queue_runner'), WP_Hook->do_action, WP_Hook->apply_filters, WP_Async_Request->maybe_handle, ActionScheduler_AsyncRequest_QueueRunner->handle, ActionScheduler_AsyncRequest_QueueRunner->maybe_dispatch, ActionScheduler_AsyncRequest_QueueRunner->allow, ActionScheduler_Abstract_QueueRunner->has_maximum_concurrent_batches, ActionScheduler_DBStore->get_claim_count
This is my startup log:
2023-12-25 2:58:30 0 [Note] Starting MariaDB 10.4.28-MariaDB source revision c8f2e9a5c0ac5905f28b050b7df5a9ffd914b7e7 as process 26772 2023-12-25 2:58:30 0 [Warning] option 'innodb-log-buffer-size': unsigned value 46976204800 adjusted to 2147482624 2023-12-25 2:58:30 0 [Warning] option 'innodb-buffer-pool-chunk-size': unsigned value 5368709120 adjusted to 2146435072 2023-12-25 2:58:30 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions 2023-12-25 2:58:30 0 [Note] InnoDB: Uses event mutexes 2023-12-25 2:58:30 0 [Note] InnoDB: Compressed tables use zlib 1.2.12 2023-12-25 2:58:30 0 [Note] InnoDB: Number of pools: 1 2023-12-25 2:58:30 0 [Note] InnoDB: Using SSE2 crc32 instructions 2023-12-25 2:58:30 0 [Note] InnoDB: Initializing buffer pool, total size = 39.9805G, instances = 10, chunk size = 1.99902G 2023-12-25 2:58:30 0 [Note] InnoDB: Completed initialization of buffer pool 2023-12-25 2:58:30 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=3512903108821 2023-12-25 2:58:30 0 [Note] InnoDB: Starting final batch to recover 3 pages from redo log. 2023-12-25 2:58:31 0 [Note] InnoDB: 128 out of 128 rollback segments are active. 2023-12-25 2:58:31 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1" 2023-12-25 2:58:31 0 [Note] InnoDB: Creating shared tablespace for temporary tables 2023-12-25 2:58:31 0 [Note] InnoDB: Setting file 'D:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ... 2023-12-25 2:58:31 0 [Note] InnoDB: File 'D:\xampp\mysql\data\ibtmp1' size is now 12 MB. 2023-12-25 2:58:31 0 [Note] InnoDB: Waiting for purge to start 2023-12-25 2:58:31 0 [Note] InnoDB: 10.4.28 started; log sequence number 3512903108870; transaction id 654344011 2023-12-25 2:58:31 0 [Note] InnoDB: Loading buffer pool(s) from D:\xampp\mysql\data\ib_buffer_pool 2023-12-25 2:58:31 0 [Note] Plugin 'FEEDBACK' is disabled. 2023-12-25 2:58:31 0 [Note] Server socket created on IP: '::'.
I have set up the two warnings in my.ini, but they keep showing up if that has anything to do with the errors:
2023-12-25 2:58:30 0 [Warning] option 'innodb-log-buffer-size': unsigned value 46976204800 adjusted to 2147482624 2023-12-25 2:58:30 0 [Warning] option 'innodb-buffer-pool-chunk-size': unsigned value 5368709120 adjusted to 2146435072 They are set to: innodb_log_buffer_size=44800M innodb_buffer_pool_chunk_size=3.99805G
Another instance of errors that break my website when running a plugin:
[25-Dec-2023 01:28:13 UTC] PHP Warning: Trying to access array offset on value of type int in D:\xampp\htdocs\wp-includes\formatting.php on line 889 [25-Dec-2023 01:29:47 UTC] WordPress database error Out of memory (Needed 4294967256 bytes) for query SELECT COUNT(DISTINCT claim_id) FROM wpyd_actionscheduler_actions WHERE claim_id != 0 AND status IN ( 'pending', 'in-progress') made by do_action('wp_ajax_as_async_request_queue_runner'), WP_Hook->do_action, WP_Hook->apply_filters, WP_Async_Request->maybe_handle, ActionScheduler_AsyncRequest_QueueRunner->handle, do_action('action_scheduler_run_queue'), WP_Hook->do_action, WP_Hook->apply_filters, ActionScheduler_QueueRunner->run, ActionScheduler_Abstract_QueueRunner->has_maximum_concurrent_batches, ActionScheduler_DBStore->get_claim_count [25-Dec-2023 01:29:59 UTC] PHP Warning: Attempt to read property "object_type" on bool in D:\xampp\htdocs\wp-includes\taxonomy.php on line 3540 [25-Dec-2023 01:29:59 UTC] PHP Warning: Attempt to read property "object_type" on bool in D:\xampp\htdocs\wp-includes\taxonomy.php on line 4102 [25-Dec-2023 01:29:59 UTC] PHP Warning: Attempt to read property "name" on bool in D:\xampp\htdocs\wp-includes\taxonomy.php on line 4147 [25-Dec-2023 01:29:59 UTC] PHP Warning: Attempt to read property "name" on bool in D:\xampp\htdocs\wp-includes\taxonomy.php on line 4151
What could cause the memory issue and query errors ?
I’ve been trying to fix this for a week, but I can’t, so please help.
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Database out of memory error – but enough is defined’ is closed to new replies.