[JBoss JIRA] (WFLY-12643) Memory leak in FlashScope - expired elements are not cleared
by Bartosz Spyrko (Jira)
[ https://issues.jboss.org/browse/WFLY-12643?page=com.atlassian.jira.plugin... ]
Bartosz Spyrko updated WFLY-12643:
----------------------------------
Git Pull Request: https://github.com/jboss/mojarra/pull/45, https://github.com/eclipse-ee4j/mojarra/pull/4633/commits (was: https://github.com/jboss/mojarra/pull/42, https://github.com/eclipse-ee4j/mojarra/pull/4633/commits)
> Memory leak in FlashScope - expired elements are not cleared
> ------------------------------------------------------------
>
> Key: WFLY-12643
> URL: https://issues.jboss.org/browse/WFLY-12643
> Project: WildFly
> Issue Type: Bug
> Components: JSF
> Environment: * JBoss EAP 7.2.3 (also JBoss EAP 7.1.6 that is the latest version in 7.1.x is affected by this issue)
> Reporter: Bartosz Spyrko
> Assignee: Bartosz Spyrko
> Priority: Critical
>
> Objects in FlashScope is not cleared and keep accumulating even if POST-REDIRECT-BACK is completed.
> If we put a huge object to FlashScope continuously as the following code, Java heap space will be exhausted soon.
> {code:java}
> @Model
> public class Action {
> private static final int oneHundredMB = 1024 * 1024 * 100;
> public String next() {
> Flash flash = FacesContext.getCurrentInstance().getExternalContext().getFlash();
> flash.putNow("huge", new byte[oneHundredMB]);
> return "index.xhtml?faces-redirect=true";
> }
> }
> {code}
> When OutOfMemoryError is happened, flashInnerMap field in com.sun.faces.context.flash.ELFlash is bloated.
> {noformat}
> Class Name | Ref. Objects | Shallow Heap | Ref. Shallow Heap | Retained Heap
> -----------------------------------------------------------------------------------------------------------------------------------------
> java.lang.Thread @ 0xeea24380 default task-1 Thread | 1 | 120 | 64 | 20,800
> '- <Java Local> com.sun.faces.context.flash.ELFlash @ 0xee9e4608 | 1 | 40 | 64 | 64
> '- flashInnerMap java.util.concurrent.ConcurrentHashMap @ 0xee9e4630| 1 | 64 | 64 | 314,574,048
> -----------------------------------------------------------------------------------------------------------------------------------------
> {noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 1 month
[JBoss JIRA] (WFLY-12643) Memory leak in FlashScope - expired elements are not cleared
by Bartosz Spyrko (Jira)
[ https://issues.jboss.org/browse/WFLY-12643?page=com.atlassian.jira.plugin... ]
Bartosz Spyrko moved JBEAP-17741 to WFLY-12643:
-----------------------------------------------
Project: WildFly (was: JBoss Enterprise Application Platform)
Key: WFLY-12643 (was: JBEAP-17741)
Workflow: GIT Pull Request workflow (was: CDW with loose statuses v1)
Component/s: JSF
(was: JSF)
Affects Version/s: (was: 7.2.3.GA)
QE Test Coverage: (was: +)
Fix Version/s: (was: 7.2.5.GA)
> Memory leak in FlashScope - expired elements are not cleared
> ------------------------------------------------------------
>
> Key: WFLY-12643
> URL: https://issues.jboss.org/browse/WFLY-12643
> Project: WildFly
> Issue Type: Bug
> Components: JSF
> Environment: * JBoss EAP 7.2.3 (also JBoss EAP 7.1.6 that is the latest version in 7.1.x is affected by this issue)
> Reporter: Bartosz Spyrko
> Assignee: Bartosz Spyrko
> Priority: Critical
>
> Objects in FlashScope is not cleared and keep accumulating even if POST-REDIRECT-BACK is completed.
> If we put a huge object to FlashScope continuously as the following code, Java heap space will be exhausted soon.
> {code:java}
> @Model
> public class Action {
> private static final int oneHundredMB = 1024 * 1024 * 100;
> public String next() {
> Flash flash = FacesContext.getCurrentInstance().getExternalContext().getFlash();
> flash.putNow("huge", new byte[oneHundredMB]);
> return "index.xhtml?faces-redirect=true";
> }
> }
> {code}
> When OutOfMemoryError is happened, flashInnerMap field in com.sun.faces.context.flash.ELFlash is bloated.
> {noformat}
> Class Name | Ref. Objects | Shallow Heap | Ref. Shallow Heap | Retained Heap
> -----------------------------------------------------------------------------------------------------------------------------------------
> java.lang.Thread @ 0xeea24380 default task-1 Thread | 1 | 120 | 64 | 20,800
> '- <Java Local> com.sun.faces.context.flash.ELFlash @ 0xee9e4608 | 1 | 40 | 64 | 64
> '- flashInnerMap java.util.concurrent.ConcurrentHashMap @ 0xee9e4630| 1 | 64 | 64 | 314,574,048
> -----------------------------------------------------------------------------------------------------------------------------------------
> {noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 1 month
[JBoss JIRA] (DROOLS-4602) kie-maven-plugin fails with nested kbases and dependency versions declared in bom
by Tibor Zimanyi (Jira)
[ https://issues.jboss.org/browse/DROOLS-4602?page=com.atlassian.jira.plugi... ]
Tibor Zimanyi updated DROOLS-4602:
----------------------------------
Story Points: 3
Sprint: 2019 Week 41-43 (from Okt 7)
> kie-maven-plugin fails with nested kbases and dependency versions declared in bom
> ---------------------------------------------------------------------------------
>
> Key: DROOLS-4602
> URL: https://issues.jboss.org/browse/DROOLS-4602
> Project: Drools
> Issue Type: Bug
> Components: tools
> Affects Versions: 7.27.0.Final
> Reporter: Martin Weiler
> Assignee: Tibor Zimanyi
> Priority: Major
> Labels: support
> Attachments: hierarchical-kbase-bom.zip
>
>
> When we build 2 kjars and one kbase "includes" another, kie-maven-plugin fails to resolve the sub kbase if the dependency version is declared in a common bom:
> {noformat}
> Running test with rules version 7.27.0.Final and -DgenerateModel=NO
> 13:01:05,903 [ERROR] Unable to build KieBase, could not find include: subkbase
> 13:01:05,908 [ERROR] Failed to execute goal org.kie:kie-maven-plugin:7.27.0.Final:build (default-build) on project kbase-parent: Execution default-build of goal org.kie:kie-maven-plugin:7.27.0.Final:build failed: Unable to get KieModule, Errors Existed: Error Messages:
> 13:01:05,910 [ERROR] Message [id=1, kieBase=parentkbase, level=ERROR, path=src/main/resources/META-INF/kmodule.xml, line=0, column=0
> 13:01:05,911 [ERROR] text=Unable to build KieBase, could not find include: subkbase]
> {noformat}
> Note that such a build is successful with RHDM 7.3.1 if the executable model is *not* used (see reproducer).
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 1 month