MySQL Forums
Forum List  »  Performance

Slow response time due queries
Posted by: Jens Meier
Date: September 23, 2014 01:32AM

Hello community,

I've got a problem with a MySQL database. The response time of the queries is slow. The queries are optimized to use the existing indexes.
On my test pc the MySQL server is running on a windows 7 vmware. The vmware runs on a usb 3.0 hardisk. The queries are fast when using this database.

The problematic database runs on a windows 2012 r2 server (virtualized with Hyper-V). The host system has 32 GB RAM, 15k SAS harddisks and a quad core xeon cpu. There are now other virtualized machines on the host system.

I took some time to google and I tried some adjustments, but I had no success. The response of the most queries on the virtualized server is 1 - 3 seconds slower than on my little test system.


MySQL: 5.6 CE
Connection via .NET-Connector (localhost).

Could you please take a look at my configuration? It would be awesome if you could give me some advices.
The database will be used more for reading than writing.


SHOW VARIABLES LIKE '%buffer%':
---------------------------------------------
"Variable_name" "Value"
"bulk_insert_buffer_size" "8388608"
"innodb_buffer_pool_dump_at_shutdown" "OFF"
"innodb_buffer_pool_dump_now" "OFF"
"innodb_buffer_pool_filename" "ib_buffer_pool"
"innodb_buffer_pool_instances" "8"
"innodb_buffer_pool_load_abort" "OFF"
"innodb_buffer_pool_load_at_startup" "OFF"
"innodb_buffer_pool_load_now" "OFF"
"innodb_buffer_pool_size" "878706688"
"innodb_change_buffer_max_size" "25"
"innodb_change_buffering" "all"
"innodb_log_buffer_size" "9437184"
"innodb_sort_buffer_size" "1048576"
"join_buffer_size" "262144"
"key_buffer_size" "8388608"
"myisam_sort_buffer_size" "262144000"
"net_buffer_length" "16384"
"preload_buffer_size" "32768"
"read_buffer_size" "65536"
"read_rnd_buffer_size" "262144"
"sort_buffer_size" "262144"
"sql_buffer_result" "OFF"



my.ini:
---------------------------------------------
[client]
no-beep
port=3306

[mysql]
default-character-set=utf8

[mysqld]
port=3306
datadir="D:/MySQL/Data\"
character-set-server=utf8
default-storage-engine=INNODB
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
log-output=FILE
general-log=1
general_log_file="TERM1.log"
slow-query-log=1
slow_query_log_file="TERM1-slow.log"
long_query_time=10
log-error="TERM1.err"
max_connections=1500
query_cache_size=200M
table_open_cache=2000
tmp_table_size=129M
thread_cache_size=10
myisam_max_sort_file_size=100G
myisam_sort_buffer_size=248M
key_buffer_size=10M
read_buffer_size=64K
read_rnd_buffer_size=256K
sort_buffer_size=256K
innodb_data_home_dir="D:/MySQL/Data/"
innodb_additional_mem_pool_size=48M
innodb_flush_log_at_trx_commit=2
innodb_log_buffer_size=16M
innodb_buffer_pool_size=4G
innodb_log_file_size=128M
innodb_thread_concurrency=8
innodb_autoextend_increment=64
innodb_buffer_pool_instances=8
innodb_concurrency_tickets=5000
innodb_old_blocks_time=1000
innodb_open_files=300
innodb_stats_on_metadata=0
innodb_file_per_table=1
innodb_checksum_algorithm=0
back_log=80
flush_time=0
join_buffer_size=256K
max_allowed_packet=16M
max_connect_errors=100
open_files_limit=4161
query_cache_type=2
sort_buffer_size=256K
table_definition_cache=1400
binlog_row_event_max_size=8K
sync_master_info=10000
sync_relay_log=10000
sync_relay_log_info=10000


Thank you in advance.

Best regards from Germany
Jens

Options: ReplyQuote


Subject
Views
Written By
Posted
Slow response time due queries
5365
September 23, 2014 01:32AM
1748
September 23, 2014 10:11PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.