PHP解释器如何工作? [英] how does the PHP interpreter work?

查看:69
本文介绍了PHP解释器如何工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到当我的博客软件试图联系时
www.weblogs.com ,要使用更新服务,我的整个网站(所有PHP)

减慢速度。联系 www.weblogs.com 可能需要很长时间。我不能确定发生了什么,除非PHP解释器陷入困境

试图联系 www.weblogs.com ,因此不太能够将PHP页面提供给其他网站访问者。但是如果PHP解释器很容易受到减速的影响,那么看起来PHP似乎无法扩展到处理大型网站的
,我知道它运行一些非常大的网站。


什么样的情况会降低PHP解释器的速度?

解决方案

< a href =mailto:lk *​​**** @ geocities.com> lk ****** @ geocities.com (劳伦斯)不情愿地从

幕后出现并且醉地摇摇晃晃地走向麦克风。他用一种破碎的声音低声说道:

什么样的情况可以减慢PHP解释器的速度?




大部分时间瓶颈是数据库服务器,而不是

语言翻译。


-

Phil Roberts |没有我它只是aweso。 | http://www.flatnet.net/


人类与动物的区别只有一点点,

并且大多数人扔掉它。

- 孔子


> lk******@geocities.com (劳伦斯)不情愿地从

中出现窗帘和醉酒交错到麦克风。他用一种破碎而且含糊不清的声音嘀咕道:

什么样的情况可以减慢PHP解释器的速度?



瓶颈是数据库服务器的时间,而不是
语言解释器。



同意Phil。您的日志文件可能很大,并且在访问它们时会遇到

问题。尽量减小尺寸。


DB是90%(或95%)时间的罪魁祸首。只需添加更多内存,缓存密钥,执行更好的结构(包括

模式的非规范化),优化表通常可以解决问题。


-
http://www.dbForumz.com/本文由作者的请求发布

单独检查文章是否符合usenet标准

主题网址: http://www.dbForumz.com/PHP-interpre...ict125397.html

访问主题网址以联系作者(reg.req''d)。举报滥用行为: http://www.dbForumz.com/eform.php ?p = 418231


" lawrence" < LK ****** @ geocities.com>在消息中写道

news:da ************************** @ posting.google.c om ...

我注意到当我的博客软件试图联系时
www。 weblogs.com ,要使用更新服务,我的整个网站(所有PHP)都会慢下来。联系 www.weblogs.com 可能需要很长时间。我无法弄清楚发生了什么,除非PHP解释器陷入困境
试图联系 www.weblogs.com ,因此不太能够将PHP页面提供给其他网站访问者。但是,如果PHP解释器容易受到减速的影响,那么PHP似乎无法扩展到处理大型站点,而且我知道它可以运行一些非常大的站点。

什么样的情况会降低PHP解释器的速度?




尝试通过Internet读取数据流。


I notice that when my weblog software tries to contact
www.weblogs.com, to use the update service, my whole site (all PHP)
slows down. Contacting www.weblogs.com can take a long time. I can''t
figure out what is going on, unless the PHP interpreter gets bogged
down trying to contact www.weblogs.com, and so is less able to serve
up PHP pages to other website visitors. But if the PHP interpreter was
that vulnerable to slow-downs, it doesn''t seem like PHP could scale to
handle large sites, and I know that it runs some very large sites.

What sort of situations can slow down the PHP interpreter?

解决方案

lk******@geocities.com (lawrence) emerged reluctantly from the
curtain and staggered drunkenly up to the mic. In a cracked and
slurred voice he muttered:

What sort of situations can slow down the PHP interpreter?



Most of the time the bottleneck is the database server, not the
language interpreter.

--
Phil Roberts | Without me its just aweso. | http://www.flatnet.net/

"Mankind differs from the animals only by a little,
and most people throw that away."
- Confucious


> lk******@geocities.com (lawrence) emerged reluctantly from the

curtain and staggered drunkenly up to the mic. In a cracked and
slurred voice he muttered:

What sort of situations can slow down the PHP interpreter?



Most of the time the bottleneck is the database server, not the
language interpreter.


Agree with Phil. Your log files are probably big, and you run into
problems accessing them. Try to reduce the size.

DB is the culprit 90% (or 95%) of the times. Simply adding more
memory, caching keys, doing a better structure (including
denormalization of schema), optimizing tables usually does the trick.

--
http://www.dbForumz.com/ This article was posted by author''s request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbForumz.com/PHP-interpre...ict125397.html
Visit Topic URL to contact author (reg. req''d). Report abuse: http://www.dbForumz.com/eform.php?p=418231


"lawrence" <lk******@geocities.com> wrote in message
news:da**************************@posting.google.c om...

I notice that when my weblog software tries to contact
www.weblogs.com, to use the update service, my whole site (all PHP)
slows down. Contacting www.weblogs.com can take a long time. I can''t
figure out what is going on, unless the PHP interpreter gets bogged
down trying to contact www.weblogs.com, and so is less able to serve
up PHP pages to other website visitors. But if the PHP interpreter was
that vulnerable to slow-downs, it doesn''t seem like PHP could scale to
handle large sites, and I know that it runs some very large sites.

What sort of situations can slow down the PHP interpreter?



Trying to read a stream of data over the Internet.


这篇关于PHP解释器如何工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆