Advertisement

04.17.2008 at 07:17PM PDT, ID: 23333065
[x]
Attachment Details

mysql query slow on ReadAheadInputStream.fill

Asked by bhomass in MySQL

I have a web app using tomcat, hibernate and mysql. a simple query is taking enormous amount of time (i.e. 30 sec). with profiling, I discovered that the time is chewed during

com.mysql.jdbc.util.ReadAheadInputStream.fill, which calls java.net.SocketInputStream.read. The profiler does not go deeper than that.

however, when doing the same query directly in a Windows prompt, the return is instant, so the problem can not be with mysql tuning.

what can be wrong with the mysql driver which causes this delay?Start Free Trial
[+][-]04.17.2008 at 09:02PM PDT, ID: 21383213

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: MySQL
Sign Up Now!
Solution Provided By: brycen
Participating Experts: 1
Solution Grade: A
 
 
[+][-]04.17.2008 at 10:39PM PDT, ID: 21383517

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628