Questions tagged [memory]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
23 views

How to efficiently display RSS feed items from thousdans of different sources

I have looked around and there's a lot of static revolving around using RSS feeds so I haven't been able to find a straight answer. I am working on a website that pulls information from pubmed.org. ...
Rafael Rossi Silva's user avatar
0 votes
0 answers
12 views

how to decrease the size of wordpress site after installing the wordfence

Recently i had a malicious attack on my wordpress website through the EA for elementor , after that i downloaded some plugins for security and monitoring activity , like activity log for logs and ...
Prince Bhati's user avatar
0 votes
0 answers
99 views

Wordpress causes Mysql high memory

Recenty I deployed a wordpress multisite instance by helm chart to GKE. However, It causes increasing memory of mysql from 600MB to 2.6G usage. I try to use Percona to analyze the database, then see ...
PhanThanh's user avatar
0 votes
0 answers
104 views

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in

I've tried everything I've read on the forum thread related to this error. Changed the config file etc but the problem doesn't go away. We restored backups from a day when the site was working, but ...
miroslava valkova's user avatar
0 votes
1 answer
581 views

Changing WP_MEMORY_LIMIT doesn't affect actual memory limit

Unusually, I would like to reduce the wordpress / woocommerce memory limit, as it leads to too high memory consumption on the server. I'm not able to change my php memory-limit variable due to my ...
fischbrot's user avatar
0 votes
0 answers
124 views

Wordpress Template Reverts to default template after changing

I am experiencing a problem regarding wordpress page template. after I change the wordpress template to "Home Page", it reverts to default template after update. I tried installing WP Super ...
Blitzkriegfest's user avatar
0 votes
0 answers
569 views

High memory usage in my theme, how to find out why?

I'm experiencing a problem of high memory usage in my custom WordPress Theme, and I'm trying to find out what's causing it. I'm already using Query Monitor to explore the situation, but I can't see ...
Oni-Link's user avatar
0 votes
0 answers
218 views

Solution for processing lots of data with CRON/API, dealing with memory/timeout issues

Using a custom CRON job set up in my Wordpress site I am connecting to an external API to refresh some data. The API only allows for a certain amount of records to be read at a time so I have to "...
Louis W's user avatar
  • 456
0 votes
1 answer
379 views

Is there a maximum length to a Wordpress Page?

I'll try to be terse: We host events for clients and offer to create an 'event page' for them as part of their package - they can direct users to this page to see the event schedule, dates, speakers, ...
Daniel Pascale's user avatar
0 votes
1 answer
401 views

WordPress hit memory limit but not from the server

I have struggled with this for hours and days. I need good ideas for a fix now. When I do a certain action in WordPress, I sometimes get a Fatal memory error. The error comes after I hit "Update&...
pstidsen's user avatar
1 vote
0 answers
165 views

PHP Fatal error: Out of memory in Wordpress [closed]

I'm running a WordPress site on EC2 t2.medium machine. I've increased the memory_limit in php.ini to 3GB which is reflecting in phpinfo, but I keep on getting "Out of Memory" error in 1-2 ...
Aman Kumar's user avatar
0 votes
2 answers
1k views

Will memcached improve performance with WP Super Cache already running?

I'm working on a WordPress site that is expected to host up to 1000 concurrent users, so I'm exploring ways to make it run as fast as possible. I've heard that memcached helps WordPress sites load ...
John Doe's user avatar
  • 287
0 votes
0 answers
80 views

how to fix wordpress high use cpu 100-104% evey time

i try disable all plugin or tye optimization database but still cpu 100% how to fix solve ?
Goddy Weeand's user avatar
0 votes
0 answers
45 views

Noticed updating taxonomy terms take a long time and run out of memory

Not sure if it's related to 5.5, that is what we're running. But if we go to edit a taxonomy term (say... update the description). It's been taking a long time. Some investigation reveals that it's ...
Dan Goodspeed's user avatar
0 votes
1 answer
203 views

How can I figure out where memory is being used?

I've got a WordPress site that's using too much memory, and I'm having problems with it on my shared hosting site. So, to try to figure out where it's coming from without wrecking my live site, I ...
Vultan's user avatar
  • 101
0 votes
1 answer
142 views

How to display or print WordPress memory limit and WordPress max memory limit

What code do I need to use to display the WordPress memory limit and WordPress maximum memory limit. In PHP for example, I can just get the memory limit by using: echo $memory_limit = ini_get('...
chinazaike's user avatar
0 votes
0 answers
939 views

CPU 100% usage when login as admin

When a normal user open my site nothing happens, but when i log into my admin area, each page I open even in admin area or in my site, I see 50-100% cpu usage. why?! I disabled cron jobs I disabled ...
Mohammad Mirsafaee's user avatar
0 votes
1 answer
59 views

Wordpress vps memory allocation

I have a VPS sever for a wordpress site, which has an 8g ram and 4 cores cpu, however the site is really slow, I feel like the site is not using all resources, my question is, how much memory should ...
Forsaken Dev's user avatar
4 votes
2 answers
726 views

How can I free up the memory used by update_post_meta?

I've noticed that each call to update_post_meta results in a small increase in my memory usage. Normally, the increase is small enough to not matter. But I'm writing a CSV import function that calls ...
Pikamander2's user avatar
0 votes
2 answers
1k views

Wordpress Memory limit not increasing

I have set 1024M in php.ini file: memory_limit = 1024M I have set it in .htaccess file: <IfModule mod_php7.c> php_value memory_limit 1024M </IfModule> I have set it in wp-config....
Grey-lover's user avatar
0 votes
0 answers
119 views

Annoying/confusing Wordpress memory limit exhausted

I'm setting up a staging site on the same server as a live site. Wordpress 7.1, PHP 7.2. Site is a multisite install I've been working with for years. Everything is identical apart from domain names. ...
fred2's user avatar
  • 132
0 votes
0 answers
73 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 ...
mesa's user avatar
  • 1
1 vote
2 answers
1k 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 (...
treyBake's user avatar
  • 127
1 vote
1 answer
229 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 ...
Peter Westerlund's user avatar
0 votes
0 answers
64 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 ...
swg1cor14's user avatar
  • 123
0 votes
2 answers
941 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 ...
alexus's user avatar
  • 930
0 votes
0 answers
142 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 ...
PattyOK's user avatar
  • 193
0 votes
1 answer
2k 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 ...
Ashish Dung Dung's user avatar
1 vote
1 answer
381 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 ...
BlueDogRanch's user avatar
0 votes
1 answer
2k 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 ...
Papejoo's user avatar
0 votes
1 answer
90 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 ...
user2670708's user avatar
1 vote
0 answers
1k 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: checking ...
Victoria's user avatar
  • 230
4 votes
3 answers
15k 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 ...
Mehdi Soltani's user avatar
0 votes
1 answer
393 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: ...
That Brazilian Guy's user avatar
0 votes
0 answers
294 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:...
Intrepidity's user avatar
15 votes
2 answers
41k 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( '...
Leurent's user avatar
  • 177
6 votes
1 answer
2k 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 ...
ScottB's user avatar
  • 131
1 vote
0 answers
745 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: ...
SeanJ's user avatar
  • 167
1 vote
1 answer
334 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 ...
Bharat Sevra's user avatar
3 votes
2 answers
919 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 ...
Toskan's user avatar
  • 514
2 votes
4 answers
2k 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. ...
lilbiscuit's user avatar
-2 votes
1 answer
14k 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 ...
Wee Hong KOH's user avatar
1 vote
2 answers
233 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 ...
Oliver Willis's user avatar
-1 votes
1 answer
7k 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 ...
MMTDesigner's user avatar
8 votes
1 answer
23k 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,...
Sebastian's user avatar
  • 215
1 vote
1 answer
3k 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 ...
ptf's user avatar
  • 423
0 votes
3 answers
9k 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 ...
STing's user avatar
  • 591
1 vote
2 answers
4k 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 ...
mantis's user avatar
  • 780
1 vote
1 answer
510 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-...
Mehar's user avatar
  • 240
0 votes
1 answer
1k 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 ...
Gary Carlyle Cook's user avatar