English 中文(简体)
为什么缓慢?
原标题:Why is drupal slow?

I have made site on drupal

My site has 7500 users and approx (20 to 50 without logged in)(2 to 10 logged in) users are online (and this is not heavy traffic I think)

The site is on dedicated server. I have enabled setting in performance from drupal admin and also installed memcache and eaccelerator

I looked in query logs from using devel module. it is firing total 600 to 900 queries on each page

When I have installed patch of path.inc to reduce the queries of drupal_look_path(). It has reduced queries to around 400

I have also made some positive changes in mysql (my.cnf) file, but still there are many same queries run form user_load() function again and again

I have 60 to 70 modules enabled and all are use full. I can t remove the modules

然而,该场址的运行速度仍然缓慢,它接收了约10至15个秘密。

现在我不知道为什么该网站运行如此缓慢。

  • Is it because the drupal has the large php code ?
  • Is it because it is firing so many queries on each page?
  • Does the InnoDB engine improve the performance?

欢迎提出任何建议。

问题回答

每一份请求中,有400个询问是酸cid(但甚至50+)。

你们应当执行一些html咖啡厅。 我的网站一般甚至连断线。 它只是向档案中交火的html。

探讨以下几个问题:

  • Install a tool like Yslow/PageSpeed to see how much of those 10-15s are client and server time.

  • Instal XhProf (on a development site, not live) together with Devel to see which are the functions that use the most time. Look into these first. Edit, now with link: http://groups.drupal.org/node/82889

  • 利用新闻广播might<>/em>帮助实现一条轨道,但由于你正在使用这条道路。

  • 你提到,你安装了午餐厅。 你们是否还安装了肉类模块,并混淆了使用肉类的切叶?

  • EDIT: 是的,转而到InnoDB可以帮助。 InnoDB的主要业绩优势之一是连续锁定(与MyISAM的表级锁定相反),这意味着除了真正必要外,INSERT/UPD对同一表格的多次询问会相互打赢。 然而,因诺巴在盒子外根本没有很好地发挥作用,你确实需要为你的具体地点调整我的布局。 因此,这只是你在测试和优化发展地点之后应认真采取的一个步骤。 该网站和其他地方已经存在关于非行校正的各种问题。

除此以外,其他任何东西都是针对具体地点,取决于您所使用的模块。 但是,特别是像复杂的节点——准入安排和多种语言(i18n!)等,往往造成缓慢的问询和(或)其中很多。

并非所有模块都利用了您在业绩领域可以转用的辅导机制。 值得确定哪些人正在做最低的询问,并试图让开发商改进这些询问。

或者,研究你能否用较少的模块来完成事情。 有些模块在功能上有些重叠,因此,你可以重新组织网站的运行方式。

此外,您需要研究一下您的环境。 我的SQL允许对这些询问进行足够的记忆。 大部分MySQL的分布有不同的版本,称为小、中、大等。 • 向我赠送大面积的物品(先是旧的物品),并重新启动亚洲开发银行,看看看是否最大限度地扩大所有海滩的规模。 你在那里可能有一个瓶颈,但难以确定造成这种瓶颈的原因。

Same goes for PHP. Set memory_limit in php.ini to 500MB or something and see if it helps. Of course, you may not be able to do this, depending on your hosting arrangements, but it will eliminate one possible cause (or not) if you can.

您的博士网站的运行也取决于您的主办平台如何适合博士。 升学需要特别优化LAMP的分部分。 http://www.drupalspecific.com”rel=“nofollow”http://www.drupalspecific.com

面对动荡的缓慢问题,我自己。 但问题与所提到的其他问题截然不同。

我把所有内容都放开了具体内容类型的碎页。

Still the time taken by this page to load is above 20 secs!

我帮助了电离层和电网消防小组。

检查后发现:

共同提交书和共同提交书分别涉及3至2个空白,并且有公平的包容范围,因此,它相当于20个空白。

但是,我无法指出,为什么 j和 inclusion子的包容需要这么多的时间。 (这包括正常的破裂核心 j和档案)





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...