Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020533Openbravo ERPA. Platformpublic2012-04-13 09:292015-02-12 14:42
alostale 
alostale 
urgentmajoralways
closedout of date 
5
 
 
Core
No
0020533: SessionInfo PreparedStatement is not closed
When there is at least one table fully audited, on each request a temporary table (ad_context_info) is populated with context information. The PreparedStatement used for this population is never closed.

This causes a memory leak in JVM as well as DB not releasing resources (open cursors in Oracle) making the application to degrade over time.

See attached a screenshot of memory consumption just after GC having 6 concurrent sessions during ~10min with a session ping of 500ms to simulate long usage. Second screenshot is taken in the same conditions after applying the fix. Both are taken in an instance using Oracle.
-In a professional instance, set at last one table to be fully audited
-Follow steps defined in issue 0020146
No tags attached.
blocks defect 00202613.0MP11 closed alostale SessionInfo PreparedStatement is not closed 
Issue History
2012-05-17 09:20alostaleTypedefect => backport
2012-05-17 09:20alostalefix_in_branch => 2.50
2012-05-17 09:21alostaleFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/5dd00d37616387fda77cdc81862a423de3d8bce3 [^] =>
2012-05-17 09:21alostaleTarget Version3.0MP11 =>
2012-05-17 11:28alostalePriorityimmediate => urgent
2012-05-24 13:47egoitzIssue Monitored: egoitz
2012-12-12 09:22ioritzCiaTriggers an Emergency Pack => No
2012-12-12 09:22ioritzCiaSeveritycritical => major
2015-02-12 14:42plujanNote Added: 0074427
2015-02-12 14:42plujanStatusscheduled => closed
2015-02-12 14:42plujanResolutionopen => out of date

Notes
(0074427)
plujan   
2015-02-12 14:42   
Backports to 2.50 branch are no longer supported