Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy I am getting memory leak exception after c3p0 configuration?
    primarykey
    data
    text
    <p>I am using java , GWT, and hibernate with mysql. To avoide too many connection exception I am configuring the c3p0 in my application, but after configuration when I deploy my application to tomcat and run application so after 5 to 10 request application gets crashed and in tomcat logs I am getting following exception repeatedly:</p> <pre><code>org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks SEVERE: The web application [/war] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@1d2aa39]) and a value of type [com.google.inject.servlet.ServletDefinition$2] (value [com.google.inject.servlet.ServletDefinition$2@ef3675]) but failed to remove it when the web application was stopped.Threads are going to be renewed over time to try and avoid a probable memory leak. </code></pre> <p>My c3p0 configuration is as follows:</p> <pre><code>&lt;property name="connection.provider_class"&gt; org.hibernate.connection.C3P0ConnectionProvider&lt;/property&gt; &lt;property name="hibernate.connection.autoReconnect"&gt;true&lt;/property&gt; &lt;property name="hibernate.c3p0.acquire_increment"&gt;3&lt;/property&gt; &lt;property name="hibernate.c3p0.idle_test_period"&gt;5&lt;/property&gt; &lt;property name="hibernate.c3p0.max_size"&gt;50&lt;/property&gt; &lt;property name="hibernate.c3p0.max_statements"&gt;0&lt;/property&gt; &lt;property name="hibernate.c3p0.min_size"&gt;0&lt;/property&gt; &lt;property name="hibernate.c3p0.timeout"&gt;5&lt;/property&gt; &lt;property name="hibernate.c3p0.idleConnectionTestPeriod"&gt;5&lt;/property&gt; </code></pre> <p>help me if anyone knows the solution... thanks in advance..</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload