Quantcast
Channel: Azure Virtual Machines forum
Viewing all articles
Browse latest Browse all 12545

Azure Win Server 2012 R2 VM running MySQL slower than it should

$
0
0

Hey,

We have attempted to use a Azure VM with Windows 2012 Server R2 Datacenter as a MySQL server for a Azure Website and we noticed that the Azure VM is much slower than our existing VMs (from a local hosting company) at handling MySQL queries.
First we thought that maybe the connection between our VM and website was slow, but after some query profiling using a MySQL client directly we got some rather surprising results: It looks like the Azure VM is almost twice as slow as a VM from the local hosting company with almost identical specs and software installed.

Azure VM query profile:

StatusDuration
starting0,000207
checking permissions0,000009
checking permissions0,000010
Opening tables0,000054
System lock0,000025
init0,000101
optimizing0,000030
statistics0,000053
preparing0,000035
executing0,000289
Sorting result0,159431
Sending data0,009420
end0,000051
removing tmp table0,000014
end0,000007
query end0,000003
closing tables0,000013
freeing items0,000054
logging slow query0,000002
cleaning up0,000003

Local Hosting Company VM query profile:

StatusDuration
starting0,000069
checking permissions0,000002
checking permissions0,000004
Opening tables0,000021
System lock0,000008
init0,000041
optimizing0,000012
statistics0,000025
preparing0,000014
executing0,000085
Sorting result0,079367
Sending data0,007617
end0,000033
removing tmp table0,000008
end0,000004
query end0,000002
closing tables0,000009
freeing items0,000033
logging slow query0,000002
cleaning up0,000002

These VMs have almost completely identical hardware specs, the same operating system and only MySQL Server 5.5.40 has been installed by us after the initial setup by Azure or the LHC. MySQL has the exact same config on both machines.
My question is why is the Azure VM so much slower?
100ms extra might not seem like much, but it adds up when we run a lot of similar queries, and the difference is even more noticable when running larger queries.


Viewing all articles
Browse latest Browse all 12545

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>