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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T15:42:43+00:00 2026-06-06T15:42:43+00:00

I have a Java web app running on Tomcat 7 that is using JDBC

  • 0

I have a Java web app running on Tomcat 7 that is using JDBC to connect to an Oracle 11g database. The app contains a JSP that uses JQuery to make an Ajax request (using the .post function) to a servlet that inserts data into the database. When the system is under even a light load, I start seeing idle connections in the database. I observe them by checking v$session in SQL Developer. When we ran a performance test, it maxed out the database server with 150 connections in about 2 minutes. I have been over my code many times, and I always close all ResultSets, Statements, and Connections in a finally block. The problem arises when the JSP submits multiple Ajax requests simultaneously, which made me think it might be a multithreading issue, but again, I have been over my code, and there is no data being shared across threads. The code that gets the connection from the data source and closes the connections is in an abstract base class that all the DAO classes inherit from. Does anyone have any idea what might cause this? Since there are many classes involved, I wasn’t sure what source code to post; let me know if you want to see any. Thanks for your help.

  • 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-06T15:42:44+00:00Added an answer on June 6, 2026 at 3:42 pm

    Try setting maxWait to 10000 and watch for timeouts. That would indicate that some components of your web application are not closing database connections.

    Also, try limiting maxActive to, say, 15 and see how that affects both your application and the number of simultaneously opened connections in Oracle.

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

Sidebar

Related Questions

We have a Java EE-based web application running on a Glassfish app server cluster.
(I'm using WebSphere 7, by the way) I have a java web app with
Background: I have created a CRUD web app using a java based RAD tool
I have a simple JSF web app as follows. The Java class contains: private
I have a web app consisting of some JSPs that were previously running on
I have a java web application running on tomcat, and will use single sign
I have a java web application running under tomcat in a Sun java 6
We have a Java web application running on JBoss and Linux. Production environment database
I have a Java webapp, running in Tomcat 6, that loads RSS feeds from
I have a basic web application written in Java, running on a tomcat on

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.