Solved

How do I determine the amount of memcached memory I need?

Posted on 2010-11-17
3
450 Views
Last Modified: 2012-05-10
I am on a VPS with 160 MB real memory and 64 MB virtual memory. I run a MySQL database using php.

What is the minimum memory I need for memcached on the VPS? What are the parameters to be taken into consideration when making this decision?
0
Comment
Question by:noobie210
3 Comments
 
LVL 48

Accepted Solution

by:
hernst42 earned 250 total points
ID: 34153962
Size the memcached so you don't get to many cahce misses. use the memcahced-tool or http://www.php.net/manual/en/memcached.getstats.php to get the information and there look for "evictions". If that number is high the size of your memcache is to small. Or comapre the "bytes" value against your configured memory to use.
0
 
LVL 15

Expert Comment

by:Insoftservice
ID: 34153983
Hi
i would agree with @hernst42.
checkout the load you would be getting on ur website..
for eg  if its payment site .
@hernst42. what do u think if   @noobie210 changes its engine from myisam to heap or other such technique or engine.
0
 

Author Closing Comment

by:noobie210
ID: 34154228
So it is a matter of trial and error after installing memcached. Is there no way of calculating in advance how much memory I will need?

Will increasing memory from 160 MB to 400 MB (with half devoted to mamcached) be enough to begin with? Or will nothing short of a dedicated server do?
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

Introduction In this article, I will by showing a nice little trick for MySQL similar to that of my previous EE Article for SQLite (http://www.sqlite.org/), A SQLite Tidbit: Quick Numbers Table Generation (http://www.experts-exchange.com/A_3570.htm…
Creating and Managing Databases with phpMyAdmin in cPanel.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now