openlitespeed lsphp processes not dying

lonea

Verified User
Joined
Jan 3, 2009
Messages
45
Switched the openlitespeed and it seems like the PHP processes are not dying properly.

When I check top and the lsphp processes is just piling up to the Entry process limit.

Adjusted the max_execution_time to 10 seconds but the processes are still there.

For example,

strace -p 2507378
strace: Process 2507378 attached
select(4, [3], NULL, NULL, {0, 540249}) = 0 (Timeout)
getppid() = 2387341
open("/proc/meminfo", O_RDONLY|O_CLOEXEC) = 5
fstat(5, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f635dcd4000
read(5, "MemTotal: 8009576 kB\nMemF"..., 1024) = 1024
close(5) = 0
munmap(0x7f635dcd4000, 4096) = 0
select(4, [3], NULL, NULL, {1, 0}) = 0 (Timeout)
getppid() = 2387341
open("/proc/meminfo", O_RDONLY|O_CLOEXEC) = 5
fstat(5, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f635dcd4000
read(5, "MemTotal: 8009576 kB\nMemF"..., 1024) = 1024
close(5) = 0
munmap(0x7f635dcd4000, 4096) = 0
select(4, [3], NULL, NULL, {1, 0}) = 0 (Timeout)
getppid() = 2387341
open("/proc/meminfo", O_RDONLY|O_CLOEXEC) = 5
fstat(5, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f635dcd4000
read(5, "MemTotal: 8009576 kB\nMemF"..., 1024) = 1024
close(5) = 0
munmap(0x7f635dcd4000, 4096) = 0
select(4, [3], NULL, NULL, {1, 0}) = 0 (Timeout)
getppid() = 2387341
open("/proc/meminfo", O_RDONLY|O_CLOEXEC) = 5
fstat(5, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f635dcd4000
read(5, "MemTotal: 8009576 kB\nMemF"..., 1024) = 1024
close(5) = 0
munmap(0x7f635dcd4000, 4096) = 0
select(4, [3], NULL, NULL, {1, 0}) = 0 (Timeout)
getppid() = 2387341
open("/proc/meminfo", O_RDONLY|O_CLOEXEC) = 5
fstat(5, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f635dcd4000
read(5, "MemTotal: 8009576 kB\nMemF"..., 1024) = 1024
close(5) = 0
munmap(0x7f635dcd4000, 4096) = 0
select(4, [3], NULL, NULL, {1, 0}) = 0 (Timeout)
getppid() = 2387341
open("/proc/meminfo", O_RDONLY|O_CLOEXEC) = 5
fstat(5, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f635dcd4000
read(5, "MemTotal: 8009576 kB\nMemF"..., 1024) = 1024
close(5) = 0
munmap(0x7f635dcd4000, 4096) = 0
select(4, [3], NULL, NULL, {1, 0}^Cstrace: Process 2507378 detached
<detached ...>

Any idea?
 
Last edited:
Just did a full build on the server and issue seems to be still happening.

Any other update I should be running? Already did a yum update -y

lsphp -i | grep -i litespeed
Configure Command => './configure' '--prefix=/usr/local/php56' '--program-suffix=56' '--with-litespeed' '--with-config-file-scan-dir=/usr/local/php56/lib/php.conf.d' '--with-curl' '--with-gd' '--enable-gd-native-ttf' '--with-gettext' '--with-jpeg-dir=/usr/local/lib' '--with-freetype-dir=/usr/local/lib' '--with-libxml-dir=/usr/local/lib' '--with-kerberos' '--with-openssl' '--with-mcrypt' '--with-mhash' '--with-mysql=mysqlnd' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-mysqli=mysqlnd' '--with-pcre-regex=/usr/local' '--with-pdo-mysql=mysqlnd' '--with-pear' '--with-png-dir=/usr/local/lib' '--with-xsl' '--with-zlib' '--enable-zip' '--with-iconv=/usr/local' '--enable-bcmath' '--enable-calendar' '--enable-exif' '--enable-ftp' '--enable-sockets' '--enable-soap' '--enable-mbstring' '--with-icu-dir=/usr/local/icu' '--enable-intl' 'CXXFLAGS=-std=c++11 '-DU_USING_ICU_NAMESPACE=1''
Server API => LiteSpeed V7.5
litespeed
 
Hm.. it's 7.5, maybe another bug there? I'd suggest trying their support channel in Slack or just mailing them on the issue. Is this OpenLiteSpeed 1.5.3?
 
You may give lsapi 7.4.2 or older a try then to see if that changes anything.
 
Is there a way to downgrade using CustomBuild 2.0 plugin or I have to manually do it via cli?
We always use the latest version, but you may edit "build" script, find:
Code:
PHP_LSAPI_VER="`curl -k -L --silent --fail http://update.litespeedtech.com/ws/latest.php | grep 'PHP-LSAPI' | cut -d= -f2`"

Replace with, for example, old 7.2:
Code:
PHP_LSAPI_VER=7.2

Run "./build php n" (do not do "./build update" as it'd overwrite your build script) :) After this "lsphp -i | grep -i litespeed" should show 7.2 as the version.
 
Same issue after downgrading.

I'm just gonna stay with Apache + suphp until this is resolved.

We always use the latest version, but you may edit "build" script, find:
Code:
PHP_LSAPI_VER="`curl -k -L --silent --fail http://update.litespeedtech.com/ws/latest.php | grep 'PHP-LSAPI' | cut -d= -f2`"

Replace with, for example, old 7.2:
Code:
PHP_LSAPI_VER=7.2

Run "./build php n" (do not do "./build update" as it'd overwrite your build script) :) After this "lsphp -i | grep -i litespeed" should show 7.2 as the version.
 
Back
Top