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 7945191
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T00:47:13+00:00 2026-06-04T00:47:13+00:00

I am having a strange issue with an exisitng servlet based applications (a litte

  • 0

I am having a strange issue with an exisitng servlet based applications (a litte old one).

I cannot get any servlets to complete operation, if it has a mysql prepared statement running slower than 10 seconds (I only have prepared statements in this app).

I dont have a problem with faster queries (less than 10 second).

catelina.out does not have any trace nor the browser interface. When I inspect the browser request through fiddler it shows

“This session is not yet complete. Press F5 to refresh when session is
complete for updated statistics. Request Count: 1 Bytes Sent:
437 (headers:437; body:0) Bytes Received: 0 (headers:0; body:0)”

MySQL “SHOW FULL PROCESSLIST” command shows the prticular socket connection (of a slow query) running for about 12 seconds with COMMAND=”Execute” and STATE=”Sending Data”, then changing to COMMAND=”Sleep” and STATE=”” and stays like this for a long time (more than 500 seconds).
Ideally this connection should not remain as a SLEEP for such a long time, but close after completion of sending data.

netstat -ab command shows the same connection as ESTABLISHED under tomcat6.exe and mysqld.exe.
Ideally this should stay as TIME_WAIT once the query execution is finished till the “TcpTimedWaitDelay” value.

Expected payload of this query is pretty nominal (around 2kbytes).

MySQL connect_timeout=100 and Tomcat connectionTimeout=”100000″ (for the port 8000 which I am running the app).

One thing I did not try to change is the JDBC DriverManager.setLoginTimeout property, since it is only concerned until getting the connection.

This app was working quite well until a couple of days back. but I do not have any statistics with me on the query execution time during those days.

I am running windows 2008 R2 std edition, tomcat 6 and MySQL 5.5.

I cannot pinpoint this behaviour to any cause. appreciate your help very much.

  • 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-04T00:47:14+00:00Added an answer on June 4, 2026 at 12:47 am

    It seems to be an issue related to the MySQL connector. We were using the old connector (version 3.1.x) . Latest stable version(5.1.20) fixed the issue.

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

Sidebar

Related Questions

I'm having a strange issue with cookie visibility between an authentication servlet and our
I am having a strange issue. My NSTimer CallMe method does not get fired
Having a strange issue with some C# code - the Getter method for a
I am having a strange issue that I can't seem to resolve. Here is
I am having a strange issue with some of my packages in the same
I am having a strange DB2 issue when I run DBUnit tests. My DBUnit
I'm having a very strange issue with Python's subprocess.Popen. I'm using it to call
I'm having an excessively strange issue. I'm working on a project and it's being
Strange issue I am having with my MVC3 project. I have followed a simple
I'm having a strange issue with my Javascript in Firefox 3.0.x. In Firefox 3.0.12,

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.