神秘果 on 十月 29th, 2009

InnoDB引擎下发现,Mysql的主从热备存在数据不一致的问题,一些数据没有成功同步到备机。在use databases后,更新的表必须是当前选择的database才同步。譬如连上Mysql服务后操作:

Read the rest of this entry »

神秘果 on 十月 27th, 2009

在测试页面并发压力的时候,并发到80以后,响应速度急剧下降,CPU占用率急剧上升。经分析,是Apache并发数和Mysql并发数匹配问题。

Read the rest of this entry »
神秘果 on 十月 27th, 2009

长短连接区别

不同于mysql_connect的短连接,mysql_pconnect持久连接的时候,将先尝试寻找一个在同一个主机上用同样的用户名和密码已经打开的(持久)连接,如果找到,则返回此连接标识而不打开新连接。
Read the rest of this entry »
神秘果 on 十月 27th, 2009

Apache通过多路处理模块Multi-Processing ModuleMPM控制并发,常用的有两种模式:prefork(默认)和worker,通过apachectrl  -l可看到当前加载MPM模块(prefork.c或者worker.c)。

Read the rest of this entry »