JOOMLA网站太慢了

时间:2013-10-24 13:02:56

标签: apache joomla xampp joomla2.5 joomla3.0

我的Joomla网站太慢了。它大约使用8到10秒来加载主页面。我正在使用xampp。模板protostar。 PC核心i7。 OS窗口。 JOOMLA 3.15。这是正常的吗?

或任何人可以指导我如何调试此问题。

Snap shot form chrome developer network tab

4 个答案:

答案 0 :(得分:4)

Oppz我现在解决了这个问题。我在php.ini中禁用Xdebug,时间从8s减少到1s

[XDebug]
;zend_extension= "C:\Users\arslan\Desktop\xampp-win32-1.8.1-VC9\xampp\php\ext\php_xdebug.dll" 
;xdebug.remote_enable=on
;xdebug.remote_handler=dbgp
;xdebug.remote_host="localhost"
;xdebug.remote_port=9001
;xdebug.remote_autostart=1

我的服务器是xampp。

Joomla网站的问题解决了。

它现在像豹子一样奔跑。

OS window7

workstation corei7

本地主机

编辑:: 当我删除以下代码形式protostar index.php即谷歌字体

时,时间减少到0.5秒
 <link href='http://fonts.googleapis.com/css?family=<?php echo    
$this->params->get('googleFontName');?>' rel='stylesheet' type='text/css' />
      <style type="text/css">
         h1,h2,h3,h4,h5,h6,.site-title{
            font-family: '<?php echo str_replace('+', ' ', $this->params->get('googleFontName'));?>', sans-serif;
         }
      </style>

答案 1 :(得分:4)

L在您的configuration.php中,请确保您拥有public $host = '127.0.0.1';,而不是'localhost'。这是一个php / mysql问题。对我来说,每个数据库连接的差异为1秒。

当您启用joomla调试模式时,您将获得时间信息:

本地主机: enter image description here

127.0.0.1: enter image description here

答案 2 :(得分:0)

当您使用xampp / win时,很难说出问题是什么,因为该设置本身比设置为运行Joomla的* nix服务器慢。与大多数网络软件一样,Joomla受托管环境的影响很大。获得一个好的主机对于网站速度至关重要。我们最近通过将客户端移动到为Joomla优化的专用服务器来帮助客户解决站点速度问题。加载时间从6-8秒到2秒以下,我们没有做任何事情,只是移动网站。

在生产服务器上获取之前我不担心。即使这样,我也会确保你是一位专注于Joomla的优质主持人,如RochenHost.com。

答案 3 :(得分:0)

除了上面提到的答案,我还没注释

bind-address="127.0.0.1"

在MySQL配置文件(my.ini)中设置。

这使我在Windows 8.1上的本地Joomla安装的执行速度提高了。

相关问题