You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Jacques Le Roux (JIRA)" <ji...@apache.org> on 2016/06/14 12:28:01 UTC

[jira] [Assigned] (OFBIZ-7344) db connections remain open and unused on startup

     [ https://issues.apache.org/jira/browse/OFBIZ-7344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux reassigned OFBIZ-7344:
--------------------------------------

    Assignee: Jacques Le Roux

> db connections remain open and unused on startup
> ------------------------------------------------
>
>                 Key: OFBIZ-7344
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-7344
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ALL COMPONENTS
>    Affects Versions: Trunk
>            Reporter: Gareth Carter
>            Assignee: Jacques Le Roux
>            Priority: Minor
>         Attachments: DatabaseUtil.patch
>
>
> When ofbiz starts and checks the database, it will leave open connections and will not get reused.
> If you run Check/Update database from webtools, you can see a new connection is created for your selected group
> As far as I can tell, the problem lies in DatabaseUtil.getDatabaseMetaData. If the parameter connection is null, a new connection object is created but not closed (like any resource should be!)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)