high-traffic site loads quickly, low-traffic site loads slow
For some time I've been dealing with a very weird issue. A part of the sites I host have a normal load time, but they have some traffic(from 50-100 visitors/day to 1000-2000 visitors/day). My problem is with low trafic sites(5-10 visitors/day). The load time for these low trafic sites tends to reach 40 seconds sometimes, but after the first visitor loads the site, if another visitor comes along in the next 30-60 minutes, the load time is instant.
My server is a Xeon with 8 Gb of RAM and 4 SATA disks in RAID 10. LiteSpeed is installed on a CloudLinux XenServer VPS and has alocated 7 cores and 7 Gb of RAM.
Here are some screenshots of Litespeed configuration and HTop.
Server Process + Using Apache Config File:
Request/Response + GZIP:
Per Client Throttling + External Application Resource: