Tuesday, October 15, 2019

memory - How do you interpret `strace` on an apache process returning `restart_syscall`?

We restart an apache server every day because RAM usage reaches its limit.



Though of value See this serverfault answer, I dont think lowering the MaxClients in the apache configuration is a solution to the unknown root problem.



The apache processes below appear unusually large in MB and long in time. Does this mean there is memory leakage. Does this mean we should lower MaxRequestsPerChild settings?



See http://www.devside.net/articles/apache-performance-tuning



Can you make sense out of the below data?




Below is an extract of what



$top with M



returns:



20839 www-data  20   0 1008m 359m  22m S    4  4.8   1:52.61 apache2                     
20844 www-data 20 0 1008m 358m 22m S 1 4.8 1:51.85 apache2
20842 www-data 20 0 1008m 356m 22m S 1 4.8 1:54.60 apache2

20845 www-data 20 0 944m 353m 22m S 0 4.7 1:51.80 apache2


and then investigating a single process with



$sudo strace -p 20839


returns only this one line, which is cryptic, for me:




restart_syscall(<... resuming interrupted call ...> 


Any insights? Thanks.

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...