Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0019810 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | major | always | 2012-02-20 10:39 | 2012-03-02 15:38 | |||
Reporter | alostale | View Status | public | |||||
Assigned To | alostale | |||||||
Priority | urgent | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | c3105cd9c9c4 | ||||
Projection | none | ETA | none | Target Version | 3.0MP9 | |||
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 | 0019810: ViewComponent memory leak | |||||||
Description | Whenever a window in opened and the request reaches the backend (it is not cached in client), a new instance of ViewComponent class is created and it is never cleaned up from memory. This causes heap memory usage to rapidly increase as ViewComponent instances can be heavy (up to 4MB). Attached you can see graphs of part of a heap dump suffering this issue. | |||||||
Steps To Reproduce | -Execute the attached script that does 25 calls to backed for new windows. -Check heap increases with as many ViewComponent instances as opened windows. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ![]() ![]() ![]() | |||||||
![]() |
|
![]() |
|
(0045258) hgbot (developer) 2012-02-20 10:42 |
Repository: erp/devel/pi Changeset: c3105cd9c9c4ebd834baceababedddf88de4fdb2 Author: Asier Lostalé <asier.lostale <at> openbravo.com> Date: Mon Feb 20 10:42:20 2012 +0100 URL: http://code.openbravo.com/erp/devel/pi/rev/c3105cd9c9c4ebd834baceababedddf88de4fdb2 [^] fixed bug 19810: ViewComponent memory leak --- M modules/org.openbravo.client.application/src/org/openbravo/client/application/ViewComponent.java --- |
(0045259) alostale (viewer) 2012-02-20 10:44 |
The fix for this issue makes changes scope of ViewComponent from default to RequestScope. It is riskless as ViewComponent instances are never reused, in this way Weld is aware the instance is not needed to be kept in memory. Test plan: -Execute the test defined in the steps to reproduce and check there are no ViewComponent instances within memory. |
(0045890) hudsonbot (viewer) 2012-03-02 15:38 |
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/544d64e0c159 [^] Maturity status: Test |
![]() |
|||
Date Modified | Username | Field | Change |
2012-02-20 10:39 | alostale | New Issue | |
2012-02-20 10:39 | alostale | Assigned To | => alostale |
2012-02-20 10:39 | alostale | Modules | => Core |
2012-02-20 10:39 | alostale | OBNetwork customer | => No |
2012-02-20 10:39 | alostale | File Added: Selection_031.png | |
2012-02-20 10:40 | alostale | File Added: Selection_032.png | |
2012-02-20 10:40 | alostale | File Added: test.html | |
2012-02-20 10:42 | hgbot | Checkin | |
2012-02-20 10:42 | hgbot | Note Added: 0045258 | |
2012-02-20 10:42 | hgbot | Status | new => resolved |
2012-02-20 10:42 | hgbot | Resolution | open => fixed |
2012-02-20 10:42 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/c3105cd9c9c4ebd834baceababedddf88de4fdb2 [^] |
2012-02-20 10:44 | alostale | Note Added: 0045259 | |
2012-02-21 17:24 | marvintm | Status | resolved => closed |
2012-03-02 15:38 | hudsonbot | Checkin | |
2012-03-02 15:38 | hudsonbot | Note Added: 0045890 |
Copyright © 2000 - 2009 MantisBT Group |