[jboss-jira] [JBoss JIRA] (WFLY-11970) SFSB memory leak due to Date() usage
Dennis Reed (Jira)
issues at jboss.org
Wed Apr 10 17:38:00 EDT 2019
[ https://issues.jboss.org/browse/WFLY-11970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dennis Reed updated WFLY-11970:
-------------------------------
Steps to Reproduce:
Access an SFSB.
Change the system time backwards before the SFSB expiration time elapses.
> SFSB memory leak due to Date() usage
> ------------------------------------
>
> Key: WFLY-11970
> URL: https://issues.jboss.org/browse/WFLY-11970
> Project: WildFly
> Issue Type: Bug
> Components: EJB
> Affects Versions: 11.0.0.Final
> Reporter: Dennis Reed
> Assignee: Paul Ferraro
> Priority: Critical
>
> SFSB tracks expiration with "new Date().getTime()" and "System.currentTimeMillis()".
> But the expiration threads are scheduled (inside JDK classes) with System.nanoTime().
> If the expiration task runs before the bean is considered expired, the expiration check fails and the bean is never expired.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list