Solved

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

Posted on 2010-11-17
3
452 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
php mysql if then statement syntax 4 41
sql statement to select and drop 13 49
MySQL ERROR 1045 (28000) 2 81
Incorrect definition of table mysql.proc 7 18
Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Creating and Managing Databases with phpMyAdmin in cPanel.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.

823 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