[root@server ~]# free -m
total used free shared buffers cached
Mem: 8052 7487 564 0 142 5446
-/+ buffers/cache: 1899 6153
Swap: 1026 404 621
Default PHP Version (.php files) 5
PHP 5 Handler suphp
PHP 4 Handler none
Apache suEXEC on
Apache 2.2
PHP 5.2.9
Ahoj,
paměť už byla na 18%, a load na 5-12 ( 8 ). Teď jsem provedl následující změny, uvidíme co to udělá..
Nainstaloval EAccelerator for PHP - v0.9.6.1
[mysqld] Key Buffer jsem dal na 2048M
[mysqld] Join Buffer jsem dal na 2048M
[mysqld] Sort buffer jsem dal na 1024M
www.MYSQLTuner.pl mi po kontrole (asi 10 minut běhu Mysql) píše:
[!!] Switch to 64-bit OS - MySQL cannot currently use all of your RAM
[!!] Query cache prunes per day: 20086309
[!!] Joins performed without indexes: 5
[!!] Temporary tables created on disk: 49% (118K on disk / 236K total)
[!!] Table cache hit rate: 3% (1K open / 50K opened)
Variables to adjust:
*** MySQL's maximum memory usage is dangerously high ***
*** Add RAM before increasing MySQL buffer variables ***
query_cache_size (> 64M)
join_buffer_size (> 2.0G, or always use indexes with joins)
table_cache (> 1800)
