Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0034821 | Openbravo ERP | A. Platform | public | 2016-12-23 17:44 | 2019-03-28 14:56 | |||||||
Reporter | shuehner | |||||||||||
Assigned To | jarmendariz | |||||||||||
Priority | high | Severity | minor | Reproducibility | have not tried | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | 3.0PR19Q2 | Fixed in Version | 3.0PR19Q2 | |||||||||
Merge Request Status | ||||||||||||
Review Assigned To | alostale | |||||||||||
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 | 0034821: Very high memory usage for running junit tests from pi in several jobs having many modules | |||||||||||
Description | Recently several jobs in ci running the pi junit tests started failing with OOM errors. i.e. but-qa-multiserver but also mod-functional-basic However no error has been seen yet in normal pi or retail. All those junit tests run since a long time (several years) with ANT_OPTS setting memory to 1280MB (long time ago we increased that from 1024MB) The problem can be easily reproduce manually run by all tests i.e. in latest snapshot-but-qa-multiserver Live view with i.e. visualvm shows that maybe in middle of time taken very high GC cpu activity is seen + nearly all heap is full. Taking heap-dump at that moment show the probably culprit clearly: Class Name | Shallow Heap | Retained Heap | Percentage -------------------------------------------------------------------------------------- java.lang.Thread @ 0xb0014e18 main Thread| 104 | 567,198,520 | 54.67% -------------------------------------------------------------------------------------------------------------------------- org.jboss.arquillian.container.impl.context.DeploymentContextImpl @ 0xc6fb6ca0| 24 | 553,691,616 | 53.37% -------------------------------------------------------------------------------------------------------------------------- java.util.concurrent.ConcurrentHashMap @ 0xc6fb6cb8| 48 | 553,691,592 | 53.37% ----------------------------------------------------------------------------------------------- So some part using weld via arquillian takes up >50% of the available heap which seems excessive. Dominator view of retained memory points to that concurrent HashMap called 'stores'. Unclear what exactly is contained in there. Note: The snapshot used has a change to beans.xml weld-config to remove the exclude for org.openbravo.erpCommon.utility.* That maybe could be a trigger for higher memory use (just an idea). That would not explain the issue in the mod-functional-basic though. | |||||||||||
Steps To Reproduce | clone Snapshot_BUT_QA_MULTISERVER with CodeSnapshot tool ant install.source ant run.all.test - notice it failing after a longer runtime | |||||||||||
Proposed Solution | ||||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=10218&type=bug ![]() https://issues.openbravo.com/file_download.php?file_id=10219&type=bug ![]() https://issues.openbravo.com/file_download.php?file_id=10220&type=bug | |||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2016-12-23 17:44 | shuehner | New Issue | ||||||||||
2016-12-23 17:44 | shuehner | Assigned To | => platform | |||||||||
2016-12-23 17:44 | shuehner | OBNetwork customer | => No | |||||||||
2016-12-23 17:44 | shuehner | Modules | => Core | |||||||||
2016-12-23 17:44 | shuehner | Triggers an Emergency Pack | => No | |||||||||
2016-12-23 17:44 | shuehner | File Added: Selection_001.png | ||||||||||
2016-12-23 17:44 | shuehner | File Added: Selection_002.png | ||||||||||
2016-12-23 17:46 | shuehner | File Added: Selection_003.png | ||||||||||
2016-12-23 17:46 | shuehner | Note Added: 0092984 | ||||||||||
2016-12-23 19:00 | shuehner | Note Added: 0092986 | ||||||||||
2017-01-09 10:13 | alostale | Priority | normal => high | |||||||||
2017-01-09 10:13 | alostale | Status | new => acknowledged | |||||||||
2019-01-29 13:58 | alostale | Assigned To | platform => jarmendariz | |||||||||
2019-01-29 13:58 | alostale | Status | acknowledged => scheduled | |||||||||
2019-01-29 13:58 | alostale | Target Version | => 3.0PR19Q2 | |||||||||
2019-02-11 17:15 | hgbot | Checkin | ||||||||||
2019-02-11 17:15 | hgbot | Note Added: 0109678 | ||||||||||
2019-02-11 17:15 | hgbot | Status | scheduled => resolved | |||||||||
2019-02-11 17:15 | hgbot | Resolution | open => fixed | |||||||||
2019-02-11 17:15 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/9275bf6ed1ff3b58e8af24a0e8a2243fc1e75bb0 [^] | |||||||||
2019-02-12 12:45 | hgbot | Checkin | ||||||||||
2019-02-12 12:45 | hgbot | Note Added: 0109707 | ||||||||||
2019-02-15 09:54 | alostale | Review Assigned To | => alostale | |||||||||
2019-02-15 09:54 | alostale | Note Added: 0109852 | ||||||||||
2019-02-15 09:54 | alostale | Status | resolved => closed | |||||||||
2019-02-15 09:54 | alostale | Fixed in Version | => 3.0PR19Q2 | |||||||||
2019-02-28 19:07 | jarmendariz | Issue cloned | 0040301 | |||||||||
2019-02-28 19:07 | jarmendariz | Relationship added | blocks 0040301 | |||||||||
2019-03-28 14:56 | hudsonbot | Checkin | ||||||||||
2019-03-28 14:56 | hudsonbot | Note Added: 0110806 | ||||||||||
2019-03-28 14:56 | hudsonbot | Checkin | ||||||||||
2019-03-28 14:56 | hudsonbot | Note Added: 0110807 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|