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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T03:01:06+00:00 2026-06-05T03:01:06+00:00

I am using tomcat pool on tomcat 6. Following is the my resource definition:

  • 0

I am using tomcat pool on tomcat 6. Following is the my resource definition:

 <Resource name="jdbc/DBConnectionFactory"
            auth="Container"
            type="javax.sql.DataSource"
            username="root"
         password="root"
        removeAbandoned="true"
        removeAbandonedTimeout="600"
            driverClassName="com.mysql.jdbc.Driver"
            url="jdbc:mysql://localhost/sicad?autoReconnect=true"
               minIdle="3"
       maxActive="250"
       testWhileIdle="true"
       validationQuery="SELECT 1"
            maxIdle="10"
           timeBetweenEvictionRunsMillis="10000"
           minEvictableIdleTimeMillis="10000"
              maxWait="-1"
     />

Now, ideally after going to 250 connections all the idle connections should be removed, or atleast by some means mysql should not give too many connections error. Also, please note that if i do showprocesslist, there are hardly any concurrent queries going on. So i was thinking that timeBetweenEvictionRunsMillis should do the trick of removing idle connections and keep the pool alive. but as soon as 250 connections are set, the mysql starts throwing too many connections error. I was expecting that the tomcat pool, would remove any idle connections off the pool to keep the pool size reasonable. also note that its not that there are so many being created.

What’s worse, this same configuration is working on developer machines and staging server + test server, but not on product server. also all the machines are clones of each other. i have rebooted machine, re-installed mysql, everything but all in vain.

  • 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-05T03:01:07+00:00Added an answer on June 5, 2026 at 3:01 am

    Nothing worked, finally abandoned the hardware and same codebase, driver and mysql installation worked.

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

Sidebar

Related Questions

I am using tomcat connection pool, jpa, hibernate. The datasource i created in context.xml
I am using Apache DBCP with JNDI in my tomcat container to pool connections
I'm using Tomcat as a servlet container, and have many WARs deployed. Many of
I am using Tomcat and Java (through Eclipse) and SQL Server 2008 R2 I
Recently I've decided to move from Common DBCP to Tomcat JDBC Connection Pool. I
I'm using Tomcat 5.5 as my servlet container. My web application deploys via .jar
I'm investigating moving away from an Oracle connection pool and using the Tomcat connection
I'm recntly doing some tests with the new Tomcat JDBC connection pool ( org.apache.tomcat.jdbc.pool
I am using Tomcat web container. I have an admin console app implemented. When
I am using hibernate JPA on tomcat. I created a connection pool on tomcat

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.