mysql connection is slow (5seconds)

Posted by acidzombie24 on Server Fault See other posts from Server Fault or by acidzombie24
Published on 2010-05-23T03:18:00Z Indexed on 2010/05/23 3:32 UTC
Read the original article Hit count: 333

Filed under:
|
|
|
|

After building my webapp on a first boot i create 2 connections to mysql on debian then 1-2 (r/w) for every page after that. The connection consistently take 5.2 seconds to connect. Debian is in a VM running in my OS. Why is the connection taking this long?

At times it will take < 0.1 seconds which is great but 5.2 x2-3 on every run is to much. Has anyone experience this problem? how do i solve it?

note: I am using .NET to connect. Not that it matters. and its mysql v5

© Server Fault or respective owner

Related posts about mysql

Related posts about debian