I’m running Magento 2.4.7 with the Hyvä theme on an AWS EC2 instance (16 vCPU, 30 GB RAM). Despite the available resources, swap usage consistently remains high (60–80%), indicating sustained memory pressure. LCP always 4+ sec how to fix this
Elastic search – 8gb
Redis – 6gb
php-fpm – 12 max children
mysql on rds
free -h
total used free shared buff/cache available
Mem: 15Gi 8.4Gi 3.8Gi 110Mi 3.1Gi 6.3Gi
Swap: 8.0Gi 4.9Gi 3.1Gi
LCP always 4+ sec
First Contentful Paint
2.1 s
Largest Contentful Paint
6.3 s
Cumulative Layout Shift
0.286
Total Blocking Time
310 ms
Speed Index
6.0 s