Can I install 2 cache systems on a VPS?

Aaron Lavers

Member
Registered
Joined
May 20, 2016
Messages
61
Points
8
Just purchased an unmanaged VPS on the forum with 2GB of RAM, I want to speed up my benchmark on the VPS by installing 2 cache systems are Varnish and Memcached on it. Is it possible? do they conflict together?

please advise. Thanks
 

RDO Servers

Well-known member
Registered
Joined
Apr 3, 2015
Messages
1,027
Points
83
You can, but I dont think it would help you.

What else are you running on the VPS?

Remember that caching systems work by storing your content in RAM. If you only have 2Gb of RAM, most of that is probably being used by your OS, control panel, MySQL, and Apache. There is not a lot left over for storing cached content.
 

Aaron Lavers

Member
Registered
Joined
May 20, 2016
Messages
61
Points
8
Aaron Lavers
I've just installed both Varnish and Memcached on the VPS, websites are running as well but when integrated memcached to speed up loading for webpages then websites are error. I thought they have been conflicted together.
 

VirtuBox

Well-known member
Registered
Joined
May 3, 2016
Messages
1,622
Points
83
The solution varnish + memcache is only used in huge configuration and with a load-balancing. With 2GB RAM you haven't enough memory to cache the PHP for a app like Magento. So you shouldn't use a system to cache static files. If you want to speed up your website, cache at first pour php with opcache or another, and use memcache to store this cache in your RAM.
But for static files, with less than 8GB RAM, you will only have slow down when the vps will use his swap.
You need at least 3 VPS for a solution varnish + memcache.
 

VirtuBox

Well-known member
Registered
Joined
May 3, 2016
Messages
1,622
Points
83
Yes you can use opcache + memcache to get good performance.
opcache only need few MB, and you can use up to 512MB with memcache.

Another good solution is to use the pagespeed module for apache or nginx and to store his cache in RAM with memcache.
 

Maxwell

Well-known member
Registered
Joined
Mar 5, 2013
Messages
189
Points
28
Maxwell
From your experience, which one is better, opcache or memcached?

Not ever installed pagespeed module for my VPS, what does it help improve for?

I want to optimize for Mysql server then what caching systems should I install?
 
Recommended Threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top