Get the most out of your Centmin Mod LEMP stack
Become a Member

Wordpress WP - High memory usage notification

Discussion in 'Blogs & CMS usage' started by Jota, Jan 14, 2016.

  1. Jota

    Jota Member

    77
    18
    8
    Oct 9, 2014
    Barcelona
    Ratings:
    +20
    Local Time:
    8:17 AM
    Hi, I don't stop getting this email from a WP site:

    Subject: [site.com] High memory usage notification
    WordPress memory usage exceeded 32 MB
    WordPress peak memory usage: 60.33 MB
    Number of database queries: 145

    I tried adding to wp-config.php

    define('WP_MEMORY_LIMIT', '96M');
    define('WP_MAX_MEMORY_LIMIT', '256M');

    But still keep getting the alerts. Seems that PHP doesn't get the new variables.

    How to fix this ? thanks
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,949
    6,917
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,415
    Local Time:
    4:17 PM
    Nginx 1.13.x
    MariaDB 5.5
    this is due to wp plugin auto installed via centmin.sh menu option 22 called tpc-memory-usage, you should have a settings page for it in wp admin to adjust memory limit and notices
     
    Last edited: Jan 14, 2016
  3. Jota

    Jota Member

    77
    18
    8
    Oct 9, 2014
    Barcelona
    Ratings:
    +20
    Local Time:
    8:17 AM
    Yes found it, thanks master ;)
     
    • Like Like x 1