MySQL Server Is Slow

Posted by user2853965746 on Server Fault See other posts from Server Fault or by user2853965746
Published on 2014-06-07T00:03:56Z Indexed on 2014/06/07 3:30 UTC
Read the original article Hit count: 404

Filed under:
|
|
|

I have two MySQL servers and one was just recently setup. The one I just recently setup is a bit slower than my older one, which kind of bothers me because I don't want my clients to be upset with the speed difference when I launch the new one.

The older server runs on Ubuntu (~13.04 I believe) and the new one is on Debian 6. Both servers are 2GB ram, but my newer server is has an SSD, so I thought it might be the same speed if not faster.

Anyway, the speed difference isn't too much (both are still under a second, but still noticeable).

Whenever I select 50 rows from the user table on my older server (SELECT * FROM users LIMIT 50), I get the results in 0.003 s. There is 100,000+ accounts in that table.

Whenever running the same command on the same table with only six dev accounts, it takes 0.069 s. It may not seem like a lot, but it's noticeable when you're used to a fast response.

I added skip-name-resolve to the config and it didn't seem to help. Basically I'm asking if anyone knows what can cause a MySQL server to be slow in Debian 6? Should I just drop it and switch to Ubuntu like the older server (I don't think the OS is the problem, but you never know)?

The older server is under a lot of use too, it's used a lot for web api's on my website. A lot of connections and stuff, and it still remains fast.

© Server Fault or respective owner

Related posts about ubuntu

Related posts about mysql