Guest User

mysql

a guest
Nov 18th, 2016
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 5.74 KB | None | 0 0
  1. [root@server ~]# perl mysqltuner.pl
  2.  >>  MySQLTuner 1.7.0 - Major Hayden <major@mhtx.net>
  3.  >>  Bug reports, feature requests, and downloads at http://mysqltuner.com/
  4.  >>  Run with '--help' for additional options and output filtering
  5.  
  6. [--] Skipped version check for MySQLTuner script
  7. [OK] Currently running supported MySQL version 5.6.34
  8. [OK] Operating on 64-bit architecture
  9.  
  10. -------- Storage Engine Statistics -----------------------------------------------------------------
  11. [--] Status: +ARCHIVE +BLACKHOLE +CSV -FEDERATED +InnoDB +MEMORY +MRG_MYISAM +MyISAM +PERFORMANCE_SCHEMA
  12. [--] Data in MyISAM tables: 4G (Tables: 7627)
  13. [--] Data in InnoDB tables: 394M (Tables: 221)
  14. [OK] Total fragmented tables: 0
  15.  
  16. -------- Security Recommendations ------------------------------------------------------------------
  17. [OK] There are no anonymous accounts for any database users
  18. [OK] All database users have passwords assigned
  19. [!!] There is no basic password file list!
  20.  
  21. -------- CVE Security Recommendations --------------------------------------------------------------
  22. [--] Skipped due to --cvefile option undefined
  23.  
  24. -------- Performance Metrics -----------------------------------------------------------------------
  25. [--] Up for: 1m 26s (8K q [98.849 qps], 222 conn, TX: 743M, RX: 804K)
  26. [--] Reads / Writes: 97% / 3%
  27. [--] Binary logging is disabled
  28. [--] Physical Memory     : 7.6G
  29. [--] Max MySQL memory    : 1.3G
  30. [--] Other process memory: 448.7M
  31. [--] Total buffers: 1.2G global + 1.1M per thread (151 max threads)
  32. [--] P_S Max memory usage: 0B
  33. [--] Galera GCache Max memory usage: 0B
  34. [OK] Maximum reached memory usage: 1.2G (15.43% of installed RAM)
  35. [OK] Maximum possible memory usage: 1.3G (17.32% of installed RAM)
  36. [OK] Overall possible memory usage with other process is compatible with memory available
  37. [OK] Slow queries: 0% (0/8K)
  38. [OK] Highest usage of available connections: 13% (20/151)
  39. [OK] Aborted connections: 0.00%  (0/222)
  40. [!!] name resolution is active : a reverse name resolution is made for each new connection and can reduce performance
  41. [OK] Query cache is disabled by default due to mutex contention on multiprocessor machines.
  42. [OK] Sorts requiring temporary tables: 1% (25 temp sorts / 1K sorts)
  43. [OK] No joins without indexes
  44. [!!] Temporary tables created on disk: 62% (345 on disk / 548 total)
  45. [OK] Thread cache hit rate: 90% (20 created / 222 connections)
  46. [OK] Table cache hit rate: 98% (370 open / 377 opened)
  47. [OK] Open file limit used: 0% (531/65K)
  48. [OK] Table locks acquired immediately: 98% (7K immediate / 7K locks)
  49.  
  50. -------- Performance schema ------------------------------------------------------------------------
  51. [--] Performance schema is disabled.
  52.  
  53. -------- ThreadPool Metrics ------------------------------------------------------------------------
  54. [--] ThreadPool stat is disabled.
  55.  
  56. -------- MyISAM Metrics ----------------------------------------------------------------------------
  57. [!!] Key buffer used: 22.3% (59M used / 268M cache)
  58. [OK] Key buffer size / total MyISAM indexes: 256.0M/205.8M
  59. [OK] Read Key buffer hit rate: 99.0% (1M cached / 10K reads)
  60. [OK] Write Key buffer hit rate: 99.8% (34K cached / 70 writes)
  61.  
  62. -------- InnoDB Metrics ----------------------------------------------------------------------------
  63. [--] InnoDB is enabled.
  64. [--] InnoDB Thread Concurrency: 0
  65. [OK] InnoDB File per table is activated
  66. [OK] InnoDB buffer pool / data size: 400.0M/394.1M
  67. [OK] InnoDB log file size / InnoDB Buffer pool size: 120.0M/400.0M should be equal 25%
  68. [OK] InnoDB buffer pool instances: 1
  69. [--] InnoDB Buffer Pool Chunk Size not used or defined in your version
  70. [OK] InnoDB Read buffer efficiency: 99.92% (6162985 hits/ 6168039 total)
  71. [!!] InnoDB Write Log efficiency: 28.57% (6 hits/ 21 total)
  72. [OK] InnoDB log waits: 0.00% (0 waits / 15 writes)
  73.  
  74. -------- AriaDB Metrics ----------------------------------------------------------------------------
  75. [--] AriaDB is disabled.
  76.  
  77. -------- TokuDB Metrics ----------------------------------------------------------------------------
  78. [--] TokuDB is disabled.
  79.  
  80. -------- XtraDB Metrics ----------------------------------------------------------------------------
  81. [--] XtraDB is disabled.
  82.  
  83. -------- RocksDB Metrics ---------------------------------------------------------------------------
  84. [--] RocksDB is disabled.
  85.  
  86. -------- Spider Metrics ----------------------------------------------------------------------------
  87. [--] Spider is disabled.
  88.  
  89. -------- Connect Metrics ---------------------------------------------------------------------------
  90. [--] Connect is disabled.
  91.  
  92. -------- Galera Metrics ----------------------------------------------------------------------------
  93. [--] Galera is disabled.
  94.  
  95. -------- Replication Metrics -----------------------------------------------------------------------
  96. [--] Galera Synchronous replication: NO
  97. [--] No replication slave(s) for this server.
  98. [--] This is a standalone server.
  99.  
  100. -------- Recommendations ---------------------------------------------------------------------------
  101. General recommendations:
  102.     MySQL started within last 24 hours - recommendations may be inaccurate
  103.     Configure your accounts with ip or subnets only, then update your configuration with skip-name-resolve=1
  104.     Temporary table size is already large - reduce result set size
  105.     Reduce your SELECT DISTINCT queries without LIMIT clauses
  106. [root@server ~]# cat /etc/my.cnf
  107. [mysqld]
  108. default-storage-engine=MyISAM
  109. innodb_file_per_table=1
  110. performance-schema=0
  111. local-infile=0
  112. max_allowed_packet=1M
  113. open_files_limit=65535
  114. innodb_buffer_pool_size = 400M
  115. max_heap_table_size = 32M
  116. tmp_table_size = 512M
  117. innodb_log_file_size = 120M
  118. max_heap_table_size = 512M
  119. innodb_buffer_pool_instances = 1
  120. table_open_cache = 6000
  121. key_buffer_size = 256M
  122. [root@server ~]#
Advertisement
Add Comment
Please, Sign In to add comment