You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2007/07/11 12:30:27 UTC

DO NOT REPLY [Bug 42856] New: - Memory leak using my own factory in a dbcp resource

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42856>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42856

           Summary: Memory leak using my own factory in a dbcp resource
           Product: Tomcat 6
           Version: unspecified
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: drodriguez@altiria.com


Commons-pool version 1.3, embbeded in Tocamt, has a memory leak
(https://issues.apache.org/jira/browse/POOL-97?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12484747)

Trying to avoid this memory leak, I deployed older versions of commons-pool and
commons-dbcp in lib directory, and I defined my own factory attribute in a dbcp
resource in context.xml.

<Resource name="jdbc/ApplicationPool" auth="Container"
	  factory="org.apache.commons.dbcp.BasicDataSourceFactory"
          type="javax.sql.DataSource" driverClassName="org.postgresql.Driver"
          url="jdbc:postgresql://DatabaseHost/DatabaseFile"
          username="DatabaseUser" password="DatabasePassword" maxActive="20"
          maxIdle="10" maxWait="-1"/>

Doing some memory profiling, Tomcat still isn't releasing de pool properly. The
offending class is "org.apache.tomcat.util.modeler.BaseModelMBean". It is
retaining the pool in its "resource" attribute.

You can follow the discussion thread about this issue in tomcat-users list

http://www.mail-archive.com/users@tomcat.apache.org/msg30838.html

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 42856] - Memory leak using my own factory in a dbcp resource

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42856>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42856


drodriguez@altiria.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |drodriguez@altiria.com




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org