Viewing 6 replies - 1 through 6 (of 6 total)
  • Not sure, but i don’t think there’s a way to limit the amount of memory for a specific plugin.

    Plugin Contributor photocrati

    (@photocrati)

    @bobcatou – NextGEN Gallery, like most any other plugin, would use what is available on the server … what is the concern you are trying to resolve by restricting its usage? Perhaps there is something else we can suggest.

    – Cais.

    Thread Starter Bryan Cady

    (@bobcatou)

    I’m getting this error about every minute or two in the site error log and I get 500 errors on the admin side of WP when navigating around the site on several occasions. These admin crashes seem to coordinate with these error log entries.

    I’m currently working with the host to see if I can get them to raise the allocated memory to 256mb.

    [Mon Jun 20 10:34:06 2016] [warn] [client 162.158.223.126] mod_fcgid: stderr: PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in /var/www/vhosts/ysnews.com/httpdocs/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/datamapper/package.module.datamapper.php on line 1554

    The host tells me he is running 128mb with a swap file, so I am not sure why there would be an exhausted memory with the swap.

    I was getting conflicting readings too on what the memory limit was from different plugins. I finally went into php.info and that said 128mb. I figure that is the best place for that.

    Any normal way of making a limit to WP memory doesn’t’ seem to work so I wanted to see if I could do it in the plugin itself, it would stay under 128mb.

    Does the same thing happen with all other plugins disabled?

    Thread Starter Bryan Cady

    (@bobcatou)

    Thanks guys.

    The host pushed the memory to 256mb and that has seemed to solve my issue.

    I felt I was getting some push-back from the host about doing that so I was hoping to find another resolution. It appears that an alternate solution won’t be needed

    Thanks for the input.

    Bryan

    Plugin Contributor photocrati

    (@photocrati)

    @bobcatou – Thanks for the update! We’re happy to read everything is sorted out.

    – Cais.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Can I change the WP memory limit within the plugin itself’ is closed to new replies.