Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8446615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T09:58:43+00:00 2026-06-10T09:58:43+00:00

I am currently running some java code which makes extensive calls to a mysql

  • 0

I am currently running some java code which makes extensive calls to a mysql database. These calls are flooding the database and after a few hours of the code running I am getting a nested exception:

java.io.EOFException
    at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1934)
    at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2380)
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2909)
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:798)
    at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3700)
    at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1203)
    at com.mysql.jdbc.Connection.createNewIO(Connection.java:2572)


Last packet sent to the server was 8789 ms ago.
    at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2592)
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2909)
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:798)
    at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3700)
    at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1203)
    at com.mysql.jdbc.Connection.createNewIO(Connection.java:2572)

Unfortunately I do not have much experience with this kind of problem, can anyone recommend ways to ensure all my queries can be processed?

I can appreciate this is a very broad question, but the queries themselves are not difficult, it is more the scale of the number of queries I am requesting.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T09:58:44+00:00Added an answer on June 10, 2026 at 9:58 am

    I would troubleshoot this at the OS/MySql/Web server level. In other words, this isn’t a “Java” problem per se. It’s probably much more a “system performance/system configuration” issue.

    SUGGESTION:

    1) You haven’t specified your OS, Web server/application server. These are key.

    2) Run basic performance checks (ps -eaf and iostat for Linux, Task Mgr/CPU/Memory/Networking stats for Windows). Pay particular attention to “netstat” (Linux and Windows).

    3) Look at all the relevant logs (/var/log/messages etc for Linux; EventVwr, etc for Windows)

    4) Check your OS, DB and Web server configuration settings.

    5) Pay particular attention to possible “stale connections” and DB-related “connection pooling” parameters.

    Check these links:

    • Communications link failure due to: java.io.EOFException
      <= Set Tomcat “autoReconnect=true” … if you’re even running Tomcat!

    • http://wordpress.transentia.com.au/wordpress/2009/09/30/tweaking-the-grails-datasource-to-cope-with-mysqls-foibles/

    • http://sacharya.com/grails-dbcp-stale-connections/
      <= Tweak connection pooling parameters

    • http://communications-link-failure.blogspot.com/
      <= Reduce mysql wait_timeout

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently running some SQL which uses an IN expression to match against multiple
I'm running some code through FxCop and am currently looking at clearing all of
I got some java-byte-code (so compiled java-source) which is generated in my program. Now
In some Java code running on Windows, I'm reading some large blocks of RGB
I'm running some background threads in the GUI. Currently I'm implementing a personal Thread
I am currently running a PHP script that queries the database and then sends
I have (java) code that creates and populates tables in a derby database, using
Given a Java Servlet (running on a Windows server) which creates a new process
My enterprise application is currently Running on Weblogic 10.3.4, Java 1.6 and Spring 2.0.8.
I have a java process currently running under a windows shell. One of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.