[Solved] Drastically Increased PHP RAM Usage after Rebuild, only via LiteSpeed

MikeDVB

Well-Known Member
#1
Hello,

This issue is quite odd and I've not yet been able to track down what is causing it. Users on a specific server running Drupal and one running Xenforo are reporting out of memory errors after recently rebuilding PHP 5.2.17 (to fix a GD Image issue). The configuration and options were exactly the same and we did a rebuild via Easy Apache followed by a rebuild using the LiteSpeed WHM plugin.

What is especially strange for me on this, is that I am 100% unable to reproduce the error via the CLI when using the php binary itself or the lsphp binary in the /usr/local/lsws/fcgi-bin directory.

When accessing the page using LiteSpeed (i.e. via the browser) the error happens about 50% of the time, and it is outputting errors like this:
Allowed memory size of 134217728 bytes exhausted (tried to allocate 519448896 bytes at (redacted).
Note that this did not happen before the PHP rebuild, and happens regularly after. This is 519 MB it's trying to allocate which is definitely abnormal. The limit set in the php.ini is actually 128 MB but the limit of 134217728 bytes is 134.2 MB so it looks like perhaps the script is setting it's own RAM limit. A phpinfo(); is displaying the correct local value - even if I set it to 1024M it will still fail.

I put a pause in the beginning of one of the scripts that is regularly having issues so I could get the PID and strace it and I'm seeing this (I redacted account specific information): (in next post due to length)
 
Last edited:

MikeDVB

Well-Known Member
#2
(10 characters outside of quote)
Process 774883 attached - interrupt to quit
restart_syscall(<... resuming interrupted call ...>) = 0
open("/home/accountname/public_html/community/library/XenForo/Autoloader.php", O_RDONLY) = 7
fstat(7, {st_mode=S_IFREG|0644, st_size=3517, ...}) = 0
mmap(NULL, 3517, PROT_READ, MAP_SHARED, 7, 0) = 0x2afd38585000
munmap(0x2afd38585000, 3517) = 0
close(7) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=20480, ...}) = 0
lstat("/home/accountname", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/XenForo", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/XenForo/Autoloader.php", {st_mode=S_IFREG|0644, st_size=3517, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=20480, ...}) = 0
lstat("/home/accountname", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/XenForo", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/XenForo/Autoloader.php", {st_mode=S_IFREG|0644, st_size=3517, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=20480, ...}) = 0
lstat("/home/accountname", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=20480, ...}) = 0
lstat("/home/accountname", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/XenForo", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/XenForo/Autoloader.php", {st_mode=S_IFREG|0644, st_size=3517, ...}) = 0
open("/home/accountname/public_html/community/library/XenForo/Autoloader.php", O_RDONLY) = 7
fstat(7, {st_mode=S_IFREG|0644, st_size=3517, ...}) = 0
fcntl(7, F_GETFL) = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat(7, {st_mode=S_IFREG|0644, st_size=3517, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2afd38585000
lseek(7, 0, SEEK_CUR) = 0
lseek(7, 0, SEEK_SET) = 0
read(7, "<?php\n\n/**\n* A constant that mus"..., 4096) = 3517
lseek(7, 3517, SEEK_SET) = 3517
read(7, "", 4096) = 0
read(7, "", 8192) = 0
read(7, "", 8192) = 0
close(7) = 0
munmap(0x2afd38585000, 4096) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=20480, ...}) = 0
lstat("/home/accountname", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/XenForo", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/XenForo/Application.php", {st_mode=S_IFREG|0644, st_size=26296, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=20480, ...}) = 0
lstat("/home/accountname", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
 
Last edited:

MikeDVB

Well-Known Member
#3
(10 chars outside of quote)
lstat("/home/accountname/public_html", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/XenForo", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/XenForo/Application.php", {st_mode=S_IFREG|0644, st_size=26296, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=20480, ...}) = 0
lstat("/home/accountname", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
access("/home/accountname/public_html/community/library/XenForo/Application.php", F_OK) = 0
open("/home/accountname/public_html/community/library/XenForo/Application.php", O_RDONLY) = 7
fstat(7, {st_mode=S_IFREG|0644, st_size=26296, ...}) = 0
mmap(NULL, 26296, PROT_READ, MAP_SHARED, 7, 0) = 0x2afd38585000
munmap(0x2afd38585000, 26296) = 0
close(7) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=20480, ...}) = 0
lstat("/home/accountname", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/XenForo", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/XenForo/Application.php", {st_mode=S_IFREG|0644, st_size=26296, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=20480, ...}) = 0
lstat("/home/accountname", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/XenForo", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/XenForo/Application.php", {st_mode=S_IFREG|0644, st_size=26296, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=20480, ...}) = 0
lstat("/home/accountname", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=20480, ...}) = 0
lstat("/home/accountname", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/XenForo", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/XenForo/Application.php", {st_mode=S_IFREG|0644, st_size=26296, ...}) = 0
open("/home/accountname/public_html/community/library/XenForo/Application.php", O_RDONLY) = 7
fstat(7, {st_mode=S_IFREG|0644, st_size=26296, ...}) = 0
fcntl(7, F_GETFL) = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat(7, {st_mode=S_IFREG|0644, st_size=26296, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2afd38585000
lseek(7, 0, SEEK_CUR) = 0
lseek(7, 0, SEEK_SET) = 0
read(7, "<?php\n\nif (!defined('XENFORO_AUT"..., 4096) = 4096
lseek(7, 4096, SEEK_SET) = 4096
read(7, ");\n\t\t}\n\t\tif (function_exists('ge"..., 4096) = 4096
read(7, "t->directory);\n\t}\n\n\t/**\n\t * Reso"..., 8192) = 8192
brk(0x10025000) = 0x10025000
read(7, "oader callback.\n\t*\n\t* @param str"..., 8192) = 8192
read(7, "$_randomData) < $length)\n\t\t{\n\t\t\t"..., 8192) = 1720
read(7, "", 4096) = 0
read(7, "", 8192) = 0
read(7, "", 8192) = 0
close(7) = 0
munmap(0x2afd38585000, 4096) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=20480, ...}) = 0
lstat("/home/accountname", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/Zend", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/Zend/Registry.php", {st_mode=S_IFREG|0644, st_size=6102, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=20480, ...}) = 0
lstat("/home/accountname", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/Zend", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/Zend/Registry.php", {st_mode=S_IFREG|0644, st_size=6102, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=20480, ...}) = 0
lstat("/home/accountname", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
access("/home/accountname/public_html/community/library/Zend/Registry.php", F_OK) = 0
open("/home/accountname/public_html/community/library/Zend/Registry.php", O_RDONLY) = 7
fstat(7, {st_mode=S_IFREG|0644, st_size=6102, ...}) = 0
mmap(NULL, 6102, PROT_READ, MAP_SHARED, 7, 0) = 0x2afd38585000
munmap(0x2afd38585000, 6102) = 0
close(7) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=20480, ...}) = 0
lstat("/home/accountname", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/Zend", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/Zend/Registry.php", {st_mode=S_IFREG|0644, st_size=6102, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=20480, ...}) = 0
lstat("/home/accountname", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/Zend", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/Zend/Registry.php", {st_mode=S_IFREG|0644, st_size=6102, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=20480, ...}) = 0
lstat("/home/accountname", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=20480, ...}) = 0
lstat("/home/accountname", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
 
Last edited:

MikeDVB

Well-Known Member
#4
(10 chars outside of quote)
lstat("/home/accountname/public_html", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/Zend", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/Zend/Registry.php", {st_mode=S_IFREG|0644, st_size=6102, ...}) = 0
open("/home/accountname/public_html/community/library/Zend/Registry.php", O_RDONLY) = 7
fstat(7, {st_mode=S_IFREG|0644, st_size=6102, ...}) = 0
fcntl(7, F_GETFL) = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat(7, {st_mode=S_IFREG|0644, st_size=6102, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2afd38585000
lseek(7, 0, SEEK_CUR) = 0
lseek(7, 0, SEEK_SET) = 0
read(7, "<?php\n/**\n * Zend Framework\n *\n "..., 4096) = 4096
lseek(7, 4096, SEEK_SET) = 4096
read(7, "ixed\n * @throws Zend_Excepti"..., 4096) = 2006
read(7, "", 4096) = 0
read(7, "", 8192) = 0
read(7, "", 8192) = 0
close(7) = 0
munmap(0x2afd38585000, 4096) = 0
open("/home/accountname/public_html/community/library/Lgpl/utf8.php", O_RDONLY) = 7
fstat(7, {st_mode=S_IFREG|0644, st_size=85413, ...}) = 0
mmap(NULL, 85413, PROT_READ, MAP_SHARED, 7, 0) = 0x2afd38585000
munmap(0x2afd38585000, 85413) = 0
close(7) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=20480, ...}) = 0
lstat("/home/accountname", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/Lgpl", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/Lgpl/utf8.php", {st_mode=S_IFREG|0644, st_size=85413, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=20480, ...}) = 0
lstat("/home/accountname", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/Lgpl", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/Lgpl/utf8.php", {st_mode=S_IFREG|0644, st_size=85413, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=20480, ...}) = 0
lstat("/home/accountname", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=20480, ...}) = 0
lstat("/home/accountname", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/Lgpl", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/Lgpl/utf8.php", {st_mode=S_IFREG|0644, st_size=85413, ...}) = 0
open("/home/accountname/public_html/community/library/Lgpl/utf8.php", O_RDONLY) = 7
fstat(7, {st_mode=S_IFREG|0644, st_size=85413, ...}) = 0
fcntl(7, F_GETFL) = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat(7, {st_mode=S_IFREG|0644, st_size=85413, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2afd38585000
lseek(7, 0, SEEK_CUR) = 0
lseek(7, 0, SEEK_SET) = 0
read(7, "<?php\n/**\n * UTF8 helper functio"..., 4096) = 4096
lseek(7, 4096, SEEK_SET) = 4096
read(7, "no specified length\n */\n"..., 4096) = 4096
brk(0x10065000) = 0x10065000
read(7, "])!','\\\\\\${1}',$charlist);\n\n "..., 8192) = 8192
read(7, " array(&$decoder, 'decode'), $s"..., 8192) = 8192
read(7, "n be > 0xFFFF. Occurrances of th"..., 8192) = 8192
brk(0x100a5000) = 0x100a5000
read(7, ",\"\341\274\263\"=>\"\341\274\273\",\"\341\274\262\"=>\"\341\274\272\",\"\341\274\261\""..., 8192) = 8192
read(7, ",\"\341\276\255\"=>\"\341\276\245\",\"\341\276\254\"=>\"\341\276\244\",\n "..., 8192) = 8192
mmap(NULL, 528384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2afd399e9000
read(7, " lower case accented letters\n *\n"..., 8192) = 8192
read(7, "xf8ed, 0xf8ee, 0xf8ef, 0xf8f0,\n "..., 8192) = 8192
read(7, "=>'fe','\343\201\265\343\201\203'=>'fi','\343\201\265\343\201\211'=>"..., 8192) = 8192
read(7, "\274'=>'tsee','\343\203\204\343\202\243\343\203\274'=>'tsii','"..., 8192) = 8192
read(7, "\343\203\246'=>'yu',\n '\343\203\265'=>'ka','\343\203\266'="..., 8192) = 3493
read(7, "", 4096) = 0
read(7, "", 8192) = 0
read(7, "", 8192) = 0
close(7) = 0
munmap(0x2afd38585000, 4096) = 0
brk(0x100e5000) = 0x100e5000
lstat("/home", {st_mode=S_IFDIR|0711, st_size=20480, ...}) = 0
lstat("/home/accountname", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/config.php", {st_mode=S_IFREG|0644, st_size=248, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=20480, ...}) = 0
lstat("/home/accountname", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
 
Last edited:

MikeDVB

Well-Known Member
#5
(10 chars outside of quote)
lstat("/home/accountname/public_html", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/config.php", {st_mode=S_IFREG|0644, st_size=248, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=20480, ...}) = 0
lstat("/home/accountname", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
access("/home/accountname/public_html/community/library/config.php", F_OK) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=20480, ...}) = 0
lstat("/home/accountname", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/Zend", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/Zend/Config.php", {st_mode=S_IFREG|0644, st_size=12961, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=20480, ...}) = 0
lstat("/home/accountname", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/Zend", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/Zend/Config.php", {st_mode=S_IFREG|0644, st_size=12961, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=20480, ...}) = 0
lstat("/home/accountname", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
access("/home/accountname/public_html/community/library/Zend/Config.php", F_OK) = 0
open("/home/accountname/public_html/community/library/Zend/Config.php", O_RDONLY) = 7
fstat(7, {st_mode=S_IFREG|0644, st_size=12961, ...}) = 0
mmap(NULL, 12961, PROT_READ, MAP_SHARED, 7, 0) = 0x2afd38585000
munmap(0x2afd38585000, 12961) = 0
close(7) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=20480, ...}) = 0
lstat("/home/accountname", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/Zend", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/Zend/Config.php", {st_mode=S_IFREG|0644, st_size=12961, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=20480, ...}) = 0
lstat("/home/accountname", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/Zend", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/Zend/Config.php", {st_mode=S_IFREG|0644, st_size=12961, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=20480, ...}) = 0
lstat("/home/accountname", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=20480, ...}) = 0
lstat("/home/accountname", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/Zend", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/Zend/Config.php", {st_mode=S_IFREG|0644, st_size=12961, ...}) = 0
open("/home/accountname/public_html/community/library/Zend/Config.php", O_RDONLY) = 7
fstat(7, {st_mode=S_IFREG|0644, st_size=12961, ...}) = 0
fcntl(7, F_GETFL) = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat(7, {st_mode=S_IFREG|0644, st_size=12961, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2afd38585000
lseek(7, 0, SEEK_CUR) = 0
lseek(7, 0, SEEK_SET) = 0
read(7, "<?php\n/**\n * Zend Framework\n *\n "..., 4096) = 4096
lseek(7, 4096, SEEK_SET) = 4096
read(7, "ixed $value\n * @throws Zend"..., 4096) = 4096
read(7, "the current config.\n *\n "..., 8192) = 4769
read(7, "", 4096) = 0
read(7, "", 8192) = 0
read(7, "", 8192) = 0
close(7) = 0
 

MikeDVB

Well-Known Member
#6
munmap(0x2afd38585000, 4096) = 0
open("/home/accountname/public_html/community/library/config.php", O_RDONLY) = 7
fstat(7, {st_mode=S_IFREG|0644, st_size=248, ...}) = 0
mmap(NULL, 248, PROT_READ, MAP_SHARED, 7, 0) = 0x2afd38585000
munmap(0x2afd38585000, 248) = 0
close(7) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=20480, ...}) = 0
lstat("/home/accountname", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/config.php", {st_mode=S_IFREG|0644, st_size=248, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=20480, ...}) = 0
lstat("/home/accountname", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/config.php", {st_mode=S_IFREG|0644, st_size=248, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=20480, ...}) = 0
lstat("/home/accountname", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=20480, ...}) = 0
lstat("/home/accountname", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/config.php", {st_mode=S_IFREG|0644, st_size=248, ...}) = 0
open("/home/accountname/public_html/community/library/config.php", O_RDONLY) = 7
fstat(7, {st_mode=S_IFREG|0644, st_size=248, ...}) = 0
fcntl(7, F_GETFL) = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat(7, {st_mode=S_IFREG|0644, st_size=248, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2afd38585000
lseek(7, 0, SEEK_CUR) = 0
lseek(7, 0, SEEK_SET) = 0
read(7, "<?php\r\n\r\n$config['db']['host'] ="..., 4096) = 248
lseek(7, 248, SEEK_SET) = 248
read(7, "", 4096) = 0
read(7, "", 8192) = 0
read(7, "", 8192) = 0
close(7) = 0
munmap(0x2afd38585000, 4096) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=20480, ...}) = 0
lstat("/home/accountname", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/XenForo", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/XenForo/CssOutput.php", {st_mode=S_IFREG|0644, st_size=14752, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=20480, ...}) = 0
lstat("/home/accountname", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/XenForo", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/XenForo/CssOutput.php", {st_mode=S_IFREG|0644, st_size=14752, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=20480, ...}) = 0
lstat("/home/accountname", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
access("/home/accountname/public_html/community/library/XenForo/CssOutput.php", F_OK) = 0
open("/home/accountname/public_html/community/library/XenForo/CssOutput.php", O_RDONLY) = 7
fstat(7, {st_mode=S_IFREG|0644, st_size=14752, ...}) = 0
mmap(NULL, 14752, PROT_READ, MAP_SHARED, 7, 0) = 0x2afd38585000
munmap(0x2afd38585000, 14752) = 0
close(7) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=20480, ...}) = 0
lstat("/home/accountname", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/XenForo", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/XenForo/CssOutput.php", {st_mode=S_IFREG|0644, st_size=14752, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=20480, ...}) = 0
lstat("/home/accountname", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/XenForo", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/XenForo/CssOutput.php", {st_mode=S_IFREG|0644, st_size=14752, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=20480, ...}) = 0
lstat("/home/accountname", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=20480, ...}) = 0
lstat("/home/accountname", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/XenForo", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/accountname/public_html/community/library/XenForo/CssOutput.php", {st_mode=S_IFREG|0644, st_size=14752, ...}) = 0
open("/home/accountname/public_html/community/library/XenForo/CssOutput.php", O_RDONLY) = 7
fstat(7, {st_mode=S_IFREG|0644, st_size=14752, ...}) = 0
fcntl(7, F_GETFL) = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat(7, {st_mode=S_IFREG|0644, st_size=14752, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2afd38585000
lseek(7, 0, SEEK_CUR) = 0
lseek(7, 0, SEEK_SET) = 0
read(7, "<?php\n\n/**\n * Class to output CS"..., 4096) = 4096
lseek(7, 4096, SEEK_SET) = 4096
read(7, "d($this->_styleId);\n\t\tXenForo_Te"..., 4096) = 4096
read(7, "hadow\n\t\t\t// box-shadow: left bot"..., 8192) = 6560
read(7, "", 4096) = 0
read(7, "", 8192) = 0
read(7, "", 8192) = 0
close(7) = 0
munmap(0x2afd38585000, 4096) = 0
chdir("/usr/local/lsws/fcgi-bin") = 0
munmap(0x2afd399e9000, 528384) = 0
brk(0xffde000) = 0xffde000
brk(0x1001e000) = 0x1001e000
open("error_log", O_WRONLY|O_CREAT|O_APPEND, 0644) = -1 EACCES (Permission denied)
writev(6, [{"LS\6\0\203\0\0\0", 8}, {"PHP Fatal error: Allowed memory"..., 123}], 2) = 131
brk(0x1005e000) = 0x1005e000
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
Process 774883 detached
The message displayed in the browser is:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 261847360 bytes) in Unknown on line 0

When I run this via php 5.3 the issue does not occur, and if I run it via php 5.2 on the CLI the issue does not occur. This is only happening when it's being processed by LiteSpeed. I'm not necessarily saying this *is* a LiteSpeed issue but I'm not sure where else to look. I know cPanel isn't going to be helpful because the second they see LiteSpeed they say "Sorry, you're using an unsupported software (support it yourself)."
 
Last edited:

MikeDVB

Well-Known Member
#7
Over the last couple of hours a lot of users are reporting memory exhaustion errors even with very light scripts that shouldn't be using more than a few megabytes. Without any other ideas/suggestions the only thing I can think to do is to roll back the PHP version to see if that resolves it. Hopefully this isn't a bug that PHP has back ported into older versions.

I'm still open to ideas and suggestions.

Here is the strace to another script on the same server, which is failing due to memory exhaustion: (pastebinned this one to save length) http://pastebin.com/RzqXUea3
 
Last edited:
Top