I just started to use memcached
on a VPS
with 2Go of RAM.
I set the cache size at 512 Mb, but I am wondering if I can go for 1024Mb.
On the VPS
there are:
- a local business website with very few connections (like up to 10 sessions a day at best, only anonymous users), once in a while a webmaster updates content.
- An award website inactive (which will probably move somewhere else);
- a few dev sites I am the only one to use.
- And hopefully I can put another local business website later (and maybe remove some of the dev sites).
Watching the top command when activating 4 sites (1 as anonymous, 3 as authenticated user), I notice the memory usage go up to 700Mb, so up to 1.3Gb free. I use Apache.
The current loading time per page is between 2 and 3 seconds, except the first page which can go for 5-8 sec for the less used sites. The idea is to maybe increase the cache to have more indexed paths and pages.
But I read a bit about the risk of swapping. So I am wondering what's the best choice in order to optimize page load for the 2 local business websites + maybe 1 sandbox and 1 dev site.