近期随着人员的增多,论坛出现很不稳定现象。
- oneleaf
- 论坛管理员
- 帖子: 10441
- 注册时间: 2005-03-27 0:06
- 系统: Ubuntu 12.04
近期随着人员的增多,论坛出现很不稳定现象。
现作出如下的调整,apache2并发连接放宽到1500个。
- oneleaf
- 论坛管理员
- 帖子: 10441
- 注册时间: 2005-03-27 0:06
- 系统: Ubuntu 12.04
加了 eAccelerator 加速,试试效果。
svn --username anonymous --password anonymous co http://dev.eaccelerator.net/eaccelerator/trunk eaccelerator
cd eaccelerator/
sudo apt-get install autoconf
sudo apt-get install automake
sudo apt-get install libtool
sudo apt-get install php5-dev
phpize5
./configure
make
sudo make install
mkdir /tmp/eaccelerator
sudo chown www-data:www-data /tmp/eaccelerator
sudo vim /etc/php5/apache2/php.ini
svn --username anonymous --password anonymous co http://dev.eaccelerator.net/eaccelerator/trunk eaccelerator
cd eaccelerator/
sudo apt-get install autoconf
sudo apt-get install automake
sudo apt-get install libtool
sudo apt-get install php5-dev
phpize5
./configure
make
sudo make install
mkdir /tmp/eaccelerator
sudo chown www-data:www-data /tmp/eaccelerator
sudo vim /etc/php5/apache2/php.ini
代码: 全选
zend_extension="/usr/lib/php5/20051025/eaccelerator.so"
zend_extension_ts="/usr/lib/php5/20051025/eaccelerator.so"
eaccelerator.shm_size="16"
eaccelerator.cache_dir="/tmp/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
上次由 oneleaf 在 2007-04-23 11:17,总共编辑 1 次。
- firehare
- 帖子: 2625
- 注册时间: 2005-04-10 16:54
- 来自: 温州大学
- 联系:
-
- 帖子: 26
- 注册时间: 2005-08-21 10:31
- 联系:
- oneleaf
- 论坛管理员
- 帖子: 10441
- 注册时间: 2005-03-27 0:06
- 系统: Ubuntu 12.04
- adqin
- 帖子: 1417
- 注册时间: 2007-01-24 22:07
- 来自: http://adqin.cn
- 联系:
-
- 帖子: 1897
- 注册时间: 2006-09-12 14:09
- oneleaf
- 论坛管理员
- 帖子: 10441
- 注册时间: 2005-03-27 0:06
- 系统: Ubuntu 12.04
重新使用了稳定版,看看是不是这个原因引起的:
wget -c http://bart.eaccelerator.net/source/0.9 ... .5.tar.bz2
tar xjvf eaccelerator-0.9.5.tar.bz2
wget -c http://bart.eaccelerator.net/source/0.9 ... .5.tar.bz2
tar xjvf eaccelerator-0.9.5.tar.bz2
- oneleaf
- 论坛管理员
- 帖子: 10441
- 注册时间: 2005-03-27 0:06
- 系统: Ubuntu 12.04
- adqin
- 帖子: 1417
- 注册时间: 2007-01-24 22:07
- 来自: http://adqin.cn
- 联系:
- BigSnake.NET
- 帖子: 12522
- 注册时间: 2006-07-02 11:16
- 来自: 廣州
- 联系:
- xport
- 帖子: 1277
- 注册时间: 2006-05-19 21:23
- 联系:
Re: 近期随着人员的增多,论坛出现很不稳定现象。
增加了并发连接数目不是饮鸩止渴么?oneleaf 写了:现作出如下的调整,apache2并发连接放宽到1500个。
并发会增加资源的耗用量,应该是缩短每个session在操作时所耗用的时间!
其实我是一个演员!-http://blog.csdn.net/xport/
- oneleaf
- 论坛管理员
- 帖子: 10441
- 注册时间: 2005-03-27 0:06
- 系统: Ubuntu 12.04
- xport
- 帖子: 1277
- 注册时间: 2006-05-19 21:23
- 联系: