Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 87f6a46

Browse files
committedMay 22, 2019
fix retry get client proxy lead to OOM
1 parent 956d28b commit 87f6a46

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ReferenceConfig.java

+1
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ private T createProxy(Map<String, String> map) {
356356
logger.info("Using injvm service " + interfaceClass.getName());
357357
}
358358
} else {
359+
urls.clear(); // reference retry init will add url to urls, lead to OOM
359360
if (url != null && url.length() > 0) { // user specified URL, could be peer-to-peer address, or register center's address.
360361
String[] us = SEMICOLON_SPLIT_PATTERN.split(url);
361362
if (us != null && us.length > 0) {

0 commit comments

Comments
 (0)
Please sign in to comment.