我有一个Joomla站点,导致服务器上的负载非常高(php)。我已经运行了MySQL慢速日志特性,而且它似乎不是MySQL。
有哪些方法可以分析Joomla站点以确定是什么导致了高php负载?
一天中最高程序的例子:
testing1 testing1.com 27.32 0.53 0.3
Top Process %CPU 179 /usr/bin/php /home/testing1/public_html/index.php
Top Process %CPU 138 /usr/bin/php /home/testing1/public_html/index
我需要弄清楚一些代码在Velocity (VTL)中花费了多长时间。如下所示:
#set(start = getTickCount())
... do some stuff that takes a while ...
#set(end = getTickCount())
#set(time = end - start)
It took $time milliseconds!
Velocity是否有一个getTickCount()函数或类似的函数?还有没有其他推荐的分析方法?
我正在使用solr搜索从数据库和查询选项卡中搜索我的图书,我给出了如下内容
title : "a bloo"
我有title feild的记录
"a blood river","a blood path"
它们不会像mysql所喜欢的那样受到搜索,因为.It并不像mysql那样两者都喜欢。
title like "%a bloo%"
有没有人能建议我搜索它的正确方法。