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

  • Home
  • SEARCH
  • 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 8334173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T03:15:33+00:00 2026-06-09T03:15:33+00:00

I am using Spring 3.0.5.RELEASE and Postgres 9.1. I am limiting a maximum number

  • 0

I am using Spring 3.0.5.RELEASE and Postgres 9.1.
I am limiting a maximum number of connections in 17:

<bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource">
  <property name="driverClass" value="${database.driver}" />
  <property name="jdbcUrl" value="${database.url}" />
  <property name="user" value="${database.username}" />
  <property name="password" value="${database.password}" />
  <property name="initialPoolSize" value="3" />
  <property name="minPoolSize" value="1" />
  <property name="maxPoolSize" value="17" />
</bean>

When my application gets to occupy all the connections, it just hangs, and doesn’t cancel or accept more transactions. All processes in Postgres are in state “idle in transaction”.

Thank you!

  • 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-09T03:15:35+00:00Added an answer on June 9, 2026 at 3:15 am

    The symptoms you describe are consistent with your application’s leaking Connections. That is, your application is checking out Connections, but failing to check them back in [that is, failing to call close()].

    Are you consistently using the robust resource cleanup idiom? See e.g

    http://old.nabble.com/Re:-My-connections-are-all-idle…-p27691635.html

    As suggested in that link, try temporarily setting an unreturnedConnectionTimeout and using
    debugUnreturnedConnectionStackTraces to track down the leak. See

    http://www.mchange.com/projects/c3p0/index.html#unreturnedConnectionTimeout

    http://www.mchange.com/projects/c3p0/index.html#debugUnreturnedConnectionStackTraces

    I hope this helps!

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

Sidebar

Related Questions

Using Spring 3.0.2.RELEASE. I'm having 2 Controllers in package com.myCompany. The Controllers are activated
Using: Spring 3.1.0.RELEASE, Spring Data MongoDB 1.0.0.RELEASE I have a document class defined like
Trying to auto-wire properties to a bean in Spring 3.0.5.RELEASE , I'm using: config.properties
i am using spring 3.1.0.RELEASE , and my servlet container is tomcat 7 and
I'm using spring ws 2.0.2.RELEASE I have a web service that creates a sales
I'm doing a Web application using Spring 3.1.0.RELEASE, JSF 2.x, JPA 2 with Hibernate
I'm doing a Web application using Spring 3.1.0.RELEASE, JSF 2.x, JPA 2 with Hibernate
I have configured in following way that spring MVC app using Spring 3.1.1.RELEASE web.xml
I'm developing web application supported by Spring Integration. I'm using 1.0.4.RELEASE. I use CGLib
question is from subject. I'm using JavaMailSenderImpl from spring 3.0.3.RELEASE and velocity 1.6.4 for

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.