search

Home  >  Q&A  >  body text

Performance Optimization - How to optimize apache under windows, improve concurrency, and withstand more access? (Production Environment)

Due to historical reasons, our system is deployed on windows server and apache is used as a web service. and cannot be replaced.
Current situation: Another department pushes data to our system through API, we receive the data and then store it in the database.
The problem encountered is: the amount of data pushed is large and there are many requests, which causes apache to be blocked and the web system page cannot even be opened. Most of the time, after restarting apache, it dies again within half a minute.

How to deal with and optimize under the existing environment configuration? Use a queue?

仅有的幸福仅有的幸福2800 days ago747

reply all(2)I'll reply

  • phpcn_u1582

    phpcn_u15822017-05-16 17:06:03

    The performance of apache under win is much worse than that under Linux. If you really want to optimize, 1: Install an fcgid module and call php through fastcgi 2: Lighten the PHP framework, remove ORM, etc., evaluate the number of visits to the existing system, and evaluate the maximum load capacity of the existing system. Use pressure tools such as webbench, jmeter, etc., and add machines when appropriate

    reply
    0
  • 滿天的星座

    滿天的星座2017-05-16 17:06:03

    Apache does not need to be optimized under windows, because if it is under windows, it must be iis

    Don’t take mistakes as mistakes, otherwise you will go further and further down the wrong road

    reply
    0
  • Cancelreply