dongyi1441 2015-11-20 09:18 采纳率: 100%
浏览 58

TYPO3运行超过1小时后,网站响应时间与memcached不稳定

I have a couple of websites that get very slow (25+ sec response time) at some times. Requests directly after such a slow request are most of the time normally fast (without browser and varnish cache). It happens to any page and I can't reproduce it with a single webserver (and memcached), but I can on a setup with 2 webservers.

In the php5-fpm-www.slowlog I see a lot stack-traces that mostly end in memcache. After flushing memcached the sites are fast again for about 1 hour after which the slow pages occur again.

For my TYPO3 6.2.15 stack I use 3 servers on rackspace: 2 webservers and one NFS server.The webserver have shared memcached(VERSION 1.4.14 (Ubuntu)). The rest of the stack consists of Varnish, Nginx and php5-fmp all running on ubuntu trusty 14.04. For a database I use the rackspace MySql database.

I store the following tables in memcached: cache_hash, cache_pages, cache_pagesection, cache_rootline, extbase_datamapfactory_datamap, extbase_object, extbase_reflection, extbase_typo3dbbackend_tablecolumns, extbase_typo3dbbackend_queries

$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][$tableCache]['backend'] = 'TYPO3\\CMS\\Core\\Cache\\Backend\\MemcachedBackend'; $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][$tableCache]['options']['servers'] = $memcachedServers; $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][$tableCache]['options']['defaultLifetime'] = 86400;

For now I have switched to filecache, which makes the sites a little bit slower, but with stable response time.

Has anyone experience with this kind of problems and what was your fix?

  • 写回答

1条回答 默认 最新

  • dongshi6528 2019-04-09 13:17
    关注

    According to TYPO3 documentation, memcached should not be used for any cache that uses tags.

    Because of the mentioned drawbacks, the memcached backend should be used with care or in situations where cache integrity is not important or if a cache has no need to use tags at all. Currently, the memcache backend implements the TaggableBackendInterface, so the implementation does allow tagging, even if it is not advised to used this backend together with heavy tagging.

    Also, memcached should be use for caches with predictable size: if the max allowed memory allowed to memcached is reached, memcached will start evicting data.

    For those reasons, you should avoid using of memcached for cache_hash, cache_pages and any cache that grows fast and use tags.

    评论

报告相同问题?

悬赏问题

  • ¥15 echarts动画效果失效的问题。官网下载的例子。
  • ¥60 许可证msc licensing软件报错显示已有相同版本软件,但是下一步显示无法读取日志目录。
  • ¥15 Attention is all you need 的代码运行
  • ¥15 一个服务器已经有一个系统了如果用usb再装一个系统,原来的系统会被覆盖掉吗
  • ¥15 使用esm_msa1_t12_100M_UR50S蛋白质语言模型进行零样本预测时,终端显示出了sequence handled的进度条,但是并不出结果就自动终止回到命令提示行了是怎么回事:
  • ¥15 前置放大电路与功率放大电路相连放大倍数出现问题
  • ¥30 关于<main>标签页面跳转的问题
  • ¥80 部署运行web自动化项目
  • ¥15 腾讯云如何建立同一个项目中物模型之间的联系
  • ¥30 VMware 云桌面水印如何添加