#11829 closed defect (bug) (invalid)
WordPress Memory Leaks (Error Log)
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | Priority: | highest omg bbq | |
| Severity: | critical | Version: | |
| Component: | Database | Keywords: | wordpress, errors, database, wp-db.php, memory leak |
| Focuses: | Cc: |
Description
My error logs are showing the following memory leak issues. XXXX is used in place of sensitive information.
[Fri Jan 08 15:02:32 2010] [error] [client XXXX] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 144691 bytes) in /XXXX/XXXX/public_html/wp-includes/wp-db.php on line 697
[Fri Jan 08 15:01:36 2010] [error] [client XXXX] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 143356 bytes) in /XXXX/XXXX/public_html/wp-content/plugins/post-plugin-library/common_functions.php on line 370
[Fri Jan 08 15:00:23 2010] [error] [client XXXX] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 145747 bytes) in /XXXX/XXXX/public_html/wp-includes/wp-db.php on line 697
[Fri Jan 08 14:57:57 2010] [error] [client XXXX] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 144691 bytes) in /XXXX/XXXX/public_html/wp-includes/wp-db.php on line 697
[Fri Jan 08 14:54:09 2010] [error] [client XXXX] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 144691 bytes) in /XXXX/XXXX/public_html/wp-includes/wp-db.php on line 697
[Fri Jan 08 14:53:01 2010] [error] [client XXXX] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 143356 bytes) in /XXXX/XXXX/public_html/wp-content/plugins/post-plugin-library/common_functions.php on line 370
[Fri Jan 08 14:52:12 2010] [error] [client XXXX] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 143356 bytes) in /XXXX/XXXX/public_html/wp-content/plugins/post-plugin-library/common_functions.php on line 370
[Fri Jan 08 14:51:13 2010] [error] [client XXXX] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 144691 bytes) in /XXXX/XXXX/public_html/wp-includes/wp-db.php on line 697
Any ideas as to why these errors are happening? This is causing a bad memory leak.
Change History (3)
#2
@
16 years ago
- Milestone Unassigned deleted
- Resolution set to invalid
- Status changed from new to closed
- Version 2.9.1 deleted
#3
@
16 years ago
Just more on what filesosofo said, Basically, The plugin is using more memory than is currently allocated to WordPress.
You can increase the memory WordPress allocates for itself byu adding define('WP_MEMORY_LIMIT', '64M'); to your wp-config.php file. The plugin should really do things more efficiently perhaps, but if you use muliple plugins which use a lot of memory, sometimes you need to increase that limit.
Increasing the limit does not work all webhosts, some lock you to a certain limit.
The above line indicates that this is problem with the plugin here.
Looking at line 370 my guess is that that plugin is trying to concatenate too many post IDs, exhausting your memory. You should ask the plugin author to fix the code; I would suggest using subqueries.
I'm closing the ticket as invalid because it's a plugin issue, not a core WP issue.