AEM takes significant high CPU and spikes when many requests are sent continously
Hi,
We've been experiencing performance issues on our AEM-backed websites for a while.
Recently, we've decided to investigate and found that, even on a fresh new vanilla AEM instance, the CPU usage still spikes when about 10-20 requests are sent continuously to any page on the sample content or the WKND project.
We've tried sending 20 requests per second for 10 seconds, which is equivalent to 200 users accessing the page in 10 seconds. This is not a high number. But the CPU usage still spikes to 100% and the server is inaccessible for more than 1 minute.
Is there any opinion to mitigate the performance issue?
The specs are as below:
- Production-like Azure machine:
- vCPUs 8
- CPU Architecture x64
- Memory 64 GiB
- Hyper-V Generations V1, V2
- Performance Score 151201
- Processor AMD EPYC 7452 32-Core Processo
- OS disk size 1023 GiB
- Combined Write 128 MiB/Sec
- Combined Read 128 MiB/Sec
- OS Linux (RedHat 7.9)
- Test machine:
- 4 cores CPU Intel Core i7-8665U
- Memory 32 GiB
- OS Windows 11
- Test machine:
- 2 cores CPU
- Memory 24 GiB
- OS Linux (Fedora)
All of them experience the same CPU issue when running:
- AEM service pack 6.5.14
- With or without WKND 2.1.2