Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0053918 | Openbravo ERP | A. Platform | public | 2023-11-13 13:22 | 2023-11-27 08:13 |
Reporter | alostale | ||||
Assigned To | alostale | ||||
Priority | normal | Severity | major | Reproducibility | sometimes |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | PR24Q1 | |||
Merge Request Status | approved | ||||
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 | 0053918: BO utilization causes excessive JVM metaspace usage | ||||
Description | When backoffice application is intensively used, the JVM metaspace consumption considerably increases. Javascript code is compiled in the JVM for OBBindings (ie. for filter selectors), causing this pressure in the metaspace. Ie.: this command shows the number of currently loaded scripts, which can be huege: jcmd Bootstrap VM.metaspace show-classes show-loaders | grep org.mozilla.javascript.gen | wc -l | ||||
Steps To Reproduce | #1. In a real customer In real customers with BO intensive use, monitory metaspace: jcmd Bootstrap VM.metaspace Detected in some live customer having 30GB allocated for heap space, meta to be >5GB. #2. Emulate it by executing this code try { System.out.println("start.,,"); long t = System.currentTimeMillis(); for (int i = 0; i < 10000; i++) { ParameterUtils.getJSExpressionResult(Map.of("inpTableId", "333") // , null, "OB.getFilterExpression(\"org.openbravo.erpCommon.info.BusinessPartnerSelectorFilterExpression\")"); } System.out.println("done " + (System.currentTimeMillis() - t)); } catch (ScriptException e) { // TODO Auto-generated catch block e.printStackTrace(); } | ||||
Proposed Solution | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2023-11-13 13:22 | alostale | New Issue | |||
2023-11-13 13:22 | alostale | Assigned To | => Triage Platform Base | ||
2023-11-13 13:22 | alostale | OBNetwork customer | => No | ||
2023-11-13 13:22 | alostale | Modules | => Core | ||
2023-11-13 13:22 | alostale | Triggers an Emergency Pack | => No | ||
2023-11-13 13:27 | alostale | Description Updated | bug_revision_view_page.php?rev_id=27111#r27111 | ||
2023-11-13 13:27 | alostale | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=27113#r27113 | ||
2023-11-13 13:50 | alostale | Description Updated | bug_revision_view_page.php?rev_id=27114#r27114 | ||
2023-11-13 13:50 | alostale | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=27115#r27115 | ||
2023-11-13 14:06 | hgbot | Merge Request Status | => open | ||
2023-11-13 14:06 | hgbot | Note Added: 0157102 | |||
2023-11-13 14:26 | shuehner | Issue Monitored: shuehner | |||
2023-11-14 07:39 | alostale | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=27120#r27120 | ||
2023-11-14 07:39 | alostale | Assigned To | Triage Platform Base => alostale | ||
2023-11-26 23:06 | hgbot | Merge Request Status | open => approved | ||
2023-11-27 08:13 | hgbot | Resolution | open => fixed | ||
2023-11-27 08:13 | hgbot | Status | new => closed | ||
2023-11-27 08:13 | hgbot | Note Added: 0157651 | |||
2023-11-27 08:13 | hgbot | Fixed in Version | => PR24Q1 | ||
2023-11-27 08:13 | hgbot | Note Added: 0157652 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|