Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ScheduledDtpExecutor 增强 execute方法,导致功能 map 清理不掉,有内存溢出风险 #493

Closed
yanhom1314 opened this issue Oct 22, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@yanhom1314
Copy link
Collaborator

yanhom1314 commented Oct 22, 2024

首先感谢您使用 DynamicTp,如果使用过程中有任何问题,请按照下述模板反馈问题,请使用 Markdown 语法

版本信息

  • DynamicTp版本:1.1.9

问题描述

ScheduledThreadPoolExecutorProxy 的 schedule、scheduleAtFixedRate 等方法通过 AwareManager.execute 做增强,会将DtpRunnable 存储在一些功能 map 中,ScheduledThreadPoolExecutor 任务提交后内部会包装成 ScheduledFutureTask,导致在 beforeExecute、afterExecute 阶段从 map 中删不掉,有内存溢出风险。

@yanhom1314 yanhom1314 added the bug Something isn't working label Oct 22, 2024
@yanhom1314 yanhom1314 changed the title ScheduledDtpExecutor增强execute方法,导致DtpRunnable在beforeExecute、afterExecute时获取不到,map清理不掉,有内存溢出风险 ScheduledDtpExecutor 增强 execute方法,导致功能 map 清理不掉,有内存溢出风险 Oct 22, 2024
yanhom1314 added a commit that referenced this issue Oct 22, 2024
[ISSUE #493] remove AwareManager.execute for schedule executor
@yanhom1314 yanhom1314 self-assigned this Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant