`
haohappy2
  • 浏览: 329123 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

A way to improve drupal performance

阅读更多

Local Drupal instance was getting slower and slower over time, to the point where any click would take at least 10 seconds to process. I enabled Drupal's DB tracing but nothing obvious showed up in the logs. I couldn't find anything wrong with MySql either. The performance of the hosted version of Drupal seemed to be ok so I chalked it up to some weird environment issue.

While scanning the php.ini file for a different issue, I happened on the realpath cache variables. I found a few articles explaining what they did and figured it was worth a shot. After I increased these values, the local server finally became responsive again. What joy! I have a feeling that all Drupal installations should use larger values. Here's what I used:

; Determines the size of the realpath cache to be used by PHP.This value should
; be increased on systems where PHP opens many files to reflect the quantity of
; the file operations performed.
; realpath_cache_size=16k
realpath_cache_size=1m
; Duration of time, in seconds for which to cache realpath information for a given
; file or directory. For systems with rarely changing files, consider increasing this
; value.
; realpath_cache_ttl=120
realpath_cache_ttl=300 
 
分享到:
评论

相关推荐

    Drupal 6 Performance Tips

    《Drupal 6 性能优化技巧》一书深入探讨了如何通过最佳实践和技术工具来最大化和优化Drupal框架的性能,特别针对Drupal 6版本。本书由Trevor James和TJ Holowaychuk共同撰写,由Packt Publishing于2010年出版。 ###...

    Drupal.8.for.Absolute.Beginners.1430264667

    You will then use Drush to apply a theme to Drupal, customizing everything to your liking, before publishing your work to the world. The book also covers some more advanced topics that beginners ...

    Drupal 8 Explained: Your Step-by-Step Guide to Drupal 8

    Drupal 8 Explained is for people who want a fun and clear introduction to Drupal and requires absolutely no experience with Drupal, content management, site construction, programming, scripting, or ...

    Drupal.8.Development.Beginners.Guide.2nd.Edition.epub

    With more and more organizations looking to build engaging digital experience for their stakeholders, the Drupal Content Management System offers a mobile-first platform with native support for ...

    drupal的addtoany模块

    Drupal的AddToAny模块是一个非常实用的工具,尤其对于那些希望增强网站社交分享功能的用户而言。这个模块专为Drupal 6设计,旨在提供一种简便的方式,让访客能够订阅、收藏网页内容,并且能够通过电子邮件轻松地将...

    Decoupled Drupal in Practice

    Several projects point to a decoupled future for Drupal, including the Contenta CMS and work to modernize Drupal’s JavaScript using React. Begin learning about these and other exciting developments ...

    Drupal 8 Module Development 2nd Edition

    In his spare time, he runs webomelette, a Drupal website where he writes technical articles, tips, and techniques related to Drupal development. Table of Contents Developing for Drupal 8 Creating ...

    The.Definitive.Guide.to.Drupal.7

    #### 描述:本书为《The Definitive Guide to Drupal 7》(第一版),作者为 Benjamin Melançon,是一本详细介绍 Drupal 7 的专业书籍。 #### 知识点详解: ##### 一、Drupal 7 入门篇 1. **搭建 Drupal 7 网站 ...

    the definitive guide to drupal 7

    #### 标题:The Definitive Guide to Drupal 7 **标题概述:** 本标题明确指出这是一份关于 Drupal 7 的全面指南,意味着书中将涵盖 Drupal 7 的所有核心概念、功能及实践技巧。 #### 描述:《The Definitive ...

    Drupal 6 Themes: Create new themes for your Drupal 6 site with clean layout and powerful CSS styling

    The book will show you techniques and tools to help you improve the look and feel of any Drupal 6-powered website Starting from the basics of theme setup and configuration, you will learn about the ...

    drupal-9.0.1_drupal9_drupal9教程_drupal9开发实例_

    Drupal 9.0.1是Drupal内容管理系统的一个重要版本,带来了许多新特性和改进,旨在提升网站构建者的体验和网站的性能。Drupal是一款开源的PHP框架,被广泛用于创建复杂、可扩展的Web应用程序和网站。这个9.0.1版本的...

    Drupal7宝典+Drupal开发指南+Using Drupal

    Drupal是开源的内容管理系统(CMS),在全球范围内被广泛用于构建各种网站,从个人博客到复杂的商业平台。本资源包包含了三本书籍,可以帮助你深入理解和掌握Drupal7的各个方面: 1. **Drupal7宝典**: 这本书全面...

    Drupal 6 Site Builder Solutions, Build powerful web site features for your business and connect to your customers through blogs, product catalogs, newsletters, and maps

    Drupal is a powerful, free system that anyone can use in order to create their own website. With such a powerful tool at your fingertips there is no longer any need to pay professionals to design a ...

Global site tag (gtag.js) - Google Analytics