Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0030291
TypeCategorySeverityReproducibilityDate SubmittedLast Update
feature request[Openbravo ERP] A. Platformmajorhave not tried2015-06-30 17:512016-06-17 19:36
ReportermtaalView Statuspublic 
Assigned Toalostale 
PrioritynormalResolutionfixedFixed in Version3.0PR16Q3
StatusclosedFix in branchFixed in SCM revisionec4d1026e335
ProjectionnoneETAnoneTarget Version3.0PR16Q3
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tocaristu
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0030291: Reduce memory footprint of hibernate by re-using internal strings

DescriptionAttached a zip file with patched hibernate version which internalizes strings used to build queries.
The zip file contains the patched hibernate jar, the changed source files and their unchanged counter parts.
Steps To ReproduceUse the patched jar instead of the original jar file.

It shows to use 180+MB less than before.

The patched jar has been tested with the retail test suite, all relevant tests passed.
TagsPerformance
Attached Fileszip file icon hibernate patch reduced memory.zip [^] (3,787,090 bytes) 2015-06-30 17:51

- Relationships Relation Graph ] Dependency Graph ]
related to feature request 0037064 closedcaristu upgrade hibernate to 5.3.2 

-  Notes
(0085690)
hgbot (developer)
2016-04-18 09:18

Repository: erp/devel/pi
Changeset: ec4d1026e33515db5e3010c3c8d85608bf4a3a45
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Mon Apr 18 09:17:10 2016 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/ec4d1026e33515db5e3010c3c8d85608bf4a3a45 [^]

fixed issue 30291: reduced DAL memory footprint

  It has been accomplished by making internal and caching select strings in this
  manner it is possible to make much more intesive reuse of them.

---
A lib/runtime/hibernate3-patched.jar
R lib/runtime/hibernate3.jar
---
(0085691)
alostale (manager)
2016-04-18 09:20

Actual changes in code can be seen here [1].

Having this patch in CR production sever for one week before pushing it, a reduction of about 180 MB in initial old generation used memory has been noticed resulting in less frequent major garbage collections.




[1] https://github.com/alostale/hibernate-orm/commit/612675c92c97bacd61d0c07a0802344eca42f5c0 [^]
(0085906)
caristu (developer)
2016-04-22 15:41

Verified
(0087455)
hudsonbot (developer)
2016-06-17 19:36

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/0dc7be081b1c [^]
Maturity status: Test

- Issue History
Date Modified Username Field Change
2015-06-30 17:51 mtaal New Issue
2015-06-30 17:51 mtaal Assigned To => alostale
2015-06-30 17:51 mtaal File Added: hibernate patch reduced memory.zip
2015-06-30 17:51 mtaal Modules => Core
2015-06-30 17:51 mtaal Triggers an Emergency Pack => No
2015-10-01 07:50 alostale Status new => acknowledged
2015-10-01 07:50 alostale Target Version 3.0PR15Q4 => 3.0PR16Q1
2015-12-21 13:04 alostale Target Version 3.0PR16Q1 =>
2016-02-03 08:22 alostale Status acknowledged => scheduled
2016-04-12 10:16 alostale Target Version => 3.0PR16Q3
2016-04-12 11:23 alostale Tag Attached: Performance
2016-04-18 09:14 alostale Review Assigned To => caristu
2016-04-18 09:18 hgbot Checkin
2016-04-18 09:18 hgbot Note Added: 0085690
2016-04-18 09:18 hgbot Status scheduled => resolved
2016-04-18 09:18 hgbot Resolution open => fixed
2016-04-18 09:18 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/ec4d1026e33515db5e3010c3c8d85608bf4a3a45 [^]
2016-04-18 09:20 alostale Note Added: 0085691
2016-04-22 15:41 caristu Note Added: 0085906
2016-04-22 15:41 caristu Status resolved => closed
2016-04-22 15:41 caristu Fixed in Version => 3.0PR16Q3
2016-06-17 19:36 hudsonbot Checkin
2016-06-17 19:36 hudsonbot Note Added: 0087455
2017-10-13 12:39 alostale Relationship added related to 0037064


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker