Smith Nevil

Registered
Oct 17, 2017
2
0
1
India
cPanel Access Level
Root Administrator
Even though cloudlinux throttles memory of accounts, servers memory get exhausted and later becomes unresponsive.

When checking the process of most memory used accounts could find this:


[email protected] ~]# ps aux | grep labovelo
labovelo 1219497 0.4 0.0 363056 23012 ? Ss 00:22 0:00 lsphp

Strace of the process give the following, looks like they are stuck ecah lsphp uses most of the memory.

Code:
[[email protected]~]# strace -p 1219497
strace: Process 1219497 attached
select(6, [5], NULL, NULL, {0, 900787}) = ? ERESTARTNOHAND (To be restarted if no handler)
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=1219694, si_uid=1057, si_status=0, si_utime=21, si_stime=3} ---
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG|WSTOPPED, NULL) = 1219694
wait4(-1, 0x7fff9cda3fd4, WNOHANG|WSTOPPED, NULL) = -1 ECHILD (No child processes)
rt_sigreturn({mask=[]})                 = -1 EINTR (Interrupted system call)
select(6, [5], NULL, NULL, {1, 0})      = 0 (Timeout)
select(6, [5], NULL, NULL, {1, 0})      = 1 (in [5], left {0, 389234})
accept(5, {sa_family=AF_LOCAL, NULL}, [2]) = 7
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x2b360db37cd0) = 1219742
close(7)                                = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
select(6, [5], NULL, NULL, {1, 0})      = 0 (Timeout)
select(6, [5], NULL, NULL, {1, 0})      = ? ERESTARTNOHAND (To be restarted if no handler)
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=1219742, si_uid=1057, si_status=0, si_utime=32, si_stime=3} ---
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG|WSTOPPED, NULL) = 1219742
wait4(-1, 0x7fff9cda3fd4, WNOHANG|WSTOPPED, NULL) = -1 ECHILD (No child processes)
rt_sigreturn({mask=[]})                 = -1 EINTR (Interrupted system call)
select(6, [5], NULL, NULL, {1, 0})      = 0 (Timeout)
select(6, [5], NULL, NULL, {1, 0})      = 0 (Timeout)
select(6, [5], NULL, NULL, {1, 0})      = 0 (Timeout)
select(6, [5], NULL, NULL, {1, 0})      = 0 (Timeout)
select(6, [5], NULL, NULL, {1, 0})      = 0 (Timeout)
select(6, [5], NULL, NULL, {1, 0})      = 0 (Timeout)
select(6, [5], NULL, NULL, {1, 0})      = 0 (Timeout)
select(6, [5], NULL, NULL, {1, 0})      = 0 (Timeout)
select(6, [5], NULL, NULL, {1, 0})      = 0 (Timeout)
select(6, [5], NULL, NULL, {1, 0})      = 0 (Timeout)
select(6, [5], NULL, NULL, {1, 0})      = 0 (Timeout)
select(6, [5], NULL, NULL, {1, 0})      = 0 (Timeout)
select(6, [5], NULL, NULL, {1, 0})      = 0 (Timeout)
select(6, [5], NULL, NULL, {1, 0})      = 0 (Timeout)
select(6, [5], NULL, NULL, {1, 0})      = 1 (in [5], left {0, 216528})
accept(5, {sa_family=AF_LOCAL, NULL}, [2]) = 7
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x2b360db37cd0) = 1220081
close(7)                                = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
select(6, [5], NULL, NULL, {1, 0})      = ? ERESTARTNOHAND (To be restarted if no handler)
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=1220081, si_uid=1057, si_status=0, si_utime=17, si_stime=2} ---
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG|WSTOPPED, NULL) = 1220081
wait4(-1, 0x7fff9cda3fd4, WNOHANG|WSTOPPED, NULL) = -1 ECHILD (No child processes)
rt_sigreturn({mask=[]})                 = -1 EINTR (Interrupted system call)
select(6, [5], NULL, NULL, {1, 0})      = 0 (Timeout)
select(6, [5], NULL, NULL, {1, 0})      = 1 (in [5], left {0, 685926})
accept(5, {sa_family=AF_LOCAL, NULL}, [2]) = 7
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x2b360db37cd0) = 1220094
close(7)                                = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
select(6, [5], NULL, NULL, {1, 0})      = ? ERESTARTNOHAND (To be restarted if no handler)
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=1220094, si_uid=1057, si_status=0, si_utime=15, si_stime=2} ---
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG|WSTOPPED, NULL) = 1220094
wait4(-1, 0x7fff9cda3fd4, WNOHANG|WSTOPPED, NULL) = -1 ECHILD (No child processes)
rt_sigreturn({mask=[]})                 = -1 EINTR (Interrupted system call)
select(6, [5], NULL, NULL, {1, 0})      = 0 (Timeout)
select(6, [5], NULL, NULL, {1, 0})      = 0 (Timeout)
select(6, [5], NULL, NULL, {1, 0})      = 0 (Timeout)
select(6, [5], NULL, NULL, {1, 0})      = 0 (Timeout)
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,219
463
Hello @Smith Nevil,

This looks similar to the following thread on the CloudLinux Forums:

Servers getting unresponsive due to lsphp hanging up

In that thread, CloudLinux noted it's likely specific to the individual server and requested the original poster to open a support ticket so they can take a closer look. Can you do the same and let us know the outcome here once the ticket is closed?

Thank you.
 
  • Like
Reactions: cPanelLauren