Join the community today
Register Now

Beta Branch Exhausted memory errors when moving to beta09

Discussion in 'Beta release code' started by Epic Internet Marketing, Jun 1, 2016.

  1. Epic Internet Marketing

    Epic Internet Marketing Member

    40
    7
    8
    Aug 3, 2014
    New York, NY
    Ratings:
    +18
    Local Time:
    11:51 AM
    1.12.x | PHP 7.1.x
    10.1
    Just moving over 1 of my WordPress sites to a different ramnode openvz, 512mb -> 512mb but I upgraded to centos 7 and the beta09 branch. I do remember vaguely setting my php.ini max memory to something over 128M originally and this time I put it into the custom_ini that's inside /php.d/ and I even raised it higher than 128M but regardless I still get a ton of
    Code:
    [31-May-2016 15:02:56 UTC] PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 16235705 bytes) in /home/nginx/domains/421flavors.com/public/wp-includes/wp-db.php on line 1127
    
    
    Code:
    [root@srvr ~]# free -m
    
                  total        used        free      shared  buff/cache   available
    
    Mem:            512           0         355         154         156         368
    
    Swap:           256         123         132
    Most people say to add more swap, but originally it was working on my last openvz, did the beta09 and/or centos 7 change things or configs that I should know about?
     
  2. eva2000

    eva2000 Administrator Staff Member

    28,926
    6,567
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,745
    Local Time:
    11:51 AM
    Nginx 1.13.x
    MariaDB 5.5
    from Download & Install Nginx on CentOS - CentminMod.com LEMP Nginx web stack for CentOS see minimum resource requirements particularly for centos 7

    but you ran up against PHP max memory limit of 256MB which you can raise if you had enough system memory
     
    • Informative Informative x 1
  3. eva2000

    eva2000 Administrator Staff Member

    28,926
    6,567
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,745
    Local Time:
    11:51 AM
    Nginx 1.13.x
    MariaDB 5.5
  4. Epic Internet Marketing

    Epic Internet Marketing Member

    40
    7
    8
    Aug 3, 2014
    New York, NY
    Ratings:
    +18
    Local Time:
    11:51 AM
    1.12.x | PHP 7.1.x
    10.1
    aww, cause I'm currently (read: successfully) hosting 3 other sites on 512mb openvz's - centmin08's with centos 7 only major difference being php 7 opposed to php 5.6 on this troublesome one.
     
  5. eva2000

    eva2000 Administrator Staff Member

    28,926
    6,567
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,745
    Local Time:
    11:51 AM
    Nginx 1.13.x
    MariaDB 5.5
    yeah simple rule is anything less than 1GBVPS, use CentOS 6.
     
    Last edited: Jun 1, 2016
  6. Epic Internet Marketing

    Epic Internet Marketing Member

    40
    7
    8
    Aug 3, 2014
    New York, NY
    Ratings:
    +18
    Local Time:
    11:51 AM
    1.12.x | PHP 7.1.x
    10.1
    Noted.

    However, I just solved my problem by upgrading to PHP 7 on this as well, had to toss an old plugin I used but it was worth it. I'll have to wait to run a mysql tuner to get the right speed but I think it will work out since the site gets only a few thousand visitors daily.
     
    • Informative Informative x 1