主机提供商的Drupal执行内存限制 [英] Drupal execution memory limit in hosting provider

查看:162
本文介绍了主机提供商的Drupal执行内存限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们开发了基于Drupal的门户。经过测试和部署(在本地),该网站工作正常。但是当我将该站点移动到在线服务器(主机)时,该站点面临内存执行限制问题。



它的最低预期为96MB,但主机提供程序不可用增加那么多!有什么办法解决这个问题吗?或者在澳大利亚,任何其他托管服务提供商都会提供这么多内存限制?

解决方案

根据我的经验,96MB是Drupal网站要求。查看您在网站上安装的模块,并禁用并卸载您实际不需要的任何内容。例如,如果您不使用它们,则禁用核心Color和Comment模块(默认情况下在Drupal 6中启用)。如果您有模块,如Views UI,Beautytip UI,ImageCache UI或规则管理UI,则在完成配置后,禁用它们。



如果只有具体的需要太多内存的页面,尝试优化这些页面。例如,如果视图中显示了很多节点,请尝试在视图中添加一个寻呼机,将内容分割成多个页面。



如果您有自定义模块,尝试将管理UI代码分离成一个单独的modulename.admin.inc文件,因此只有在需要时才会被加载。呃,考虑这样做是为了公开提供的模块,然后考虑发布补丁到这些模块的问题队列。



更新:你可能想要考虑VPS托管接下来。您可以更好地控制正在运行的系统。



更新2 :根据您网站的需求和功能,您可以通过安装 Boost 模块来减少网站的内存占用,该模块创建一个平面文件您的网站版本。


We developed the Drupal based portal. After the testing and deployment (in locally) the site was working perfectly. But when I move the site to the online server (hosting), the site was facing the memory execution limit problem.

It's expecting minimum 96MB but the hosting provider is not able to increase that much!! Is any other way to fix this issue?? Or in Australia any other hosting provider is giving this much memory limit?

解决方案

In my experience, 96MB is a lot for a Drupal site to require. Look over the modules you have installed on the site and disable and uninstall anything you don't actually need. For example, disable the core Color and Comment modules (enabled by default in Drupal 6), if you're not using them. If you have module like Views UI, Beautytips UI, ImageCache UI, or Rules Administration UI intalled, disable them once you're done configuring everything.

If there are only specific pages that are requiring too much memory, try optimizing those pages. For example, if there are lots of nodes being displayed in a view, try adding a pager to the view, to split the content across multiple pages.

If you have custom modules, try separating out the administrative UI code into a separate modulename.admin.inc file, so it will only be loaded when needed. Heck, consider doing that for publicly contributed modules too, then consider posting patches to the issue queues of those modules.

UPDATE: You may want to consider VPS hosting next. There you'll have more control over the system you're running on.

UPDATE 2: Depending on the needs and features of your site, you may be able to reduce your site's memory footprint by installing the Boost module, which creates a flat-file version of your site.

这篇关于主机提供商的Drupal执行内存限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆