当压力测试并发达1000时,内存基本消耗完,并发数再加上去就会死机,数据库服务器压力不大,有使用文件缓存,数据量比较大,有xcache
环境:
PHP Version 5.2.6System Linux bogon 2.6.18-92.el5xen #1 SMP Tue Apr 29 13:31:30 EDT 2008 x86_64
Build Date Aug 5 2009 17:51:16
Configure Command './configure' '--prefix=/usr/local/php' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-mysqli=/usr/local/mysql/bin/mysql_config' '--with-mysql=/usr/local/mysql'
Server API Apache 2.0 Handler
Virtual Directory Support enabled
Configuration File (php.ini) Path /usr/local/php/lib
Loaded Configuration File /usr/local/php/lib/php.ini
PHP API 20041225
PHP Extension 20060613
Zend Extension 220060519
Debug Build no
Thread Safety enabled
Zend Memory Manager enabled
IPv6 Support enabled
Registered PHP Streams php, file, data, http, ftp
Registered Stream Socket Transports tcp, udp, unix, udg
Registered Stream Filters string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, convert.iconv.*
环境:
PHP Version 5.2.6System Linux bogon 2.6.18-92.el5xen #1 SMP Tue Apr 29 13:31:30 EDT 2008 x86_64
Build Date Aug 5 2009 17:51:16
Configure Command './configure' '--prefix=/usr/local/php' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-mysqli=/usr/local/mysql/bin/mysql_config' '--with-mysql=/usr/local/mysql'
Server API Apache 2.0 Handler
Virtual Directory Support enabled
Configuration File (php.ini) Path /usr/local/php/lib
Loaded Configuration File /usr/local/php/lib/php.ini
PHP API 20041225
PHP Extension 20060613
Zend Extension 220060519
Debug Build no
Thread Safety enabled
Zend Memory Manager enabled
IPv6 Support enabled
Registered PHP Streams php, file, data, http, ftp
Registered Stream Socket Transports tcp, udp, unix, udg
Registered Stream Filters string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, convert.iconv.*
解决方案 »
- 多国语版本问题
- 各位道上的朋友帮忙看下这个ajax局部刷新为什么不行...........
- system函数使用时的一个不理解的现象 求帮助
- 古怪的ajax+php问题,盼高人解决
- 请教一下PHP高手帮我看一下那点错了!?
- HTML格式入库问题
- 我要做一个在线客服的系统,就是,用户访问网站时,会弹出一窗口,在这个窗口里面,
- 用PHP模访搜房网做个网站,关于设计方面问题请各位大侠指教,不胜感激!!!
- 类中调用自定义方法怎么会Fatal error: Call to undefined function
- 求高手帮忙,想要读取test.txt文件中的内容,然后放到数组,最后变成json数组,请问如何实现?
- 怎么接收name和age得值
- 正则 剔除HTML注释块
服务器内存4G,初始值大概1G
<IfModule mpm_prefork_module>
StartServers 10
MinSpareServers 10
MaxSpareServers 15
ServerLimit 2000
MaxClients 1000
MaxRequestsPerChild 150
</IfModule>ThreadsPerChild 160
MaxRequestsPerChild 150
我这样设置的,物理内存2个G,