Project: 	
  | View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
| ID | ||||||||
| 0020261 | ||||||||
| Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
| defect | [Openbravo ERP] A. Platform | critical | always | 2012-04-13 09:29 | 2012-05-17 09:21 | |||
| Reporter | alostale | View Status | public | |||||
| Assigned To | alostale | |||||||
| Priority | immediate | Resolution | fixed | Fixed in Version | 3.0MP11 | |||
| Status | closed | Fix in branch | pi | Fixed in SCM revision | 5dd00d376163 | |||
| Projection | none | ETA | none | Target Version | 3.0MP11 | |||
| OS | Any | Database | Any | Java version | ||||
| OS Version | Database version | Ant version | ||||||
| Product Version | SCM revision | |||||||
| Merge Request Status | ||||||||
| Review Assigned To | ||||||||
| OBNetwork customer | No | |||||||
| Web browser | ||||||||
| Modules | Core | |||||||
| Support ticket | ||||||||
| Regression level | ||||||||
| Regression date | ||||||||
| Regression introduced in release | ||||||||
| Regression introduced by commit | ||||||||
| Triggers an Emergency Pack | No | |||||||
| Summary | 0020261: SessionInfo PreparedStatement is not closed | |||||||
| Description | 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.  | |||||||
| Steps To Reproduce | -In a professional instance, set at last one table to be fully audited -Follow steps defined in issue 0020146  | |||||||
| Tags | Performance | |||||||
| Attached Files | ||||||||
		  Relationships		[ Relation Graph ] 
		[ Dependency Graph ] 
			 | 
|||||||||||||||
  | 
|||||||||||||||
  		Notes	 | 
|
| 
				(0047557) alostale (viewer) 2012-04-13 10:58  | 
	
		Fix is not risky: it just closes prepared statements in SessionInfo. Test plan: -Check both in PG and ORA: *Follow steps to reproduce and check in Oracle (where it is more noticeable) cursors and memory consumption are not increasing. *Check audit trail still works: do modifications in records of audited tables and check they are audited.  | 
| 
				(0047558) hgbot (developer) 2012-04-13 10:59  | 
	
		Repository: erp/devel/pi Changeset: 5dd00d37616387fda77cdc81862a423de3d8bce3 Author: Asier Lostalé <asier.lostale <at> openbravo.com> Date: Fri Apr 13 10:54:41 2012 +0200 URL: http://code.openbravo.com/erp/devel/pi/rev/5dd00d37616387fda77cdc81862a423de3d8bce3 [^] fixed bug 20261: SessionInfo PreparedStatement is not closed --- M src-core/src/org/openbravo/database/SessionInfo.java ---  | 
| 
				(0047649) hudsonbot (viewer) 2012-04-17 05:32  | 
	
		A changeset related to this issue has been promoted main and to the Central Repository, after passing a series of tests. Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/cedf57621434 [^] Maturity status: Test  | 
| 
				(0048039) AugustoMauch (administrator) 2012-04-26 15:47  | 
	Code reviewed and verified in pi@153cac4dbab2 | 
  Issue History	 | 
|||
| Date Modified | Username | Field | Change | 
| 2012-04-13 09:29 | alostale | New Issue | |
| 2012-04-13 09:29 | alostale | Assigned To | => alostale | 
| 2012-04-13 09:29 | alostale | Modules | => Core | 
| 2012-04-13 09:29 | alostale | OBNetwork customer | => No | 
| 2012-04-13 09:29 | alostale | Relationship added | depends on 0020146 | 
| 2012-04-13 09:29 | alostale | Relationship replaced | related to 0020146 | 
| 2012-04-13 09:30 | alostale | Tag Attached: Performance | |
| 2012-04-13 09:37 | alostale | File Added: audit-ps-not-fixed.png | |
| 2012-04-13 09:37 | alostale | File Added: audit-ps-fixed.png | |
| 2012-04-13 09:40 | alostale | Description Updated | View Revisions | 
| 2012-04-13 09:44 | alostale | Target Version | => 3.0MP11 | 
| 2012-04-13 09:44 | alostale | Description Updated | View Revisions | 
| 2012-04-13 10:58 | alostale | Note Added: 0047557 | |
| 2012-04-13 10:59 | hgbot | Checkin | |
| 2012-04-13 10:59 | hgbot | Note Added: 0047558 | |
| 2012-04-13 10:59 | hgbot | Status | new => resolved | 
| 2012-04-13 10:59 | hgbot | Resolution | open => fixed | 
| 2012-04-13 10:59 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/5dd00d37616387fda77cdc81862a423de3d8bce3 [^] | 
| 2012-04-17 05:32 | hudsonbot | Checkin | |
| 2012-04-17 05:32 | hudsonbot | Note Added: 0047649 | |
| 2012-04-26 15:47 | AugustoMauch | Note Added: 0048039 | |
| 2012-04-26 15:47 | AugustoMauch | Status | resolved => closed | 
| 2012-04-26 15:47 | AugustoMauch | Fixed in Version | => 3.0MP11 | 
| 2012-05-17 09:20 | alostale | Status | closed => new | 
| 2012-05-17 09:20 | alostale | Resolution | fixed => open | 
| 2012-05-17 09:20 | alostale | Fixed in Version | 3.0MP11 => | 
| 2012-05-17 09:20 | alostale | Status | new => scheduled | 
| 2012-05-17 09:20 | alostale | fix_in_branch | => pi | 
| 2012-05-17 09:20 | alostale | Status | scheduled => resolved | 
| 2012-05-17 09:20 | alostale | Fixed in Version | => 3.0MP11 | 
| 2012-05-17 09:20 | alostale | Resolution | open => fixed | 
| 2012-05-17 09:21 | alostale | Status | resolved => closed | 
| Copyright © 2000 - 2009 MantisBT Group |