Solved

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

Posted on 2010-11-17
3
456 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

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

Creating and Managing Databases with phpMyAdmin in cPanel.
When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

636 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