Articles of memory

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 question and I would like to avoid the need to redefine this constant. Here is my question as posted at […]

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 ?

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 we get this error. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate […]

Memory usage issue in WordPress 3.x

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate … bytes) in wp-includes/pomo/streams.php on line … Plugins like Super-cashe & Total-cashe don’t help. Reducing the number of wordpress plugins and widgets used gives minimal effect. Can anyone offer solution (except asking my hoster for more memory) ?

What is a reasonable memory limit for WordPress

Although the accounts on my server generally have a lower memory limit, I’ve configured my WordPress user accounts with a memory limit of 32Mb using the php.ini file and memory_limit = 32M Unfortunately I’ve found that I’m still getting the odd memory error, even on small tests blogs. I’ve had to increase the limit to […]

WordPress memory on 3.X

I’m using the WP_Overview plugin to view WordPress’ memory limit. It’s showing Mem: WP 32M (def) Usage 25% 32.59M of PHP Limit 128M. However, in my functions.php, I have the following line of code: define(‘WP_MEMORY_LIMIT’,’96M’);. I’ve also installed the Change Memory Limit plugin and tried updating the figure from there, again to 96M. Despite this, […]

WordPress: Allowed Memory Size Exhausted – After Moving from Dev to Live

I keep getting this on my WordPress site after I moved it from my development server to the live site. It’s happening in one file that is using a few functions which I think is causing it, but I don’t know how to fix it. Allowed memory size of 268435456 bytes exhausted (tried to allocate […]

Allowed memory size exhausted. WordPress side solution

I’m getting a well known error from the question title. The problem is, website is running on a shared server and I don’t have access to php.ini file. I’ve set `php_value memory_limit‘ inside .htaccess to higher value. I’ve set WP_MEMORY_LIMIT inside wp_config.php to higher value. phpinfo() says that max_execution_time is set to 30 and safe_mode […]

How to use WP_Query() on single.php?

I’m using WP_Query() to pull out a few posts under a specific category “Featured” to display at the bottom of any post. So I added <?php if (function_exists(‘getEditorPicks’)) getEditorPicks();?> in single.php. In functions.php, I have wp_reset_postdata(); $args = array(‘cat’ => 4176, ‘posts_per_page’ => 5); $query = new WP_Query($args); //return $query->query_vars; if ($query->post_count>2) { while ($query->have_posts()) […]

How do I find out which plugin is exceeding memory limits?

I had an issue today when my sites had stopped working. Calling up the link just showed a cryptic message Database connection error, on all my sites on one server. The error disappeared on rebooting. While trying to get to the root of the issue, I was examining syslog (I’m using Debian 7), and found […]