memcached is not working

kamleshpatidar - October 23, 2008 - 11:34
Project:Memcache API and Integration
Version:5.x-1.8
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

hi,
Currently i am using Drupal 5.11 version, PHP 5.2.1

My site is slow, so i wish to install memcache on my drupal site.
Frankly what i did for it :-->

1. First i got memcached Win 32 binary server from http://code.jellycan.com/memcached/ .

i unzip it to C:/ drive then i run command on CMD that is

C:/memcached.exe -d install & C:/ memcached.exe -d start finally i got server in services than i go to registry & increase memory level to 512 MB &server is running properly .

2. i download pecl-5.2.1WIN 32 & copy php_memcached.dll to ext directory of php file & add line
extension=php_memcache.dll
i run phpinfo() function i got memcahed there as shown in screen shot.

3. in php.ini i set memcache.hash_strategy="consistent".

4.i install module from http://drupal.org/project/memcache & activate it.

5. i apply all patches that comes with memcache folder,(after clear cache & disable cache from admin setting from drupal site).

6.in setting.php i added



$conf = array(
'cache_inc' => './sites/all/modules/memcache/memcache.inc',
'memcache_servers' => array(
'localhost:11211' => 'default'
),
'memcache_bins' => array(
  'cache'        => 'default'
  ),
);

7. i get same issue, that is mentioned in README.txt i fire query truncate cache,truncate cache_page,truncate cache_menu.

Everything what i did, but my Memcache status is looking like that:

localhost:11211
Property Value
pid 3324
uptime 2 hours 55 min
time Thu, 10/23/2008 - 16:29
version 1.2.6
pointer_size 32
curr_items 23
total_items 328
bytes 120.57 KB
curr_connections 2
total_connections 10
connection_structures 3
cmd_get 328
cmd_set 328
get_hits 0
get_misses 328
evictions 0
bytes_read 953.76 KB
bytes_written 4.77 KB
limit_maxbytes 512 MB
threads 1
hit_percentage 0.00%
mem_used 0.00%
nothing is seems good, &
when i click on malloc tab i got "Unable to connect server : localhost:11211"

Please help me, what i have do ?
Thanks In Adavnce.

Kamlesh Patidar

AttachmentSize
memcache.JPG55.08 KB
status.JPG59.71 KB

#1

kamleshpatidar - October 30, 2008 - 16:10
Category:support request» task

#2

dgtlmoon - January 13, 2009 - 01:20

delete all data from cache mysql tables, hit a few pages on your site, then check to see if theres any data in those tables again, if theres data in your mysql tables then theres something you missed in the setup...

#3

kamleshpatidar - January 13, 2009 - 15:12

hi dgtlmoon,
it's nice to get reply after such a long time. I tried what you suggest. i got Hit percentage about 7%. I left idea to improve performance of my site. Can you please explain in detail, how to correctly setup memcache, or instead of memcache, is there any other module to improve performance of my site. Thanks a lot for your reply.

Kamlesh Patidar

#4

dgtlmoon - January 14, 2009 - 06:47

So, after you emptied your cache_* tables, was there any content in these tables?

#5

kamleshpatidar - January 14, 2009 - 11:05

Yes i did, but i got only 7% hit percentage & after sometime it again down to 0% percent.How to correctly setup memcache on window(not on linux).

Best,
Kamlesh Patidar

#6

dgtlmoon - January 19, 2009 - 02:26

dont think windows/memcached is recommended... ?

#7

jaydub - August 3, 2009 - 02:12
Category:task» support request
Priority:critical» normal
 
 

Drupal is a registered trademark of Dries Buytaert.