Support » Plugin: WP Server Health Stats » Reported PHP Memory Limit, Execution_time

  • On my WP admin dashboard, the PHP summary shows:
    PHP Memory Limit : 384 MB

    However I had just made some changes, restarted httpd, and what my WP-config.php says is:
    /* Custom Memory Limit */
    define( ‘WP_MEMORY_LIMIT’, ‘256M’ );
    /* Custom Memory Limit in Admin */
    define( ‘WP_MAX_MEMORY_LIMIT’, ‘384M’ );

    Also, when I click on the button Check More PHP info, I see:
    This agrees with what I see in phpinfo()

    But I also see: memory_limit 384M (local) 256M (master) on your PHP Info page.

    Of course I am now realizing that I may need to change the PHP_MEMORY_LIMIT to 384M or more.

    Finally I notice in the admin dashboard I see:
    PHP Max Execution Time : 600 sec
    max_execution_time 600(local) 600(master)
    But also see in the PHP Info Apache section:

    • This topic was modified 5 months, 4 weeks ago by sgb02.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Saumya Majumder


    I don’t understand what you want me to do here? What’s your question?

    I think the problem is the labels on some of these fields in your dashboard don’t match the actual values or the configured values.

    For example the *actual* PHP Memory Limit is 256M (as configured in php.ini) but your dashboard shows PHP Memory Limit : 384 MB. But WP cannot actually set a value which is higher he the value in php.ini.

    The value you show as 384MB is the configured value of WP_MAX_MEMORY_LIMIT. But this value is misconfigured given the php.ini value.

    For the above scenario, your dashboard should show:
    PHP Memory Limit : 256 MB
    WP_MAX_MEMORY_LIMIT : 384M (error exceeds php.ini value)

    Plugin Author Saumya Majumder


    @sgb02 I completely understand your concern and I don’t think anyone should add the WP_MAX_MEMORY_LIMIT in wp-config anyways.

    But the thing is the plugin is not looking for any of those values. It gets the PHP memory limit but using this ini_get('memory_limit'); check more here:

    Which I think is returning the MAX_MEMORY_LIMIT is exists. ini_get provides the memory limit in bytes then the plugin recalculates it and show you in GB, MB etc.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.