Memory Issue

Tagged: , ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #261478
    admin585
    Participant

    Hi everyone,

    Recently migrated a site from one host to another. Since the migration, site load is extremely slow, about 17-25 seconds. Upon further investigation, I was hitting a memory cap. This was no big deal at the time I was on shared hosting and migrated to a VPS. I am now on my VPS and can see my site 1GB of RAM and the server then crashes and restarts. I tested disabling all my plugins and have ruled them out as the issue still occurs. I am leaning to a PHP issue.

    Old server:
    OS Type: Linux pod-130005 3.13.0-141-generic #190-Ubuntu SMP Fri Jan 19 12:52:38 UTC 2018 x86_64 (64 bit)
    Server Software: Apache
    CPU Cores: n/a Cores
    Load Average: n/a
    IP (Hostname): 127.0.0.1 (pod-130005)
    Disk Space: 0.00 KB (0%) used of 0.00 KB total
    Database Size: 38.85 MB
    Database Name (Hostname): wp_keystoliteracy (127.0.0.1)
    MySQL Version: 5.7.20-19-log
    Database Charset (Collate): utf8 (utf8_unicode_ci)
    Document Root: /nas/wp/www/sites/keystoliteracy
    Theme Path: /nas/content/live/keystoliteracy/wp-content/themes/Divi
    WP Locale (Charset): en-US (UTF-8)
    Server Timezone (WP): UTC (America/New_York)
    PHP Version: 7.0.25-0ubuntu0.16.04.1
    PHP Extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, standard, apache2handler, mysqlnd, PDO, xml, bcmath, bz2, calendar, ctype, curl, dba, dom, mbstring, fileinfo, ftp, gd, gettext, iconv, igbinary, imagick, imap, intl, json, ldap, exif, mcrypt, memcached, mysqli, newrelic, pdo_mysql, Phar, posix, readline, redis, shmop, SimpleXML, soap, sockets, ssh2, sysvmsg, sysvsem, sysvshm, tokenizer, uopz, wddx, xmlreader, xmlrpc, xmlwriter, xsl, zip, ionCube Loader, Zend OPcache
    Max Upload, Post Size (Input Vars): 50M, 100M (1000)
    Memory Usage: 26M (5%) of 512M (actual limit)
    WP Memory Limit: 40M (defined limit)
    WP Admin Memory Limit: 512M (defined limit)
    WP Debug: Disabled (no logging, display)
    Opcache Size (Max Files, Revalidate): 64M (2000, 2 secs)
    Page Cache (Plugin): Enabled
    Object Cache: Enabled

    New Server
    OS Type: Linux ps596454 3.14.52-vs2.3.6.15-1 #1 SMP Wed Nov 2 10:45:38 UTC 2016 x86_64 (64 bit)
    Server Software: Apache
    CPU Cores: 16 Cores
    Load Average: 0, 0, 0
    IP (Hostname): 69.163.238.173 (ps596454)
    Disk Space: 3.27 GB (11%) used of 30.00 GB total
    Database Size: 1.11 MB
    Database Name (Hostname): keystoliteracy_com_1 (mysql.keystoliteracy.com)
    MySQL Version: 5.6.34-log
    Database Charset (Collate): utf8 (n/a)
    Document Root: /home/keystoliteracy/keystoliteracy.com
    Theme Path: /home/keystoliteracy/keystoliteracy.com/wp-content/themes/twentyseventeen
    WP Locale (Charset): en-US (UTF-8)
    Server Timezone (WP): UTC (UTC+0)
    PHP Version: 7.0.27
    PHP Extensions: Core, date, libxml, pcre, sqlite3, filter, mbstring, SPL, PDO, Reflection, pdo_sqlite, hash, session, cgi-fcgi, bcmath, bz2, calendar, ctype, curl, dom, standard, ftp, gd, gettext, exif, iconv, imap, json, mcrypt, mysqlnd, openssl, pcntl, pdo_mysql, posix, pspell, mysqli, SimpleXML, soap, sockets, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib, imagick, memcached
    Max Upload, Post Size (Input Vars): 64M, 65M (1000)
    Memory Usage: 2M (1%) of 256M (actual limit)
    WP Memory Limit: 40M (defined limit)
    WP Admin Memory Limit: 256M (defined limit)
    WP Debug: Disabled (no logging, display)
    Opcache Size (Max Files, Revalidate): 0 (0, n/a secs)
    Page Cache (Plugin): Disabled
    Object Cache: Disabled

    The biggest thing I see is that MySQL is one version older and there are a lot of missing PHP extensions on the new host versus the old.

    After lots of testing, memory seems to be fairly stable, although high, until I start to upload the “Uploads” part of the restore.

    Any help would be a great start!

    #261716
    Dee Nutbourne
    Moderator

    Hi,

    Please could you send us a copy of the restoration log?
    This can be found in the ‘wp-content/updraft’ directory of the site via FTP.

    The contents will be too long to post here directly, but you can use an online service such as Dropbox or Pastebin, and post the link here.

    Best Wishes,
    David N

    #266778
    zwillis
    Participant

    I believe I’m seeing a similar problem. Server restart because the I/O Usage, the Physical Memory Usage, and the CPU all spike will during a backup. This is resulting in the server forcing a restart. Did a test tonight. Watched the numbers climb as the backup started, ultimately resulting in a Server 500 error.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Memory Issue’ is closed to new replies.