Skip to content

java client auto updating value cause memory leak #3068

@libinglong

Description

@libinglong
  • I have searched the issues of this repository and believe that this is not a duplicate.
  • I have checked the FAQ of this repository and believe that this is not a duplicate.

Describe the bug
A clear and concise description of what the bug is.

the class ApolloProcessor is used to auto update the config value.
so we must store the bean so that we can update.
BUT,when we use prototype bean to do something,it becomes dangerous.
After creating the bean with beanfactory or applicationContext and doing something,
the bean should be recyclable.BUT now it is store in somewhere(the queue in thread pool or springValueRegistry) with strong refrence.

To Reproduce
Steps to reproduce the behavior:
1. using prototype bean to do something repeatedly

Expected behavior
A clear and concise description of what you expected to happen.

memory leak

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions