Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [memory]

The tag has no usage guidance.

0
votes
0answers
28 views

Apache using full RAM problem

I have a server with these specification: *CPU* Intel(R) Xeon(R) CPU D-1520 @ 2.20GHz Cores : 8 Cache : 6144KB *RAM* 2x 16384MB *Hard Disk* 2 x 300 GB 2 x 2000 GB *Software* Ubuntu 14.04 Linux 3.14 ...
1
vote
2answers
117 views

Memory Leak in plugin action

I made a plugin that basically reads a CSV file and imports data to relevant tables. However, the action seems to create an error: Fatal error: Allowed memory size of 134217728 bytes exhausted (...
1
vote
1answer
31 views

How to debug full RAM memory?

Our site is going down over and over again. It's always the same issues. Running out of memory. And the hosts answer is always the same: Buy more RAM. And that could be needed in the end as well. But ...
0
votes
0answers
35 views

Out of Memory But theres more than enough

I know this is asked a lot but mine seems to be unique. I get Out of memory (allocated 2097152) (tried to allocate 4096 bytes) But my phpinfo says I have 380MB in memory_limit. This is where it ...
0
votes
2answers
409 views

PHP Warning: include(): Unable to allocate memory for pool

I apologize in advance if this is wrong place to ask my question (mods: please move it to appropriate place) I'm seeing following message in my wordpress logs: PHP Warning: include(): Unable to ...
0
votes
0answers
32 views

Memory Leak in Processing Large JSON file

I'm processing a large JSON File (>1500 items). Im using JSONStreamParser to process one item at time. With each one, I am updating a post if the data has changed. The first thing I need to do is ...
0
votes
1answer
590 views

Defined Wordpress Memory Limit to Unlimited

define( 'WP_MEMORY_LIMIT', '-1' ); define( 'WP_MAX_MEMORY_LIMIT', '-1' ); So have a quite big server, I wish any of the websites to use maximum available ram. Will these settings work or will I ...
0
votes
1answer
75 views

Is it possible to increase php memory without directives in wp-config.php, .htaccess or php.ini?

I using a plugin that crashes due to lack of memory. But I'm on a host (Pantheon) that uses git for file updates between a Dev server (where I have FTP access) and a Live server (where I have no FTP ...
0
votes
1answer
485 views

WP_MEMORY_LIMIT didn't work in wp-config, only within default-constants.php

i have already searched here and tried a lot of things, but my problem still is "alive" It is possible to set WP_MEMORY_LIMIT within the default-constants.php and this works fine, but every time I ...
0
votes
1answer
41 views

Exec wp query in slow motion to avoid memory error?

for example in php when you read a file per line you can use fopen("inputfile.txt"); but this puts all lines in an array and cause memory error when the file is very big, an alternative to it is the ...
0
votes
0answers
431 views

Out of memory errors : how best to track them down

I am dealing with a Wordpress site that shows regular out of memory errors when navigating the control panel. I am asking a question about it here because I have tried all the usual options: ...
1
vote
3answers
3k views

WP_MEMORY_LIMIT didn't work in wp-config

I want to set WP_MEMORY_LIMIT for my WordPress site. I use from shared hosting and CPanel. I have access to change something like max memory limit on my host. I attached related image in the following ...
0
votes
1answer
176 views

Why do get_category_by_slug() crashes WordPress 4.8

I need to hide "uncategorized" from the list of selectable post categories and wrote some code to achieve that. This function worked fine up to WP 4.7.5, the categories were successfully hidden: ...
0
votes
0answers
154 views

How to fix UpdraftPlus's memory issue?

I've tried to restore a backup version of my website through Updraft Plus, a WP Plugin that allows users to backup the website every few days. However, it cannot complete the backup due to this error:...
3
votes
2answers
12k views

What's the difference between WP_MEMORY_LIMIT and WP_MAX_MEMORY_LIMIT?

What's the difference beetween define( 'WP_MEMORY_LIMIT', '96M' ); and define( 'WP_MAX_MEMORY_LIMIT', '256M' ); In my host I have this define( 'WP_MEMORY_LIMIT', '786M' ); define( '...
6
votes
1answer
1k views

Allowed memory size of 268435456 bytes exhausted (tried to allocate 7146491840906359738 bytes)

We're on v4.4.10 and keep having to restart the web server due to this issue. I've read various other posts and increased the wp-config.php memory, but still get this error. [23-May-2017 11:39:43 ...
1
vote
0answers
379 views

Adjust Memory Limit on bitnami wordpress server (azure)

I am running a bitnami instance of wordpress on azure. I came across the following woocommerce warning WP memory limit: 40 MB - We recommend setting memory to at least 64MB. See: ...
1
vote
1answer
198 views

Out Of memory issue on post per page parameter

I am using woocommerce and i have around 1500 product in one category, i have a brand as a custom taxonomy, and on category page i grab all brands based on product id, Here when i pass post_per_page ...
2
votes
2answers
209 views

Wordpress database becoming huge. How to analyze and optimize it? fear of running out of memory

look at the size of my wordpress database tables: are there simple ways to optimize it? I fear of running out of memory one day maybe bad collation? how can I analyze what is eating up so much space ...
2
votes
4answers
859 views

Wordpress media upload limit?

I've done numerous WP sites, written my own plugins, run my own server, etc etc. But I have not seen this before. I just installed a fresh 4.7.1 and installed the Proto theme and all its plugins. ...
-1
votes
1answer
7k views

PHP Fatal Error: Out of memory

My website is facing a PHP Fatal Error: Out of memory. I had tried the following method, such as Increase memory_limit to 1GB via .user.ini Add RLimitMEM max into .htaccess Optimize database Due ...
1
vote
1answer
77 views

Are there individual memory allocations for different user roles in WordPress?

I am attempting to edit a specific page via the WordPress admin area while logged in as an Editor, however, the page dies with the following error: Fatal error: Allowed memory size of 134217728 ...
-1
votes
1answer
3k views

Wordpress “Allowed memory size” on wp-db.php [closed]

My web site keeps giving me this error: Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 32 bytes) in /wwwroot/xxx/wp-includes/wp-db.php on line 1832 How Can I fix ...
8
votes
1answer
12k views

Programmatically adding images to the media library with wp_generate_attachment_metadata randomly fails

I am running the latest WordPress version (4.6) on a LAMP server (shared hosting) with PHP version 5.6.12. I am trying to programmatically add 10 images, uploaded with ftp to the wp-uploads directory,...
1
vote
1answer
1k views

Set WP_MAX_MEMORY_LIMIT higher than PHP.ini memory_limit

I've read here, but I want to ask if I have understood this correctly. We have a server in which WordPress admin needed more memory. The PHP memory_limit, in PHP.ini, is set to 256M, and so was ...
0
votes
2answers
4k views

What is the difference in the WP memory limits?

I have seen this question PHP Memory Limit vs. WP Memory Limit and it has a really poor answer and the question isn't that good either. I am on a dedicated server and can do whatever I want. I want ...
1
vote
2answers
2k views

Mass importing json data into custom fields (postmeta)

I am in the process of importing large amounts of data into a custom post type that has several custom fields (postmeta fields created by Advanced Custom Fields). I am using the following function to ...
1
vote
1answer
332 views

Wordpress out of memory allocated issue?

I have facing out of memory allocated fatal error in wordpress. i have printed the phpinfo(); and check for the memory_limit . so both values are 512M. I have also added following code in my wp-...
0
votes
1answer
579 views

Trying to increase WP Memory Limit

I am trying to increase WP Memory Limit: so that I can use Fusion Builder, and other things, with WordPress but the status for the plugin is still saying I only have the limit set to 40M, even with ...
-1
votes
1answer
412 views

WP site makes mobile browser crash for high memory usage

I have this site: http://theguiltycode.com It uses foundation as a theme and is hosted in bluehost. I can load the site without much problem in desktop browsers, but in mobile the site reloads like 3 ...
-1
votes
2answers
3k views

Website keeps going down, is it a plugin, database, memory problem, or something else?

So I've been having a problem with one of the websites I manage. Essentially, we keep seeing the cloudflare 'site is offline' message for at least half the day, constantly and consistently. Whenever ...
1
vote
1answer
440 views

Updating beyond WordPress 4.2.1 yields “allowed memory size exhausted”

I have a Windows Server running Plesk that has several WordPress sites. The PHP version on each is 5.5.26. One, which uses the defaults for PHP, updates to the latest (4.2.3) with no issues, while ...
0
votes
1answer
60 views

Dashboard memory overload problem

I have a client who has a dev server, and we continue to have problems. We recently tried to install a new theme, and it's child, and it did become active, but anytime we try to access the dashboard ...
1
vote
1answer
876 views

How to solve suspected memory issue in custom WordPress loop?

I have written a plugin that adds a "Where did you hear about us?" question to the WooCommerce checkout page and shows the results (as a simple horizontal bar chart) in a wp-admin page. The plugin ...
0
votes
1answer
690 views

HIgh CPU usage - Will using cache plugins help

i am having issues with CPU high utilization, more than 92% . Is there anyway to track which plugin or process or user is causing this issue? Will usage of any cache plugin will help this or not ?
4
votes
2answers
283 views

What is the most efficient way to search users by their display name?

Initially I thought I'd use get_users() but it turned out it doesn't support the display_name field. Then I've read about using WP_User_Query, but when I do it always exhausts the allowed memory size ...
0
votes
1answer
211 views

posts_results filter function memory errors

My posts_results filter is causing memory errors and I can't figure out why. Here's the full snippet: /*-----------------------------------------------------------------------------------*/ /* ...
1
vote
1answer
47 views

wp_trash_post is leaking memory

I have a plugin that deletes a list of posts based on their post id. The code is very simple foreach ( $post_ids as $post_id ) { wp_trash_post( $post_id, true ); } } ...
3
votes
3answers
307 views

How can Wordpress be made more memory efficient?

Let's assume this is a site that has dynamic content pertaining to the user, or content that changes very often, so varnish is out. Let's also assume that there are no plugins and the theme is vanilla....
2
votes
1answer
712 views

$wpdb->get_results leaking memory

I have developed a wordpress plugin that reads large custom xml files and imports the information as custom post types and a lot of post meta information. So I am calling a lot of database ...
0
votes
1answer
381 views

Wordpress import error

Firstly I installed WordPress on my site, then I generate a XML file for my blog (akasujjwal.wordpress.com) transfer by using export tool. And when I try to import this XML file to the installed ...
0
votes
1answer
611 views

What happens when WordPress memory limit is exceeded?

Let's say a WordPress website has the following settings: PHP Memory Limit: 100MB WordPress Memory Limit: 50MB What happens when the WordPress Memory Limit is exceeded? Do plugins/themes stop / Do ...
0
votes
1answer
92 views

Memory Management when developing plug-ins

I have done a search on this issue here and there are a lot of queries about memory issues and WordPress. The common recommended fix is to alter the WORDPRESS_MEMORY constant. I have a similar ...
-1
votes
1answer
2k views

Too many index.php files running and eating up all memory

I have wordpress site installed on dedicated server. From few days I'm experiencing high memory consumption on this cpanel account and it is slowing my wordpress site Then I examined Process Manager ...
3
votes
0answers
1k views

CPU usage: AJAX and Heartbeat API on admin pages

My (shared) web host recently sent me this: "Our server monitoring systems keep indicating high server load persistently maintained by your website (...). Most of the hits are to the /www/www/wp-...
1
vote
0answers
91 views

Post MetaTable Overload

Anyone run a wp site with a large amount of post meta data? My site uses ACF with several custom post types and at least 20 custom meta fields with each of my custom post types. I have over 1000 ...
6
votes
3answers
2k views

PHP memory friendly alternative to get_posts()

I was running into memory issues with this: get_posts( array( 'posts_per_page' => '-1', 'post_type' => array( 'product', 'product_variation' ) ) (there are thousands of results) just trying to ...
0
votes
1answer
3k views

“Allowed memory size” problem [closed]

I duplicated a wordpress website. On the new domain, the TYPES plugin causes big problems. I get several "Allowed memory size of ... bytes exhausted" error messages. They show up when I try to do the ...
0
votes
0answers
958 views

Fatal error: Allowed memory size of bytes exhausted (tried to allocate 36 bytes)

I' fetching some information from my website e.g category_name, category_id etc. with wordpress codex and encode them with json. I'm using them in my android application, but today, suddenly, it gave ...
0
votes
0answers
42 views

CPU Resource Management For Bulk Attachment Insert Share Host

I've created a page on a shared host which loops through a series of posts and then attaches images to each of the posts. The images are already on the server and are copied into the WP-Content folder....