I am running magento 2 (using magento rest api services only) on aws t2 medium instance with ubuntu16.04, apache 2.4, php7, mysql 5.7.
When I use seige tool for load testing with 50 concurrent request to api. CPU goes up. And server get crash.
Not able to understand why this is happening.
Aws console shows higher mysql connections rate.
How I can handle this situation? Do I need to tune apache or magento2?