Zend Optimizer 可以尝试一下吗?
我有一个服务器:
Intel Processor: Intel® Xeon® X3450, 4x2x2.66 GHz
RAM memory: 8GB ECC DDRIII
每天的访问者:
100k unique
400k clicks
基本上,20 个域通过一个脚本运行。我经常更新脚本。日常的。我想知道 Zend Optimizer 是否是优化脚本性能的好选择。 (尽管如此,我目前并没有感到任何不适)
我的两个主要担忧是:
- 它实际上会增加页面吗? 加载时间/减少服务器 RAM/CPU 加载?如果是的话,幅度是多少(%)?
- 有没有一种舒适的方式,使用操作系统 X, 将原始文件保留在本地磁盘上 每次按下保存键时, 自动编码的程序 文件并上传到服务器? (我用的是Panic的Coda)
I have a server:
Intel Processor: Intel® Xeon® X3450, 4x2x2.66 GHz
RAM memory: 8GB ECC DDRIII
The per day visitors:
100k unique
400k clicks
Basically, 20 domains run from a single script. I do quite often update the script. Daily. I was wondering whether Zend Optimizer is a good option to optimize script perfomance. (even though, I don't feel any discomfort at the moment)
My two main concerns are:
- Will it actually increase page
loading time/decrease server RAM/CPU
load? If so, by how much (%)? - Isthere a comfortable way, using OS
X,
to keep original files on Local disk
and every time you press save, for
the program to automatically encode
files and upload them to the server?
(I am using Panic's Coda)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
回应你的第一点。不,Zend Optimizer 仅与 php4 真正相关。从 PHP5 开始,内部引擎得到了改进,优化器变得多余。
如果你还没有使用的话,你应该考虑使用 APC [1],这里有很多东西,谷歌上有关于它的信息,但简而言之,它会缓存你的代码,这样 PHP 就不必在每次页面打开时都编译它。跑步。 (它对代码执行速度产生了巨大的影响)
您还应该考虑在代码上运行某种形式的分析器,例如 XHprof [2] 或 xdebug[3],以便您可以看到瓶颈在哪里。
您可能还想考虑使用不同的 Web 服务器,例如 nginx/lighttpd/apache 或微调其配置
对于您关于 Coda 的第二个问题 - 将其作为另一个问题在这里或programmers.stackoverflow
[1] http://php.net/manual/en/book.apc.php
[2] http://mirror.facebook.net/facebook/xhprof/doc.html< /a>
[3] http://www.xdebug.org/
In response to your first point. No, Zend Optimizer was only really relevant with php4. Since PHP5, the internal engine/ has been improved such that the optimizer is redundant.
What you should look at using if you are not already is APC [1], there is lots of stuff on here and google about it but in short, it caches your code so PHP doesn't have to compile it every time the page is run. (and it makes a MASSIVE difference to code execution speed)
You should also look at running some form of profiler such as XHprof [2] or xdebug[3] on the code so you can see where the bottlenecks are.
You might also want to think about using a different web server such as nginx/lighttpd/apache or fine tuning its configuration
For you second question about Coda - ask it as another question on here or programmers.stackoverflow
[1] http://php.net/manual/en/book.apc.php
[2] http://mirror.facebook.net/facebook/xhprof/doc.html
[3] http://www.xdebug.org/