简体   繁体   English

Joomla的初始加载缓慢,请调试

[英]Joomla slow initial load, debug on

So we use Joomla on our Intranet website, our network is all 1GB connections and 10GB at the servers so bandwidth is not an issue as to this loading problem. 因此,我们在Intranet网站上使用了Joomla,我们的网络是1GB的连接,而服务器上的都是10GB,因此对于此加载问题,带宽不是问题。 Some background, the setup is on a VM running ubuntu 14.04 has all the updates (updates for 14.04). 在某些背景下,安装程序在运行ubuntu 14.04的VM上具有所有更新(针对14.04的更新)。 We are currently running Joomla 3.2.1, i want to update to current but i need to fix the loading issue first because it has slow loading on 3.5.2 as well. 我们当前正在运行Joomla 3.2.1,我想更新到当前版本,但我需要先解决加载问题,因为它在3.5.2上的加载速度也很慢。

So this happened out of no where, the website is where most of the employees go to submit forms and such to supervisors and higher ups. 因此,这种情况无处不在,网站是大多数员工向主管和更高级别主管提交表格的地方。 Randomly a few days ago/a week ago the site initial load time went from .8s to upwards of 1Min or 2 Mins to load. 几天前/一周前,网站的初始加载时间随机从0.8秒增加到1分钟或2分钟以上。 I've tried turning cache on, compression on and no change. 我试过打开缓存,打开压缩,没有任何变化。 cache on 15, compression off and no change cache to 30, compression off and no change. 高速缓存打开15,压缩关闭且未更改高速缓存打开30,压缩关闭且未更改。 Checked the PHP config for any over or under allocation of memory or processing, nothing. 检查PHP配置是否有过多或不足的内存或处理分配,什么都没有。 MySQL config for any over or under allocation, nothing. MySQL配置中任何超出或不足的分配,什么都没有。 .htaccess for correct permissions and modrewrite config, nothing wrong. .htaccess的正确权限和modrewrite配置,没有错。

I have nothing info wise in the logs for anything that shows something running into errors or issues or loop loading. 对于任何显示出出现错误,问题或循环加载的东西,我在日志中没有任何信息明智的选择。 I also migrated from a linux VM to an IIS7 VM and i still get inital load times that take forever. 我还从Linux VM迁移到IIS7 VM,但仍然获得了永久的初始加载时间。 I am assuming it is some database issue but i don't know what. 我假设这是一些数据库问题,但我不知道是什么。

I ran a repair on the database and everything came back ok. 我对数据库进行了修复,一切恢复正常。 the VM has 8GB of RAM, 2 3.2GHz processor cores and does not use more then 20% processing on the cores and no more then 2GB of RAM our of 8GB. VM具有8GB的RAM,2个3.2GHz处理器内核,并且在内核上未使用超过20%的处理,并且不超过8GB的2GB RAM。 I am beating my head on my desk trying to find why it's going so slow so if someone can have some insight please post up some ideas for me to try. 我在办公桌上跳动着头,试图找出运行速度如此缓慢的原因,因此,如果有人可以提供一些见识,请提出一些想法供我尝试。 I have snapshots on the VM so anything i try i can revert back if needed. 我在VM上有快照,因此我尝试执行的任何操作都可以在需要时还原。

Here are some debug snapshots as well, i know it is taking a while to load and query but to cause a page load time of 1-2mins?? 这里也有一些调试快照,我知道加载和查询需要花费一些时间,但导致页面加载时间为1-2分钟? http://postimg.org/gallery/1a4e0b27s/ http://postimg.org/gallery/1a4e0b27s/

20% is very high when it comes to load. 加载时20%很高。 We always try to maintain a load below 2. Anything above 2 means a slow website. 我们始终尝试将负载保持在2以下。任何高于2的情况均表示网站运行缓慢。

Let me give you a few tips: 让我给您一些提示:

  • The RAM that you have is very small. 您拥有的RAM很小。 You will need much more than that if you have many employees posting data. 如果您有许多员工发布数据,那么您将需要的远不止这些。 I would go with 64 GB. 我会使用64 GB。 Your system is doing a lot of swapping and the fact that you probably don't have an SSD drive (I am assuming here, please correct me if I'm wrong) makes it worse. 您的系统正在进行大量交换,并且您可能没有SSD驱动器(我假设是在这里,如果我错了,请更正我),这会使情况变得更糟。
  • The MySQL slow query log should give you an idea what is going on. MySQL慢查询日志应该让您了解发生了什么。 You can enable it in the my.cnf file. 您可以在my.cnf文件中启用它。
  • If you are using InnoDB, then it's almost a certainty that it is not properly configured in your my.cnf file (we are in the process of writing a post on how to configure it for Joomla websites, and once that post is finished I will share it here) 如果您使用的是InnoDB,那么几乎可以肯定的是,您的my.cnf文件中没有对其进行正确配置(我们正在撰写有关如何为Joomla网站配置它的文章,一旦完成,我将在这里分享)

I found what was going on, the SP Weather module that someone used and hid on one of the pages was outdated and the API was broken. 我发现发生了什么事情,有人使用并隐藏在其中一个页面上的SP Weather模块已经过时,API坏了。

Disabled the module to check, loaded up in milliseconds. 禁用要检查的模块,以毫秒为单位加载。 Ended up finding the update and updating to fix the current weather module. 最终找到更新并进行更新以修复当前的天气模块。 Everything loads in a matter of a second or less, and the weather now works again. 一切都在几秒钟或更短的时间内完成,现在天气又恢复了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM