You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "vio-lin (via GitHub)" <gi...@apache.org> on 2025/09/05 01:51:10 UTC
[I] [Bug] MemoryLeak Issue In DefaultFuture [dubbo]
vio-lin opened a new issue, #15671:
URL: https://github.com/apache/dubbo/issues/15671
### Pre-check
- [x] I am sure that all the content I provide is in English.
### Search before asking
- [x] I had searched in the [issues](https://github.com/apache/dubbo/issues?q=is%3Aissue) and found no similar issues.
### Apache Dubbo Component
Java SDK (apache/dubbo)
### Dubbo Version
when i set threadPool with my custom threadPool .
it may be executor reject exception when submit processTask in DefaultFuture.
The map of Futures cache may can not be clear for long time.
Is it necessary to try this kind of exception.
```java
private static final Map<Long, DefaultFuture> FUTURES = new ConcurrentHashMap<>();
@Override
public void run(Timeout timeout) {
DefaultFuture future = DefaultFuture.getFuture(requestID);
if (future == null || future.isDone()) {
return;
}
ExecutorService executor = future.getExecutor();
if (executor != null && !executor.isShutdown()) {
executor.execute(() -> notifyTimeout(future));
} else {
notifyTimeout(future);
}
}
```
### Steps to reproduce this issue
1. set custom thread pool in consumer side
2. set core thread and max thread and use limited queue
3. when process task can not be processed the future remain in the memory
### What you expected to happen
the dump of application, I use MAT to search futureMap. It keeps a
future which associate with request send 3 hours ago.
### Anything else
only when certain situation happened.
### Are you willing to submit a pull request to fix on your own?
- [x] Yes I am willing to submit a pull request on my own!
### Code of Conduct
- [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
Re: [I] [Bug] MemoryLeak Issue In DefaultFuture [dubbo]
Posted by "wcy666103 (via GitHub)" <gi...@apache.org>.
wcy666103 commented on issue #15671:
URL: https://github.com/apache/dubbo/issues/15671#issuecomment-3299431315
> Hi, I’m a student and this would be my first open source contribution. Could you please assign this issue to me if it’s still available? Thanks!
Just go ahead.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
Re: [I] [Bug] MemoryLeak Issue In DefaultFuture [dubbo]
Posted by "qxggg (via GitHub)" <gi...@apache.org>.
qxggg commented on issue #15671:
URL: https://github.com/apache/dubbo/issues/15671#issuecomment-3299501488
> > Hi, I’m a student and this would be my first open source contribution. Could you please assign this issue to me if it’s still available? Thanks!
>
> Just go ahead.
Thanks for assigning this to me! This is my first time contributing to open source, so I may need a bit more time to get familiar with the project. I really appreciate your patience.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
Re: [I] [Bug] MemoryLeak Issue In DefaultFuture [dubbo]
Posted by "zrlw (via GitHub)" <gi...@apache.org>.
zrlw closed issue #15671: [Bug] MemoryLeak Issue In DefaultFuture
URL: https://github.com/apache/dubbo/issues/15671
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
Re: [I] [Bug] MemoryLeak Issue In DefaultFuture [dubbo]
Posted by "qxggg (via GitHub)" <gi...@apache.org>.
qxggg commented on issue #15671:
URL: https://github.com/apache/dubbo/issues/15671#issuecomment-3299336510
Hi, I’m a student and this would be my first open source contribution.
Could you please assign this issue to me if it’s still available?
Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org