# Apache

## Increase max CCU

### 1. Allocate more resources

This allows for more Apache child processes to be spawned, thus being able to handle more concurrent connections.

{% hint style="info" %}
You can read more about Apache performance tuning here: <https://www.liquidweb.com/kb/apache-performance-tuning-mpm-directives/>
{% endhint %}

```bash
nano /etc/apache2/mods-enabled/mpm_prefork.conf
---
        ServerLimit 2048
        MaxRequestWorkers        2048
```

### 2. Kill connections faster

This might increase the latency of each request, but allow for more concurrent users to send requests without the idle connections using too much space.

```bash
nano /etc/apache2/apache2.conf
---
KeepAlive Off
```
