Re: Poor performance of MySQL 5.5
Hello,
I tried to install MySQL 5.6, but at the end of the installation has return an error. So I installed MySQL 5.5.13
Without HT and NUMA a better job.
But the strange thing is that when I set in applications to connect to the new server, for the first 10 minutes the processor works at 100%, then stabilized at an acceptable value.
Another strange thing is that the processors are working at 100% for 1-2 second when the data on the tables are modified. As long as the data in the tables are not changed the server works well.
Now, unlike before, all processors always work, but I would try to re-enable HT, why do not I always see all the processors to work.
I would try to install MySQL 5.1 to see if it works better. Why now the old server where there are 2 processors in less work even better than the new server with 2 processors more.
First I tried the default parameters: the processor work at 100% for more than 30 minutes, then worked at an acceptable level, but every 10/15 minutes to put 100% for 5 minutes.
So I changed the parameters:
innodb_read_io_threads = 16
innodb_write_io_threads = 16
innodb_log_file_size = 2000M
But it works a lot worse.
So I removed them and added
innodb_buffer_pool_instances = 2
But this also works very badly
Now the configuration that works best is this:
[client]
port=3306
[mysql]
default-character-set=latin1
[mysqld]
port=3306
basedir="C:/Program Files/MySQL/MySQL Server 5.5/"
datadir="D:/MySQLDataFiles/Data/"
character-set-server=latin1
default-storage-engine=INNODB
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
max_connections=800
query_cache_size = 150M
table_cache=1520
tmp_table_size=125M
thread_cache_size=38
myisam_max_sort_file_size = 100K
myisam_sort_buffer_size = 59M
key_buffer_size = 512M
read_buffer_size = 1M
read_rnd_buffer_size = 4M
sort_buffer_size = 1M
innodb_data_home_dir="D:/MySQLDataFiles/"
innodb_additional_mem_pool_size = 14M
innodb_flush_log_at_trx_commit=1
innodb_log_buffer_size = 6M
innodb_buffer_pool_size = 700M
innodb_log_file_size = 100M
innodb_thread_concurrency = 18
slow-query-log
long_query_time = 1
log-error = "D:/MySQLLog/Error/Error.log"
slow_query_log_file = "D:/MySQLLog/SlowQuery/SlowQuery.log"
skip-name-resolve
performance_schema = off
interactive_timeout = 10
connect_timeout = 10
wait_timeout = 10
But still I can not work permanently with the new server.
For example, right now the sites are very slow and the processor is 100% by 20 minutes.
In practice, the old server works better than new server
If I could not resolve the problem, do you think is worth seek professional help (eg Percorna)?
Or is it better that I move on MS SQL Server?
Thanks for your help,
Matteo.