Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2010-11-17
3
Medium Priority
?
462 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 1000 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

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses
Course of the Month13 days, 3 hours left to enroll

972 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