Mysql persistant connection

Hi all

i run a 3.06HT with 1Gb ram and i have problem with server load i found the cause is the Mysql, seem that i have a lot of persistant connection so i have try to disable it in the php.ini

mysql.allow_persistent = Off ; allow or prevent persistent link
mysql.max_persistent = 0 ; maximum number of persistent links. -1 means no limit


and i have add the following configuration in my.cnf

[mysqld]
max_connections = 500
key_buffer = 150M
myisam_sort_buffer_size = 64M
join_buffer_size = 1M
read_buffer_size = 1M
sort_buffer_size = 1M
table_cache = 1500
thread_cache_size = 128
wait_timeout = 14400
connect_timeout = 10
max_allowed_packet = 16M
max_connect_errors = 10
query_cache_limit = 1M
query_cache_size = 32M
query_cache_type = 1
skip-innodb

[mysqld_safe]
open_files_limit = 8192

[mysqldump]
quick
max_allowed_packet = 16M

[myisamchk]
key_buffer = 64M
sort_buffer = 64M
read_buffer = 16M
write_buffer = 16M


but if i show Mysql Process list i get a long list of persistant Mysql connection like this:

112 | pastrug_dege | localhost | pastrug_vb | Sleep | 478 | | |
| 120 | pastrug_dege | localhost | pastrug_vb | Sleep | 236 | | |
| 134 | pastrug_dege | localhost | pastrug_vb | Sleep | 301 | | |
| 138 | pastrug_dege | localhost | pastrug_vb | Sleep | 228 | | |
| 139 | pastrug_dege | localhost | pastrug_vb | Sleep |

so how can i disable this persistant connection if i have disable it in the php.ini?

 

 

 

 

Top