503 Service Unavilable After with to 3.3.10 , lsphp5 Fresh Installation

vivek

Well-Known Member
#1
Hello

I recently installed a fresh copy of lsws with php 5.2.4. Everything is working fine.

But since then one of our website , which is using Jooma, is showing 503 error

Check HERE and try to post a comment below.

I tried to increase the process soft and hard limit to even 1000 from the default vals 200. , but seems not working

Mistwang, you must be knowing why I recompiled and reinstalled litespeed.

Any help to fix it ?

Vivek
 

vivek

Well-Known Member
#2
[root@monster logs]# grep -i youthkerala.com error_log
2008-04-13 23:34:13.103 [INFO] [APVH_youthkerala.comSuphp:] pid list size: 1
2008-04-13 23:34:13.103 [INFO] [APVH_youthkerala.comSuphp:] add child process pid: 10510
[root@monster logs]# grep -i youthkerala.com error_log
2008-04-13 23:34:13.103 [INFO] [APVH_youthkerala.comSuphp:] pid list size: 1
2008-04-13 23:34:13.103 [INFO] [APVH_youthkerala.comSuphp:] add child process pid: 10510
2008-04-13 23:34:13.513 [INFO] [116.68.66.194:53372-0#APVH_youthkerala.com] connection to [uds://tmp/lshttpd/APVH_youthkerala.com_Suphp.sock] on request #0, error: Connection reset by peer!
2008-04-13 23:34:13.535 [INFO] [APVH_youthkerala.comSuphp:] pid list size: 2
2008-04-13 23:34:13.535 [INFO] [116.68.66.194:53372-0#APVH_youthkerala.com] add child process pid: 10514
2008-04-13 23:34:13.535 [INFO] Pid: 10510 associated with [APVH_youthkerala.comSuphp:]
2008-04-13 23:34:13.535 [INFO] [APVH_youthkerala.comSuphp:] pid list size: 1, pid stop list size: 0
2008-04-13 23:34:13.770 [INFO] [116.68.66.194:53372-0#APVH_youthkerala.com] connection to [uds://tmp/lshttpd/APVH_youthkerala.com_Suphp.sock] on request #0, error: Connection reset by peer!
2008-04-13 23:34:13.790 [INFO] [APVH_youthkerala.comSuphp:] pid list size: 2
2008-04-13 23:34:13.790 [INFO] [116.68.66.194:53372-0#APVH_youthkerala.com] add child process pid: 10520
2008-04-13 23:34:13.790 [INFO] Pid: 10514 associated with [APVH_youthkerala.comSuphp:]
2008-04-13 23:34:13.790 [INFO] [APVH_youthkerala.comSuphp:] pid list size: 1, pid stop list size: 0
2008-04-13 23:34:14.057 [INFO] [116.68.66.194:53372-0#APVH_youthkerala.com] connection to [uds://tmp/lshttpd/APVH_youthkerala.com_Suphp.sock] on request #0, error: Connection reset by peer!
2008-04-13 23:34:14.057 [NOTICE] [116.68.66.194:53372-0#APVH_youthkerala.com] oops! 503 Service Unavailable
2008-04-13 23:34:14.057 [NOTICE] [116.68.66.194:53372-0#APVH_youthkerala.com] Content len: 123, Request line:
2008-04-13 23:34:14.057 [INFO] Pid: 10520 associated with [APVH_youthkerala.comSuphp:]
2008-04-13 23:34:14.057 [INFO] [APVH_youthkerala.comSuphp:] pid list size: 0, pid stop list size: 0
2008-04-13 23:34:14.057 [NOTICE] [APVH_youthkerala.comSuphp:] stop worker processes
[root@monster logs]# grep -i youthkerala.com stderr.log
[root@monster logs]#
 

vivek

Well-Known Member
#6
Now,

What is this mail ?

lfd: Excessive resource usage: server (492)

Time: Mon Apr 14 00:18:53 2008
Account: server
Resource: Virtual Memory Size
Exceeded: 111 > 100 (MB)
Executable: /home/lsws/fcgi-bin/lsphp-5.2.4
Command Line: lsphp5
PID: 492
Killed: No



I cant find any option in External App with 100M . How do I increase it ?
 

mistwang

LiteSpeed Staff
#7
Memory soft/hard limit for lsphp5 external app. I am not sure it is limited by the system or not though.

Also need to check why it use more than 100MB for a joomla site, allocate too much memory for opcode cache or something else.
 

vivek

Well-Known Member
#8
Memory soft/hard limit for lsphp5 external app. I am not sure it is limited by the system or not though.

Also need to check why it use more than 100MB for a joomla site, allocate too much memory for opcode cache or something else.
This email is not regrding the joomla site. Its regarding another domain.
 

mistwang

LiteSpeed Staff
#9
What is this mail ?

lfd: Excessive resource usage: server (492)

Time: Mon Apr 14 00:18:53 2008
Account: server
Resource: Virtual Memory Size
Exceeded: 111 > 100 (MB)
Executable: /home/lsws/fcgi-bin/lsphp-5.2.4
Command Line: lsphp5
PID: 492
Killed: No

I cant find any option in External App with 100M . How do I increase it ?
I think this email is sent by lfd, 100 MB probably is a configuration for lfd script.
 

vivek

Well-Known Member
#15
[root@monster esmartci]# strace -p 3597
Process 3597 attached - interrupt to quit
select(5, [4], NULL, NULL, {0, 472000}) = 0 (Timeout)
kill(3517, SIG_0) = -1 EPERM (Operation not permitted)
select(5, [4], NULL, NULL, {1, 0}) = 0 (Timeout)
kill(3517, SIG_0) = -1 EPERM (Operation not permitted)
select(5, [4], NULL, NULL, {1, 0}) = 0 (Timeout)
kill(3517, SIG_0) = -1 EPERM (Operation not permitted)
select(5, [4], NULL, NULL, {1, 0}) = 0 (Timeout)
kill(3517, SIG_0) = -1 EPERM (Operation not permitted)
select(5, [4], NULL, NULL, {1, 0}) = 0 (Timeout)
kill(3517, SIG_0) = -1 EPERM (Operation not permitted)
select(5, [4], NULL, NULL, {1, 0}) = 0 (Timeout)
kill(3517, SIG_0) = -1 EPERM (Operation not permitted)
select(5, [4], NULL, NULL, {1, 0}) = 0 (Timeout)
kill(3517, SIG_0) = -1 EPERM (Operation not permitted)
select(5, [4], NULL, NULL, {1, 0}) = 0 (Timeout)
kill(3517, SIG_0) = -1 EPERM (Operation not permitted)
select(5, [4], NULL, NULL, {1, 0}) = 0 (Timeout)
kill(3517, SIG_0) = -1 EPERM (Operation not permitted)
select(5, [4], NULL, NULL, {1, 0}) = 0 (Timeout)
kill(3517, SIG_0) = -1 EPERM (Operation not permitted)
select(5, [4], NULL, NULL, {1, 0}) = 0 (Timeout)
kill(3517, SIG_0) = -1 EPERM (Operation not permitted)
select(5, [4], NULL, NULL, {1, 0}) = 0 (Timeout)
brk(0xf03000) = 0xf03000
brk(0xeee000) = 0xeee000
shmdt(0x2a96823000) = 0
shmctl(614760483, IPC_RMID, 0x7fbffffc70) = -1 EINVAL (Invalid argument)
close(3) = 0
munmap(0x2a968a3000, 4096) = 0
unlink("/tmp/ZCUDfyr58P") = -1 ENOENT (No such file or directory)
munmap(0x2a961a1000, 1928824) = 0
munmap(0x2a96378000, 1058608) = 0
munmap(0x2a96597000, 2668464) = 0
munmap(0x2a96160000, 266240) = 0
exit_group(0) = ?
Process 3597 detached
 

mistwang

LiteSpeed Staff
#18
After you start to strace the process, send a request that result in 503 error, strace will dump all system calls involved with processing that request. And you should be able to find out why PHP failed to process that request based on the output.
 

vivek

Well-Known Member
#19
lstat("/home/youth", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=61440, ...}) = 0
lstat("/home/youth", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/youth/public_html", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/controller", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/controller/compressor.php", {st_mode=S_IFREG|0644, st_size=23695, ...}) = 0
open("/home/youth/public_html/home/mambots/system/php_speedy/controller/compressor.php", O_RDONLY) = 6
fstat(6, {st_mode=S_IFREG|0644, st_size=23695, ...}) = 0
fcntl(6, F_GETFL) = 0x8000 (flags O_RDONLY|O_LARGEFILE)

fstat(6, {st_mode=S_IFREG|0644, st_size=23695, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a99c84000
lseek(6, 0, SEEK_CUR) = 0
lseek(6, 0, SEEK_SET) = 0
read(6, "<?php\r\n/**\r\n * Gzips and minifie"..., 4096) = 4096
lseek(6, 4096, SEEK_SET) = 4096
read(6, " \'type\'=>\'text/javascript\',"..., 4096) = 4096
read(6, "t\'] = $options[\'ext\'];\r\n\t\t\r\n\t\t//"..., 8192) = 8192
read(6, ");\r\n\t\r\n\tforeach($types AS $type)"..., 8192) = 7311
read(6, "", 4096) = 0
read(6, "", 8192) = 0
read(6, "", 8192) = 0
close(6) = 0
munmap(0x2a99c84000, 4096) = 0
open("/home/youth/public_html/home/mambots/system/php_speedy/libs/php/view.php", O_RDONLY) = 6
fstat(6, {st_mode=S_IFREG|0644, st_size=3833, ...}) = 0
mmap(NULL, 3833, PROT_READ, MAP_SHARED, 6, 0) = 0x2a99c84000
munmap(0x2a99c84000, 3833) = 0
close(6) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=61440, ...}) = 0
lstat("/home/youth", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/youth/public_html", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/libs", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/libs/php", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/libs/php/view.php", {st_mode=S_IFREG|0644, st_size=3833, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=61440, ...}) = 0
lstat("/home/youth", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/youth/public_html", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/libs", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/libs/php", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/libs/php/view.php", {st_mode=S_IFREG|0644, st_size=3833, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=61440, ...}) = 0
lstat("/home/youth", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=61440, ...}) = 0
lstat("/home/youth", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/youth/public_html", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/libs", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/libs/php", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/libs/php/view.php", {st_mode=S_IFREG|0644, st_size=3833, ...}) = 0
open("/home/youth/public_html/home/mambots/system/php_speedy/libs/php/view.php", O_RDONLY) = 6
fstat(6, {st_mode=S_IFREG|0644, st_size=3833, ...}) = 0
fcntl(6, F_GETFL) = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat(6, {st_mode=S_IFREG|0644, st_size=3833, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a99c84000
lseek(6, 0, SEEK_CUR) = 0
lseek(6, 0, SEEK_SET) = 0
read(6, "<?php\r\n/**\r\n * Very basic templa"..., 4096) = 3833
lseek(6, 3833, SEEK_SET) = 3833
read(6, "", 4096) = 0
read(6, "", 8192) = 0
read(6, "", 8192) = 0
close(6) = 0
munmap(0x2a99c84000, 4096) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=61440, ...}) = 0
lstat("/home/youth", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/youth/public_html", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=61440, ...}) = 0
lstat("/home/youth", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/youth/public_html", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=61440, ...}) = 0
lstat("/home/youth", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
access("/home/youth/public_html", F_OK) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=61440, ...}) = 0
 

vivek

Well-Known Member
#20
lstat("/home/youth", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/youth/public_html", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/libs", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/libs/php", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/libs/php/jsmin.php", {st_mode=S_IFREG|0644, st_size=8029, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=61440, ...}) = 0
lstat("/home/youth", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/youth/public_html", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/libs", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/libs/php", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/libs/php/jsmin.php", {st_mode=S_IFREG|0644, st_size=8029, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=61440, ...}) = 0
lstat("/home/youth", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/youth/public_html", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/libs", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/libs/php", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/libs/php/jsmin.php", {st_mode=S_IFREG|0644, st_size=8029, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=61440, ...}) = 0
lstat("/home/youth", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=61440, ...}) = 0
lstat("/home/youth", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/youth/public_html", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/libs", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/libs/php", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/youth/public_html/home/mambots/system/php_speedy/libs/php/jsmin.php", {st_mode=S_IFREG|0644, st_size=8029, ...}) = 0
open("/home/youth/public_html/home/mambots/system/php_speedy/libs/php/jsmin.php", O_RDONLY) = 6
fstat(6, {st_mode=S_IFREG|0644, st_size=8029, ...}) = 0

open("/home/youth/public_html/home/mambots/system/php_speedy/libs/php/jsmin.php", O_RDONLY) = 7
fstat(7, {st_mode=S_IFREG|0644, st_size=8029, ...}) = 0
mmap(NULL, 8029, PROT_READ, MAP_SHARED, 7, 0) = 0x2a99c84000
munmap(0x2a99c84000, 8029) = 0
close(7) = 0
fcntl(6, F_GETFL) = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat(6, {st_mode=S_IFREG|0644, st_size=8029, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a99c84000
lseek(6, 0, SEEK_CUR) = 0
lseek(6, 0, SEEK_SET) = 0
read(6, "<?php\r\n/**\r\n * jsmin.php - PHP i"..., 4096) = 4096
lseek(6, 4096, SEEK_SET) = 4096
read(6, " }\r\n elsei"..., 4096) = 3933
read(6, "", 4096) = 0
read(6, "", 8192) = 0
read(6, "", 8192) = 0
close(6) = 0
munmap(0x2a99c84000, 4096) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=61440, ...}) = 0
lstat("/home/youth", {st_mode=S_IFDIR|0711, st_size=4096, ...}) = 0
lstat("/home/youth/public_html", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0711, st_size=61440, ...}) = 0
 
Top