Fixed an issue with table_cache in MySQL 6.x (it's now table_open_cache in MySQL 6.x)
This commit is contained in:
parent
59eaf76f47
commit
7a154d635e
1 changed files with 5 additions and 1 deletions
|
@ -658,7 +658,11 @@ sub mysql_stats {
|
||||||
if ($mystat{'Open_tables'} > 0) {
|
if ($mystat{'Open_tables'} > 0) {
|
||||||
if ($mycalc{'table_cache_hit_rate'} < 20) {
|
if ($mycalc{'table_cache_hit_rate'} < 20) {
|
||||||
badprint "Table cache hit rate: $mycalc{'table_cache_hit_rate'}%\n";
|
badprint "Table cache hit rate: $mycalc{'table_cache_hit_rate'}%\n";
|
||||||
|
if ($mysqlvermajor eq 6) {
|
||||||
|
push(@adjvars,"table_cache (> ".$myvar{'table_open_cache'}.")");
|
||||||
|
} else {
|
||||||
push(@adjvars,"table_cache (> ".$myvar{'table_cache'}.")");
|
push(@adjvars,"table_cache (> ".$myvar{'table_cache'}.")");
|
||||||
|
}
|
||||||
push(@generalrec,"Increase table_cache gradually to avoid file descriptor limits");
|
push(@generalrec,"Increase table_cache gradually to avoid file descriptor limits");
|
||||||
} else {
|
} else {
|
||||||
goodprint "Table cache hit rate: $mycalc{'table_cache_hit_rate'}%\n";
|
goodprint "Table cache hit rate: $mycalc{'table_cache_hit_rate'}%\n";
|
||||||
|
|
Loading…
Reference in a new issue