Apache process uses up to 100% CPU and websites show 502 Bad Gateway

Created:

2016-12-19 09:16:05 UTC

Modified:

2017-08-08 13:42:31 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Apache process uses up to 100% CPU and websites show 502 Bad Gateway

Applicable to:

  • Plesk Onyx for Linux

Symptoms

  • websites are not available with 502 Bad Gateway error
  • there are few /usr/sbin/apache2 master processes and one of them in zombi state or have no children
  • apache2 process consumes about 100% of CPU

Cause

The issue caused by two /usr/sbin/apache2 master processes running.

Resolution

1. Stop apache2 service:

# service apache2 stop

2. Find and kill apache2 zombi processes:

# ps auxxffww | grep apache2
# kill -9 <PID>

3. Start apache2 service:

# service apache2 start

Have more questions? Submit a request
Please sign in to leave a comment.