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

AsyncEventBus 会导致内存溢出吗? #2218

Open
GJH0415 opened this issue May 11, 2023 · 2 comments
Open

AsyncEventBus 会导致内存溢出吗? #2218

GJH0415 opened this issue May 11, 2023 · 2 comments

Comments

@GJH0415
Copy link

GJH0415 commented May 11, 2023

elactic job 依赖 elastic-job-lite-spring-2.1.5,dump内存快照的时候发现有大量的AsyncEventBus对象,不知道是不是因为AsyncEventBus导致内存泄露的?

@TeslaCN
Copy link
Member

TeslaCN commented May 11, 2023

Could you check the reference of AsyncEventBus? Or share your heapdump with us.

@GJH0415
Copy link
Author

GJH0415 commented May 12, 2023

char[]实例数量4469099
java.lang.String 实例数量4467019
java.util.Date 实例数量1338419
com.google.common.eventbus.AsyncEventBus$1 实例数量1336332
java.util.concurrent.LinkedBlockingQueue$Node 实例数量1333221

com.dangdang.ddframe.iob.event.type.JobStatusTraceEvent 实例数量801789
com.dangdang.ddframe.job.event.type.JobExecutionEvent 实例数量534543

其中:JobStatusTraceEvent的数量+JobExecutionEvent的数量=AsyncEventBus的数量

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants