Can I install 2 cache systems on a VPS?

Joined
May 20, 2016
Messages
61
Best answers
0
Ratings
3
Points
0
#1
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
Joined
Apr 3, 2015
Messages
1,026
Best answers
0
Ratings
415 3
Points
83
#2
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.
 
Joined
May 20, 2016
Messages
61
Best answers
0
Ratings
3
Points
0
#3
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

Global Mod
Staff Member
Joined
May 3, 2016
Messages
1,476
Best answers
4
Ratings
363 8
Points
83
#4
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

Global Mod
Staff Member
Joined
May 3, 2016
Messages
1,476
Best answers
4
Ratings
363 8
Points
83
#6
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
Joined
Mar 5, 2013
Messages
189
Best answers
0
Ratings
30
Points
28
#7
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?
 
Joined
Oct 10, 2017
Messages
27
Best answers
0
Ratings
2
Points
0
#9
Not ever installed pagespeed module for my VPS, what does it help improve for?
very helpfull to web loading pages
varnish i think is best cache system but all this depend to your configuration
 
Recommended Threads
Replies
10
Views
1,295
SIG
Replies
9
Views
1,658
Replies
13
Views
5,417
Similar Threads

Latest postsNew 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.