Today I installed three versions of pagespeed.1. The stable version2. 1.4.26.2 beta release3. 1.5.x beta releaseI had the above error with all three versions. I performed graceful restart after installing the 1.4.x beta release. And the error log was showing the above error message for both the stable version and the 1.4.x beta release. The error message for the stable version stopped appearing only after I performed a normal restart (service httpd restart). Hence I think the HTTP request is not timing out.PageSpeed configuration related to memcachedModPagespeedCreateSharedMemoryMetadataCache "/var/cache/mod_pagespeed/" 102400ModPagespeedMemcachedServers "127.0.0.1:11211"ModPagespeedMemcachedThreads 3I tested it with and without ModPagespeedCreateSharedMemoryMetadataCache enabled.# cat /etc/sysconfig/memcachedPORT="11211"USER="memcached"MAXCONN="1024"CACHESIZE="64"OPTIONS=""I had increased the cache size to 1GB in /etc/init.d/memcached. But it was overridden by the value from /etc/sysconfig/memcached.
If you restart apache do you get new "Waiting for property cache fetch
to complete" messages?
Yes, for another lookup.
Also, are you using the 'real' memcached, or are you using some other implementation or proxy that supports the memcached protocol?
I'm using the real memcached
Josh,I'm still awaiting your reply. Shall I mail just the mod_pagespeed related entries from the log?Joyce
I am still seeing the same error with mod_pagespeed 1.5.27.2-2912ModPagespeedMemcachedThreads is set to 1
I was referring to the "waiting for property cache fetch to complete error". I can still see a large number of that in my error log.Collision errors are not appearing anymore. But there are other AprMemCache errors[Tue May 21 22:09:29.321624 2013] [pagespeed:error] [pid 13433] [mod_pagespeed 1.5.27.2-2912 @13433] AprMemCache::Get error: Internal error (20014) on key rname/cf_RNkys8ZMaROrutMbO6Pf/j/A8TLcxrLgF4UKutRBeG@_@7whAZDX_GDIt44hYoDabA.@w__@7whAZDX_GDIt44hYoDab[Tue May 21 22:09:29.321626 2013] [pagespeed:error] [pid 13433] [mod_pagespeed 1.5.27.2-2912 @13433] AprMemCache::Get error: Internal error (20014) on key file://hostname.domain.com/var/www/vhosts/username/public_html/m/assets/js/astrology.js[Tue May 21 22:11:49.546618 2013] [pagespeed:error] [pid 19303] [mod_pagespeed 1.5.27.2-2912 @19303] AprMemCache::Get error: Internal error (20014) on key file://hostname.domain.com/var/www/vhosts/username/public_html/general/dictionary/images/contribute-bottom.png[Tue May 21 22:13:35.741713 2013] [pagespeed:error] [pid 19446] [mod_pagespeed 1.5.27.2-2912 @19446] AprMemCache::Get error: Internal error (20014) on key file://hostname.domain.com/var/www/vhosts/username/public_html/astrology/imgs/manisha_koushik1.jpg[Tue May 21 22:13:35.791999 2013] [pagespeed:error] [pid 19446] [mod_pagespeed 1.5.27.2-2912 @19446] AprMemCache::MultiGet error: The timeout specified has expired (70007) on key http://cdn.domain.com/astrology/imgs/manisha_koushik1.jpg[Tue May 21 22:13:35.792080 2013] [pagespeed:error] [pid 19446] [mod_pagespeed 1.5.27.2-2912 @19446] AprMemCache::MultiGet error: The timeout specified has expired (70007) on key http://cdn.domain.com/travel/tourism/images/kerala-ayurveda-tour-package.jpg[Tue May 21 22:14:29.550825 2013] [pagespeed:error] [pid 19500] [mod_pagespeed 1.5.27.2-2912 @19500] AprMemCache::MultiGet error: The timeout specified has expired (70007) on key rname/ci_X0qZACt0nvVM2tHxX44I/http://s1.nxstatic.com/assets/css/A.common.css.pagespeed.cf.X7iTRlarlp.css@@_[Tue May 21 22:15:03.078330 2013] [pagespeed:error] [pid 19862] [mod_pagespeed 1.5.27.2-2912 @19862] AprMemCache::MultiGet error: The timeout specified has expired (70007) on key http://cdn.domain.com/js/nyromodal/jquery.nyroModal.custom.js[Tue May 21 22:15:09.216386 2013] [pagespeed:error] [pid 13469] [mod_pagespeed 1.5.27.2-2912 @13469] AprMemCache::Get error: Internal error (20014) on key rname/cf_RNkys8ZMaROrutMbO6Pf/v/n4KUHdfN0dCfafdf1Lm@_@jxyaSdGQA4HNNrTUUiI9A.@__@jxyaSdGQA4HNNrTUUiI9[Tue May 21 22:15:09.216392 2013] [pagespeed:error] [pid 13469] [mod_pagespeed 1.5.27.2-2912 @13469] AprMemCache::Get error: Internal error (20014) on key file://hostname.domain.com/var/www/vhosts/username/public_html/m/assets/js/autocomplete.js[Tue May 21 22:16:56.796350 2013] [pagespeed:error] [pid 19810] [mod_pagespeed 1.5.27.2-2912 @19810] AprMemCache::MultiGet error: The timeout specified has expired (70007) on key rname/cf_X0qZACt0nvVM2tHxX44I/2/52uAysB_8z3EWb9DTLw@_@UkH_8v-T69hmRFwebr_aA.@w__@UkH_8v-T69hmRFwebr_a[Tue May 21 22:16:56.796402 2013] [pagespeed:error] [pid 19810] [mod_pagespeed 1.5.27.2-2912 @19810] AprMemCache::MultiGet error: The timeout specified has expired (70007) on key rname/jc_X0qZACt0nvVM2tHxX44I/http://www.domain.com/js/jquery-1.6.js@@_[Tue May 21 22:16:56.796423 2013] [pagespeed:error] [pid 19810] [mod_pagespeed 1.5.27.2-2912 @19810] AprMemCache::MultiGet error: The timeout specified has expired (70007) on key rname/jc_X0qZACt0nvVM2tHxX44I/6/Rd0KgR5wBVBiQuPV6dy@[Tue May 21 22:19:56.367619 2013] [pagespeed:error] [pid 20895] [mod_pagespeed 1.5.27.2-2912 @20895] AprMemCache::Get error: Internal error (20014) on key file://hostname.domain.com/var/www/vhosts/username/public_html/favicon.ico[Tue May 21 22:19:56.417752 2013] [pagespeed:error] [pid 20895] [mod_pagespeed 1.5.27.2-2912 @20895] AprMemCache::MultiGet error: The timeout specified has expired (70007) on key rname/jc_szHOAK3-Rj_fiC4Nyn4K/b/gX5PKyoYQeEelSSMp9g@[Tue May 21 22:20:29.633966 2013] [pagespeed:error] [pid 21495] [mod_pagespeed 1.5.27.2-2912 @21495] AprMemCache::Get error: Internal error (20014) on key file://hostname.domain.com/var/www/vhosts/username/public_html/astrology/love-horoscope/imgs/capricorn.gif[Tue May 21 22:20:29.633975 2013] [pagespeed:error] [pid 21495] [mod_pagespeed 1.5.27.2-2912 @21495] AprMemCache::Put error: Internal error (20014) on key rname/ic_szHOAK3-Rj_fiC4Nyn4K/http://www.domain.com/astrology/love-horoscope/imgs/capricorn.gif@x@_, value-size 1005
The memcached caching was enabled only for a few minutes. ModPagespeed is the only program on the server accessing memcachedroot@mars [/usr/local/apache/logs]# memcached-tool 127.0.0.1:11211# Item_Size Max_age Pages Count Full? Evicted Evict_Time OOM1 96B 0s 1 0 yes 0 0 02 120B 1405s 1 190 yes 0 0 03 152B 6727s 1 67 yes 0 0 04 192B 6731s 1 544 yes 0 0 05 240B 6733s 1 1249 yes 0 0 06 304B 6733s 1 1924 yes 0 0 07 384B 6733s 18 49131 yes 0 0 08 480B 6733s 1 1255 yes 0 0 09 600B 6728s 1 320 yes 0 0 010 752B 6730s 1 260 yes 0 0 011 944B 6731s 1 752 yes 0 0 012 1.2K 6731s 1 344 yes 0 0 013 1.4K 6733s 1 368 yes 0 0 014 1.8K 6733s 1 187 yes 0 0 015 2.3K 6733s 1 359 yes 0 0 016 2.8K 6721s 1 186 yes 0 0 017 3.5K 6706s 1 63 yes 0 0 018 4.4K 6732s 1 71 yes 0 0 019 5.5K 6724s 1 25 yes 0 0 020 6.9K 6731s 1 11 yes 0 0 021 8.7K 6732s 1 21 yes 0 0 022 10.8K 6548s 1 14 yes 0 0 023 13.6K 6733s 1 20 yes 0 0 024 16.9K 6435s 1 5 yes 0 0 025 21.2K 490s 1 1 yes 0 0 026 26.5K 6548s 1 2 yes 0 0 027 33.1K 6548s 1 2 yes 0 0 028 41.4K 6637s 1 5 yes 0 0 029 51.7K 6638s 1 4 yes 0 0 030 64.7K 582s 1 1 yes 0 0 031 80.9K 6727s 1 1 yes 0 0 032 101.1K 6638s 1 3 yes 0 0 033 126.3K 6733s 2 10 yes 0 0 034 157.9K 1077s 1 1 yes 0 0 036 246.8K 6062s 1 1 yes 0 0 0root@mars [/usr/local/apache/logs]# memcached-tool 127.0.0.1:11211 stats#127.0.0.1:11211 Field Valueaccepting_conns 1auth_cmds 0auth_errors 0bytes 24003623bytes_read 2300110290bytes_written 994127956cas_badval 0cas_hits 0cas_misses 0cmd_flush 0cmd_get 5371939cmd_set 11481807cmd_touch 0conn_yields 0connection_structures 165curr_connections 17curr_items 57592decr_hits 0decr_misses 0delete_hits 4517886delete_misses 23375evicted_unfetched 0evictions 0expired_unfetched 2474982get_hits 2805051get_misses 2566888hash_bytes 524288hash_is_expanding 0hash_power_level 16incr_hits 0incr_misses 0libevent 1.4.13-stablelimit_maxbytes 1073741824listen_disabled_num 0pid 6560pointer_size 64reclaimed 2475111reserved_fds 20rusage_system 946.773068rusage_user 311.972572threads 4time 1369161118total_connections 4547525total_items 9101340touch_hits 0touch_misses 0uptime 343328version 1.4.15Do I need to enable the memcached integration, before getting the pagespeed stats?Joyce
On Tuesday, May 21, 2013 11:32:32 PM UTC+5:30, jmarantz wrote:Can you take a few snapshots of your statistics to see how much image rewriting we are doing, and check the memcached hit rate?-Josh
This is a live server, hence I cannot install the debug version of apache. Can I install debug version of mod_pagespeed with normal apache? Will coredump suffice?
--
Beta is up to 1.6 now. I thought you had avoided the Key Collision errors once you set MemcachedThreads to 1. Did they re-appear? If MemcachedThreads is not set to 1 please reset it to 1. I'm pretty sure that in 1.6 we force it to 1 independent of the conf setting.
If you can get stack traces now for the segmentation faults we should be able to see what's going on.
Actually there's been an independent report of seg-faults when both memcached and shared-mem cache are enabled, and above you mention:ModPagespeedCreateSharedMemoryMetadataCache "/var/cache/mod_pagespeed/" 102400Turning either memcached or shared-mem cache off will work around the problem. We would still like to get to the bottom of that, since we think the best practice in most cases would be to use both, once it is working properly.
--
I'd recommend 1.6 beta.
Can you (privately if you wish) give me the full text of a few pairs of colliding keys?
RE memcached vs shm-metadata: it depends on your situation. If you have multiple servers then memcached may have more of an impact. On a single server, given that we have to iron out some conflict, your best bet is probably to use shm-cache or a tmpfs-based file-cache.-Josh
On Mon, Jul 29, 2013 at 9:12 AM, Joyce Babu <jo...@joycebabu.com> wrote:
On Monday, July 29, 2013 7:45:42 AM UTC+5:30, jmarantz wrote:Beta is up to 1.6 now. I thought you had avoided the Key Collision errors once you set MemcachedThreads to 1. Did they re-appear? If MemcachedThreads is not set to 1 please reset it to 1. I'm pretty sure that in 1.6 we force it to 1 independent of the conf setting.So, should I test with 1.6 beta or 1.4 stable?Key collision error was never solved. The errors appears when enable memcached integration. MemcachedThreads had no effect. I have it currently set to 1.If you can get stack traces now for the segmentation faults we should be able to see what's going on.
Actually there's been an independent report of seg-faults when both memcached and shared-mem cache are enabled, and above you mention:ModPagespeedCreateSharedMemoryMetadataCache "/var/cache/mod_pagespeed/" 102400Turning either memcached or shared-mem cache off will work around the problem. We would still like to get to the bottom of that, since we think the best practice in most cases would be to use both, once it is working properly.Until the issue is fixed, which will provide better performance? Enabling memcached or shm metadata caching?
--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-di...@googlegroups.com.
Use it to get either the latest stable version:
gclient config http://modpagespeed.googlecode.com/svn/branches/latest-beta/src gclient sync --force --jobs=1
You received this message because you are subscribed to a topic in the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mod-pagespeed-discuss/idDVL0-ZxKE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mod-pagespeed-di...@googlegroups.com.
I've send the error log with segfaults to your email address. I forgot to enable coredump before the run. But if you require the coredump, let me know, I'll run it again.
Hi Joyce. Sorry for the long silence on this issue. I think we finally understand the cause of this. Please see this thread:I believe you have an old version of memcached. Can you upgrade to memcached 1.4.15 and see if the problem disappears? The above thread also has details on how to do that if your OS doesn't make it easy.Thanks
On Mon, Jul 29, 2013 at 5:28 PM, Joyce Babu <jo...@joycebabu.com> wrote:
I've send the error log with segfaults to your email address. I forgot to enable coredump before the run. But if you require the coredump, let me know, I'll run it again.
--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-discuss+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-di...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/be22ef77-7b3c-4b99-aecb-08c04869b3e6%40googlegroups.com.
Unfortunately, as discussed in the other thread, upgrading from 1.4.5 to 1.4.15 did not in fact eliminate the symptom. I don't have any reason to believe that upgrading to 1.4.16 would fix it either. I have not been able to repro the problem either, so this is still a mystery that we need to solve.In the meantime, have you been getting by by disabling memcached?
--
You received this message because you are subscribed to the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mod-pagespeed-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/CACQdstNBPtKw%3DBzzZCYWktnYKpU%3D8o-wn2FEnp8fkYozcGibcg%40mail.gmail.com.
--To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/CAGKR%2BEDBJjMJSkHQzqq-28vkqf2kf4bvOhSZTXNCWncwvYxdsg%40mail.gmail.com.
You received this message because you are subscribed to a topic in the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mod-pagespeed-discuss/idDVL0-ZxKE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mod-pagespeed-di...@googlegroups.com.
--To view this discussion on the web visit https://groups.google.com/d/msgid/mod-pagespeed-discuss/CAGKR%2BED72XLdDfkH-TCo6kBSrcTyAE-rZL%2Beegx8J3n2crdw5Q%40mail.gmail.com.
You received this message because you are subscribed to a topic in the Google Groups "mod-pagespeed-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mod-pagespeed-discuss/idDVL0-ZxKE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mod-pagespeed-di...@googlegroups.com.