全球地震监测网 IRIS Seismic Monitor

Posted by on 四 7, 2010 in IT | 0 comments

最近的地震多了点,这不刚看的新闻,印尼又震了。我在汶川大地震后一直保留着一个全球地震监测的网站,能够实时看到全球的地震情况,地址是http://www.iris.edu/seismon/,据我所知,全世界很多地震站/地震台的信息是共享的,我们在地图上可以看到,蓝色三角就是全球各地的站台

粉色点是地震震中,圆圈的大小表示震级,而时间用圆圈颜色表示。我们可以很明显的看到地震带的分布,地球上每时每刻都在发生着地壳运动,通过这个网站,你可洞悉一切。

Read More

WinCache-Windows Cache Extension for PHP

Posted by on 三 29, 2010 in IT | 0 comments

微软可能是意识到了自家IIS模块支持的劣势,性能上姑且不论,功能上,microsoft逐渐添加了rewrite等新的特性支持,使其IIS至少在功能上不输其他,在加速器/缓存器类的扩展中,微软也开发了WinCache用于FastCGI模式下的PHP加速,官方页面:http://www.iis.net/expand/WinCacheForPhp。简单试用下,替换了之前用的xcache,毕竟是微软自家出的东西,兼容啊,对FastCGI的优化啊应该都会好一些,安装和配置也很简单,加载是通过extension方式,我把其中两个缓存大小设成最小值了,对于wordpress来说足够了,另外session.save_handler是WinCache 1.1新增的功能,作用是把session文件保存在内存中,原文是这样说的:

Windows Cache Extension 1.1 includes a PHP session handler that can be used to configure PHP to store the session data in shared memory user cache. Using shared memory instead of default file session storage helps improve performance of PHP applications that store large amount of data in session objects. To configure PHP to use WinCache session handler set the php.ini setting session.save_handler to “wincache“.

Note that in beta release of WinCache Extension 1.1, the user cache is kept in memory and is not backed by a file system storage. This means that the session data stored in the shared memory will be lost when IIS application pool is recycled.

extension = php_wincache.dll
wincache.fcachesize=5
wincache.ocachesize=30
wincache.ucachesize=5
session.save_handler = wincache

安装完成后,你可以用自带的wincache.php监视wincache的运行情况:

Firefox和wordpress最大的好处就在于,它们都有庞大的插件系统,这种类模块化的方式是未来软件和web应用的趋势,同样,我也找到了wincache的Object Cache for WordPress,启用它,可以充分利用wincache的加速能力,得到更进一步的性能提升。用的时候,把这个文件放在/wp-content/目录就可以了。点选User and Session Cache页面可以查看生效与否。

Read More

XCache

Posted by on 三 26, 2010 in IT | 0 comments

XCache是国人写的php缓存器 ,通过zend,php ext方式都可以加载,之前在朋友的机器 上一直用eAccelerator,换到Godaddy的windows主机后,怎么试都加载不了,所以找了XCache来用,效果也很好,而且有专门针对wordpress的plugin,用来充分发挥XCache所带来的优化。这是我所使用参数 ,观察了一下,缓存设置什么的放一个wp足够了,大概能富裕1/3~1/2左右。

ps:现在有更好的选择可用,是WinCache,下一篇会介绍。

zend_extension=”php_xcache.dll”

xcache.admin.enable_auth = Off
xcache.coredump_directory = “”
xcache.shm_scheme = “mmap”
xcache.size  = 32M
xcache.count = 8
xcache.slots = 8K
xcache.ttl   = 0
xcache.gc_interval = 0

xcache.var_size  = 2M
xcache.var_count = 8
xcache.var_slots = 8K
xcache.var_ttl   = 0
xcache.var_maxttl   = 0
xcache.var_gc_interval = 0
xcache.mmap_path = “xyz”

Read More
第 5 页,共 58 页« 最新...34567...102030...最旧 »