[
https://issues.apache.org/jira/browse/TOMEE-4560?focusedWorklogId=998632&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-998632
]
ASF GitHub Bot logged work on TOMEE-4560:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 05/Jan/26 06:02
Start Date: 05/Jan/26 06:02
Worklog Time Spent: 10m
Work Description: kartiksirigeri commented on PR #2408:
URL: https://github.com/apache/tomee/pull/2408#issuecomment-3709048846
> Thanks for the PR. Please note: https://tomee.apache.org/tomee-8.0-eol.html
>
> The branch uses an EOL GitHub Action version. For that reason the build
fails right now.
https://tomee.apache.org/tomee-8.0-eol.html says 'bugs affecting only the
tomee-8.x branch will not be addressed' , I am not sure if the issue is only
for 8.x as I have been using only this version
Issue Time Tracking
-------------------
Worklog Id: (was: 998632)
Time Spent: 40m (was: 0.5h)
> Memory leak for EJB3 stateful bean
> ----------------------------------
>
> Key: TOMEE-4560
> URL: https://issues.apache.org/jira/browse/TOMEE-4560
> Project: TomEE
> Issue Type: Bug
> Components: TomEE Core Server
> Affects Versions: 8.0.16
> Reporter: Kartik Sirigeri
> Priority: Major
> Attachments: EjbProxyHandler_EJB2.png, EjbProxyHandler_EJB3.png,
> test_project.zip
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> The bean references are not getting removed from
> ProxyRegistry.liveHandleRegistry map when the the method annotated wtih
> '@Remove' annotation for EJB3 stateful bean is invoked. While the call for
> remove method on EJB2 stateful beans removes the entry from
> ProxyRegistry.liveHandleRegistry map immmediately. It seems the
> EjbObjectProxyHandler._invoke method checks for EJB_OBJECT, EJB_LOCAL type
> along with the operation type, this check fails for EJB3 beans and the beans
> are not removed from the ProxyRegistry.liveHandleRegistry map unless any
> business methods are invoked which would invaldiate the map due to
> InvalidateReferenceException. This causes a memory leak unless any business
> method is called after the invocation of @Remove method in EJB3.
>
> Snapshot of the debug flow attached along with the test code
--
This message was sent by Atlassian Jira
(v8.20.10#820010)