Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0030181Openbravo ERPA. Platformpublic2015-06-15 14:252022-02-01 08:05
shuehner 
Triage Platform Base 
normalminorhave not tried
acknowledgedopen 
5
 
 
Core
No
0030181: Every Modulescript executes creates own new connectionpool which are never properly closed
EveryModuleScript does creates a entirely new ConnectionPool (via calling getConnectionProvider) which are never closed.

So during exection of i.e. update.database many connection pool equal to number of ModuleScripts are created and never closed

Note: end of java process will close them.

However that behavior does not make any sense and is just wrong.
read src-core/src/org/openbravo/modulescript/ModuleScript.java source or add some debugging to i.e. constructor of ConnectionProviderImpl

One option maybe would be to make
1.) cp variable in ModuleScript static
2.) maybe close that single pool and end of 'execute' of ModuleScriptHandler

That way all would share single pool and close this pool properly.

Note: need to think of side-effects of that static first to check if that is a viable option.
No tags attached.
Issue History
2015-06-15 14:25shuehnerNew Issue
2015-06-15 14:25shuehnerAssigned To => platform
2015-06-15 14:25shuehnerModules => Core
2015-06-15 14:25shuehnerTriggers an Emergency Pack => No
2015-06-16 11:49alostaleStatusnew => acknowledged
2022-02-01 08:05alostaleAssigned Toplatform => Triage Platform Base

There are no notes attached to this issue.