Score:0

Reducing server response time (apache 2.4, c5a.2xlarge ec2)

ke flag

As the title says, I'm running an Ubuntu ec2 server with c5a.2xlarge instance type (8 vCPU and 16 GB Memory) with an apache web server on it and the site feels very slow even when trying to load an empty document with just a test being echoed out. As you can see in the screenshot, Time varies on every refresh and is never even around some 100ms-200ms (except once). When I hover over the request, most of the time is being spent in Waiting (TTFB). For example in the last request (2.23s) TTFB was 1.91s.

enter image description here

I had the server behind Cloudflare and a LoadBalancer and removed them both but to no avail (both CF and LB have their own SSL certificate hence why I thought they might make a difference)

I messed around with some MPM apache2.4 settings as well and have the below right now:

<IfModule mpm_event_module>
        StartServers             1024
        ServerLimit             20000
        MinSpareThreads          512
        MaxSpareThreads          1024
        ThreadLimit              512
        ThreadsPerChild          200
        MaxRequestWorkers        600
        MaxConnectionsPerChild  0
</IfModule>
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.