The Artima Developer Community
Sponsored Link

Java Buzz Forum
Why did my MySQL connections suddently take 30 seconds?

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
dion

Posts: 5028
Nickname: dion
Registered: Feb, 2003

Dion Almaer is the Editor-in-Chief for TheServerSide.com, and is an enterprise Java evangelist
Why did my MySQL connections suddently take 30 seconds? Posted: Nov 27, 2006 6:41 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by dion.
Original Post: Why did my MySQL connections suddently take 30 seconds?
Feed Title: techno.blog(Dion)
Feed URL: http://feeds.feedburner.com/dion
Feed Description: blogging about life the universe and everything tech
Latest Java Buzz Posts
Latest Java Buzz Posts by dion
Latest Posts From techno.blog(Dion)

Advertisement

After a MySQL upgrade, connections to our DB from our Web tier were taking ~30 seconds. It was infuriating.

We weren't the first to see this:

After three years of running flawlessly, out MySQL database started experiencing problems handling connections. We soon discovered that MySQL by default does a reverse DNS lookup as part of its security process. We discovered that the reverse DNS lookups performed by MySQL were either timing out or were taking a very long time (5-10 seconds). We also discovered that another peice of software- a socket service listening on port 211 began to fail as well. This was a third party product so we are not sure, but the presumption is that it must also use reverse DNS lookups.

We added valid reverses via /etc/hosts and the connections happened immediately again.

Thanks to Contegix on this one. If your company has its servers hanging out in the office, please call contegix right away and get serious (Yes, I am talking to you :).

Read: Why did my MySQL connections suddently take 30 seconds?

Topic: I Found JavaMappy Previous Topic   Next Topic Topic: $400M Later, JBoss Founder Looking for further RedHat investment

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use