PHP Errors

3 posts / 0 new
Last post
#1 Thu, 03/19/2015 - 14:26
MichaelS

PHP Errors

Hi Everyone,

I'm running into memory issues with a vps that uses Virtualmin.

Here's the rundown that might help;

  • Virtualmin
  • on a openvz vps
  • sites use Nginx and PHP-FPM on Ubuntu
  • was using swap but not anymore
  • checked all php.ini's related to account

This is the error I'm getting;

Fatal Error Unable to allocate shared memory segment of 536870912 bytes: mmap: Cannot allocate memory (12)

and the email related to the error;

Cron <root@#####> [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime)

I've made the same changes to other vps's that also use Ubuntu/Nginx/PHP-FPM but no not use Virtualmin and those ones have not produced these errors.

I've tired reducing the memory on just about everything I could think of (.conf files, ini files, etc)

Any help, suggestions or guidance would be apprenticed.

Thanks,

M

Thu, 03/19/2015 - 15:40
andreychek

Howdy,

Hmm, what is the value of the PHP "memory_limit" parameter in your php.ini file for that domain?

Also, what is the output of this command:

cat /proc/user_beancounters

Thu, 03/19/2015 - 15:42
MichaelS

Hi,

I found the issue. It was within the opcache.ini.

I adjust the opcache.memory_consumption line and everything is good now.

Thanks :)

Topic locked