So I have a vps running 512mb of ram and 1 vCPU, what would be the optimal amount of MaxClients (apache workers) I should run in order to get the most efficient serving of a website? Currently it's only hosting a very basic Wordpress installation.
Find average memory of apache process divide it with your RAM allocated for apache.
Since you have 512 Mb RAM,allocate 256-300 Mb for apache and rest for normal operation(if this is dedicated for webserver and no other services are running).
Let say if your average process size is 5Mb then u can have upto 51 max clients(255/5).
Dont over allocate maxclient value it can lead to swapping.