After the website goes online, Apache quickly takes up all the memory and causes the server to crash.
ringa_lee
ringa_lee 2017-05-16 16:57:22
0
1
528

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_lee
ringa_lee

ringa_lee

reply all (1)
我想大声告诉你

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/...

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!