• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Question about bug in JDK (SocketTimeoutException : Timing out early)

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to find the reason of "Communication link failure" problem, which is a curse of MySQL database server.

Java application works without any problem for one or two days, and after that one request to MySQL results in "Communication link failure" with "Last packet sent to the server was N ms ago" message, where N usually is 0 ms, 1 ms etc. After this, almost all subsequent calls to MySQL fail with the above error.

I have found a bug in JDK, which description sounds very similar to this problem (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6457066)

Does anybody happen to know whether the bug can be the reason of the "Communication link failure" problem? I am not able to find more details about bug # 6457066
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Could be. Have you tried watching the traffic with something like ethereal? Or turning on debug logging for your JDBC driver (if it logs much)?
 
Igor Rud
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No, I haven't tried to watch the traffic with something like ethereal, thank you for the advice, I will try to do it the next time it happens.

I have thoroughly reviewed the source code of Java MySQL connection library (ConnectorJ). The reason is socket timeout.
 
When you have exhausted all possibilities, remember this: you haven't - Edison. Tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic