From 63fc929fa7076d2d4195b614150c83a6d0021426 Mon Sep 17 00:00:00 2001 From: Jean-Marie RENOUARD Date: Mon, 17 Aug 2015 18:31:14 +0200 Subject: [PATCH] Issue #101 --- mysqltuner.pl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mysqltuner.pl b/mysqltuner.pl index fc77241..94c4676 100755 --- a/mysqltuner.pl +++ b/mysqltuner.pl @@ -300,8 +300,8 @@ sub os_setup { $swap_memory = $swap_memory*1024*1024; } } - debugprint "Physical Memory: $physical_memory\n" - debugprint "Swap Memory: $swap_memory\n" + debugprint "Physical Memory: $physical_memory\n"; + debugprint "Swap Memory: $swap_memory\n"; chomp($physical_memory); chomp($swap_memory); chomp($os); @@ -1330,9 +1330,12 @@ sub mysql_stats { } else { $table_cache_var = "table_cache"; } + push(@adjvars,$table_cache_var." (> ".$myvar{$table_cache_var}.")"); push(@generalrec,"Increase ".$table_cache_var." gradually to avoid file descriptor limits"); push(@generalrec,"Read this before increasing ".$table_cache_var." over 64: http://bit.ly/1mi7c4C"); + push(@generalrec,"Beware that open_files_limit (".$myvar{'open_files_limit'}.") variable "); + push(@generalrec,"should be greater that $table_cache_var ( ".$myvar{$table_cache_var}.")"); } else { goodprint "Table cache hit rate: $mycalc{'table_cache_hit_rate'}% (".hr_num($mystat{'Open_tables'})." open / ".hr_num($mystat{'Opened_tables'})." opened)\n"; }