Home  >  Q&A  >  body text

After the website goes online, Apache quickly takes up all the memory and causes the server to crash.

There is a company website with more than 6,000 IP visits per month. The server configuration has been changed to a 4G memory centos server. Apache 2.4 is used as the website server. The website uses pseudo-static access through the proxy server reverse proxy. It has just been online for about 5 minutes. , apache quickly fills up the memory, making the server inaccessible. However, the mysql server configured with the same configuration is normal and only takes up less than 1G of memory. What optimizations need to be done on apache in this situation? Or what monitoring methods are there?

ringa_leeringa_lee2713 days ago597

reply all(1)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-05-16 16:59:22

    This is obviously a program problem. The program may use recursion, very large loops, etc.
    You can use the apache ab command to test your methods and modules locally one by one.

    Also, can you tell me your php version?
    Versions below php5.3 seem to have such a vulnerability.
    Brother Bird’s blog:
    http://www.laruence.com/2012/...

    reply
    0
  • Cancelreply