![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
What character set are you using in the JDBC driver? Does it happen to be utf-8? |
#12
| |||
| |||
|
|
I have tried it with both utf8 and latin1, no difference in delay. |
#13
| |||
| |||
|
|
-----Original Message----- From: Frank Febbraro [mailto:frankfebbraro (AT) gmail (DOT) com] Sent: Tuesday, December 07, 2004 1:01 PM To: mysql (AT) lists (DOT) mysql.com Subject: Re: MySQL 4.1.7 Network slowdown This might be related to a bug I filed a couple months ago, assuming your server is running on Windows http://bugs.mysql.com/bug.php?id=5787 Sorry, I did not mention it, we are running on Linux, Fedora Core 3 to be exact. My client machine (the remote machine in this mix) is a windows machine though -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/mysql?unsub=d...smos (DOT) com |
#14
| |||
| |||
|
|
The final question, does the windows box have reverse DNS setup for it? If not add it to the /etc/hosts file on your fc3 linux box. And reconnect to mysql. |
#15
| |||
| |||
|
|
-----Original Message----- From: Frank Febbraro [mailto:frankfebbraro (AT) gmail (DOT) com] Sent: Tuesday, December 07, 2004 3:09 PM To: Donny Simonton; mysql (AT) lists (DOT) mysql.com Subject: Re: MySQL 4.1.7 Network slowdown The final question, does the windows box have reverse DNS setup for it? If not add it to the /etc/hosts file on your fc3 linux box. And reconnect to mysql. WOW! That was it. Things are lightning fast now. Sorry for going completely down the wrong path. What would have been the best way to figure this out, not knowing this could have been the case? I truly apprecuate the help. Regards, Frank |
#16
| |||
| |||
|
|
I've been using mysql 4.1 since the first day it was out; it's all been trial and error. If I remember correctly, I found it on 4.1.0 when I was doing a processlist, and noticed that some of the boxes connecting to mysql had reverse and others didn't. So now we actually go to the /etc/hosts file and name all of our boxes something just in the hosts file so it will be easier to know exactly what everything is. You might still want to file that as a bug and you can at least have mysql determine if it's a bug or not. They will probably say it's on some documentation like on page 13,645 paragraph 12 or something so they won't consider it a bug. But at least this way somebody else may know about the problem. |
#17
| |||
| |||
|
|
-----Original Message----- From: Frank Febbraro [mailto:frankfebbraro (AT) gmail (DOT) com] Sent: Tuesday, December 07, 2004 3:23 PM To: Donny Simonton; mysql (AT) lists (DOT) mysql.com Subject: Re: MySQL 4.1.7 Network slowdown I've been using mysql 4.1 since the first day it was out; it's all been trial and error. If I remember correctly, I found it on 4.1.0 when I was doing a processlist, and noticed that some of the boxes connecting to mysql had reverse and others didn't. So now we actually go to the /etc/hosts file and name all of our boxes something just in the hosts file so it will be easier to know exactly what everything is. You might still want to file that as a bug and you can at least have mysql determine if it's a bug or not. They will probably say it's on some documentation like on page 13,645 paragraph 12 or something so they won't consider it a bug. But at least this way somebody else may know about the problem. So do you think the 5+ second delay was that it was actually getting a reverse lookup, just from somewhere that responded really slow, or it tried, got some timeout, then gave up? Thanks again...so happy. Frank -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/mysql?unsub=d...smos (DOT) com |
#18
| |||
| |||
|
|
It was probably attempting to do a reverse and nothing exists, so it just has to timeout. Reverse DNS is evil... |
|
You can disable DNS hostname lookups by starting |mysqld| with the |--skip-name-resolve| option. However, in this case, you can use only IP numbers in the MySQL grant tables. If you have a very slow DNS and many hosts, you can get more performance by either disabling DNS lookups with |--skip-name-resolve| or by increasing the |HOST_CACHE_SIZE| define (default value: 128) and recompiling |mysqld|. Another issue... why was this even having a problem? |
![]() |
| Thread Tools | |
| Display Modes | |
| |