LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > LSWS 4.1 Release > 4.1rc2

Reply
 
Thread Tools Display Modes
  #11  
Old 11-19-2009, 11:45 AM
DraCoola DraCoola is offline
Senior Member
 
Join Date: Mar 2009
Posts: 149
Code:
root@xxx [/usr/local/lsws-4.1RC2]# ps -ef | grep lscgid
root      4499 20214  0 02:43 pts/0    00:00:00 grep lscgid
root     27094 27090  0 02:28 ?        00:00:00 httpd (lscgid)
Thank you, George.
But then... which one I should strace?
Reply With Quote
  #12  
Old 11-19-2009, 11:49 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
27094 is it.
Reply With Quote
  #13  
Old 11-19-2009, 11:51 AM
DraCoola DraCoola is offline
Senior Member
 
Join Date: Mar 2009
Posts: 149
Here they are :
Code:
root@xxx [/usr/local/lsws-4.1RC2]# strace -f -p 27094
Process 27094 attached - interrupt to quit
getppid()                               = 27090
poll([{fd=0, events=POLLIN}], 1, 1000)  = 0 (Timeout)
getppid()                               = 27090
poll([{fd=0, events=POLLIN}], 1, 1000)  = 0 (Timeout)
getppid()                               = 27090
poll([{fd=0, events=POLLIN}], 1, 1000)  = 0 (Timeout)
getppid()                               = 27090
poll([{fd=0, events=POLLIN}], 1, 1000)  = 0 (Timeout)
getppid()                               = 27090
poll([{fd=0, events=POLLIN}], 1, 1000)  = 0 (Timeout)
getppid()                               = 27090
poll([{fd=0, events=POLLIN}], 1, 1000)  = 0 (Timeout)
getppid()                               = 27090
poll([{fd=0, events=POLLIN}], 1, 1000)  = 0 (Timeout)
getppid()                               = 27090
poll([{fd=0, events=POLLIN}], 1, 1000)  = 0 (Timeout)
getppid()                               = 27090
poll([{fd=0, events=POLLIN}], 1, 1000)  = 0 (Timeout)
getppid()                               = 27090
poll([{fd=0, events=POLLIN}], 1, 1000 <unfinished ...>
Process 27094 detached
Reply With Quote
  #14  
Old 11-19-2009, 11:53 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
You have to produce the problem while stracing it.
Reply With Quote
  #15  
Old 11-19-2009, 11:58 AM
DraCoola DraCoola is offline
Senior Member
 
Join Date: Mar 2009
Posts: 149
Here they are :
Code:
root@xxx [/usr/local/lsws-4.1RC2]# strace -f -p 27094
Process 27094 attached - interrupt to quit
getppid()                               = 27090
poll([{fd=0, events=POLLIN}], 1, 1000)  = 0 (Timeout)
getppid()                               = 27090
poll([{fd=0, events=POLLIN}], 1, 1000)  = 0 (Timeout)
getppid()                               = 27090
poll([{fd=0, events=POLLIN}], 1, 1000)  = 0 (Timeout)
getppid()                               = 27090
poll([{fd=0, events=POLLIN}], 1, 1000)  = 1 ([{fd=0, revents=POLLIN}])
accept(0, 0, NULL)                      = 1
clone(Process 12258 attached (waiting for parent)
Process 12258 resumed (parent 27094 ready)
child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x2b61379d82a0) = 12258
[pid 27094] close(1)                    = 0
[pid 27094] poll([{fd=0, events=POLLIN}], 1, 1000 <unfinished ...>
[pid 12258] dup2(1, 0)                  = 0
[pid 12258] poll([{fd=0, events=POLLIN}], 1, 1000) = 1 ([{fd=0, revents=POLLIN}])
[pid 12258] read(0, "\1\0\0\0\4\0\0\0000\4\0\0\33\0\0\0\2\0\0\0\32\0\17\0c\0\0\0c\0\0\0"..., 120) = 120
[pid 12258] poll([{fd=0, events=POLLIN}], 1, 1000) = 1 ([{fd=0, revents=POLLIN}])
[pid 12258] read(0, "/usr/local/cpanel/cgi-sys/whmred"..., 1072) = 1072
[pid 12258] setpriority(PRIO_PROCESS, 0, 0) = 0
[pid 12258] setrlimit(RLIMIT_AS, {rlim_cur=512000*1024, rlim_max=524288*1024}) = 0
[pid 12258] setrlimit(RLIMIT_NPROC, {rlim_cur=6, rlim_max=7}) = 0
[pid 12258] setrlimit(RLIMIT_CPU, {rlim_cur=50, rlim_max=60}) = 0
[pid 12258] socket(PF_FILE, SOCK_STREAM, 0) = 3
[pid 12258] fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
[pid 12258] connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"...}, 110) = -1 ENOENT (No such file or directory)
[pid 12258] close(3)                    = 0
[pid 12258] socket(PF_FILE, SOCK_STREAM, 0) = 3
[pid 12258] fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
[pid 12258] connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"...}, 110) = -1 ENOENT (No such file or directory)
[pid 12258] close(3)                    = 0
[pid 12258] open("/etc/nsswitch.conf", O_RDONLY) = 3
[pid 12258] fstat(3, {st_mode=S_IFREG|0644, st_size=1696, ...}) = 0
[pid 12258] mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b61379c5000
[pid 12258] read(3, "#\n# /etc/nsswitch.conf\n#\n# An ex"..., 4096) = 1696
[pid 12258] read(3, "", 4096)           = 0
[pid 12258] close(3)                    = 0
[pid 12258] munmap(0x2b61379c5000, 4096) = 0
[pid 12258] open("/etc/ld.so.cache", O_RDONLY) = 3
[pid 12258] fstat(3, {st_mode=S_IFREG|0644, st_size=73150, ...}) = 0
[pid 12258] mmap(NULL, 73150, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2b61379c5000
[pid 12258] close(3)                    = 0
[pid 12258] open("/lib64/libnss_files.so.2", O_RDONLY) = 3
[pid 12258] read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\37\0\0\0\0\0\0"..., 832) = 832
[pid 12258] fstat(3, {st_mode=S_IFREG|0755, st_size=53880, ...}) = 0
[pid 12258] mmap(NULL, 2139432, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2b61379d9000
[pid 12258] mprotect(0x2b61379e3000, 2093056, PROT_NONE) = 0
[pid 12258] mmap(0x2b6137be2000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x9000) = 0x2b6137be2000
[pid 12258] close(3)                    = 0
[pid 12258] mprotect(0x2b6137be2000, 4096, PROT_READ) = 0
[pid 12258] munmap(0x2b61379c5000, 73150) = 0
[pid 12258] open("/etc/passwd", O_RDONLY) = 3
[pid 12258] fcntl(3, F_GETFD)           = 0
[pid 12258] fcntl(3, F_SETFD, FD_CLOEXEC) = 0
[pid 12258] fstat(3, {st_mode=S_IFREG|0644, st_size=51597, ...}) = 0
[pid 12258] mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b61379c5000
[pid 12258] read(3, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 4096
[pid 12258] close(3)                    = 0
[pid 12258] munmap(0x2b61379c5000, 4096) = 0
[pid 12258] setgid(99)                  = 0
[pid 12258] open("/proc/sys/kernel/ngroups_max", O_RDONLY) = 3
[pid 12258] read(3, "65536\n", 31)      = 6
[pid 12258] close(3)                    = 0
[pid 12258] socket(PF_FILE, SOCK_STREAM, 0) = 3
[pid 12258] fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
[pid 12258] connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"...}, 110) = -1 ENOENT (No such file or directory)
[pid 12258] close(3)                    = 0
[pid 12258] socket(PF_FILE, SOCK_STREAM, 0) = 3
[pid 12258] fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
[pid 12258] connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"...}, 110) = -1 ENOENT (No such file or directory)
[pid 12258] close(3)                    = 0
[pid 12258] open("/etc/group", O_RDONLY) = 3
[pid 12258] fcntl(3, F_GETFD)           = 0
[pid 12258] fcntl(3, F_SETFD, FD_CLOEXEC) = 0
[pid 12258] fstat(3, {st_mode=S_IFREG|0644, st_size=13330, ...}) = 0
[pid 12258] mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b61379c5000
[pid 12258] lseek(3, 0, SEEK_CUR)       = 0
[pid 12258] read(3, "root:x:0:root\nbin:x:1:root,bin,d"..., 4096) = 4096
[pid 12258] read(3, "6:\nsabar:x:900:\nsativa:x:901:\nsa"..., 4096) = 4096
[pid 12258] read(3, "404:\npelatcom:x:1405:\nkreaucom:x"..., 4096) = 4096
[pid 12258] read(3, "alere:x:1835:\nipodjunk:x:1836:\nm"..., 4096) = 1042
[pid 12258] read(3, "", 4096)           = 0
[pid 12258] close(3)                    = 0
[pid 12258] munmap(0x2b61379c5000, 4096) = 0
[pid 12258] setgroups(1, [99])          = 0
[pid 12258] setuid(99)                  = -1 EAGAIN (Resource temporarily unavailable)
[pid 12258] write(2, "lscgid: setuid():: Resource temp"..., 52) = 52
[pid 12258] write(0, "Status:403\n\nsetuid() failed!", 28) = 28
[pid 12258] close(0)                    = 0
[pid 12258] exit_group(0)               = ?
Process 12258 detached
<... poll resumed> )                    = -1 EINTR (Interrupted system call)
--- SIGCHLD (Child exited) @ 0 (0) ---
getppid()                               = 27090
poll([{fd=0, events=POLLIN}], 1, 1000)  = 0 (Timeout)
getppid()                               = 27090
poll([{fd=0, events=POLLIN}], 1, 1000)  = 0 (Timeout)
getppid()                               = 27090
poll([{fd=0, events=POLLIN}], 1, 1000)  = 0 (Timeout)
getppid()                               = 27090
poll([{fd=0, events=POLLIN}], 1, 1000 <unfinished ...>
Process 27094 detached
root@xxx [/usr/local/lsws-4.1RC2]#
Reply With Quote
  #16  
Old 11-19-2009, 12:02 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
too many processes running as "nobody", you need to increase "Process Soft Limit", "Process Hard Limit" accordingly.
http://www.litespeedtech.com/docs/we...#procSoftLimit
Reply With Quote
  #17  
Old 11-19-2009, 12:16 PM
DraCoola DraCoola is offline
Senior Member
 
Join Date: Mar 2009
Posts: 149
Thank you for your suggestion. I will do that
By the way... how to make lsws showing for php process (path, file) just like php with apache did?

-----------------------------------------------------------
LSWS --> http://img98.imageshack.us/img98/2473/lsws.jpg

Apache --> http://img136.imageshack.us/img136/4618/apache.jpg
-----------------------------------------------------------
Reply With Quote
  #18  
Old 11-19-2009, 12:39 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
It cannot show that now, we need to update the LSAPI code to do that.
Reply With Quote
  #19  
Old 11-19-2009, 01:02 PM
DraCoola DraCoola is offline
Senior Member
 
Join Date: Mar 2009
Posts: 149
What a pity...
But I hope it has already placed on your to do list
I will hopefuly wait for that LSAPI update release.
Because, sometimes, many users (especially their addon domains and subdomains) are squeezing CPU more harder than their main domain.
So the server administrator could handle (trace) that CPU-squeezer-php-files more quick and exactly right on the target.
Reply With Quote
  #20  
Old 11-24-2009, 08:20 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
You can try the php-lsapi 5.0b2, it will show the script name being executed.
You need to build PHP manually.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:34 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.