Page 1 of 1

Apache and nginx keeps restarting at irregular intervals

Posted: Fri Apr 26, 2019 8:17 am
by adamess
at intervals which vary, 5mins, 10 mins, 20 mins, I keep getting apache and nginx restarting... apache I think seems to use more and more memory, then restart...

apache error log:

[mpm_prefork:notice] [pid 2007] AH00171: Graceful restart requested, doing restart

Seems to cause a little problem with websites sometimes, not loading...

Anyone shade a little light in the issue? Its killing me...

Thanks in advance

:)

Re: Apache and nginx keeps restarting at irregular intervals

Posted: Fri Apr 26, 2019 1:03 pm
by adamess
In case anyone else has seen this an is concerned about it, I solved my own problem... (VestaCP on Ubuntu 16.04 64 bits)

History -- apache is pretty new to me I always worked with nginx.... but after some problems I inspected the log file here /var/log/apache2/error.log and assumed this as the error in the websites not loading, I now think that I needed to resolve the problem with failed updates in VestaCP...

So firstly I did this:

apt-get update -y && apt-get upgrade -y

Then this:

dpkg --configure -a #to resolve previous update problem

Then saved a little space, i next used this command:

apt autoremove

then updated Vesta Cp with this command:

v-update-sys-vesta-all

then I rebooted for good measure...

In fact, the log file just shows some startups/shutdowns of Apache workers, and its normal, I don't need to see this in the error log, so for me I changed this file:

/etc/apache2/apache2.confg

and changed:

LogLevel warn 'to' LogLevel error

then restarted apache with this command:

systemctl restart apache2.service

So I think all is well now, I hope this helps someone else in some way...