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

Memory leak of CompositeTimmer #111

Closed
hoswey opened this issue Nov 15, 2017 · 3 comments
Closed

Memory leak of CompositeTimmer #111

hoswey opened this issue Nov 15, 2017 · 3 comments

Comments

@hoswey
Copy link

hoswey commented Nov 15, 2017

Version

   <dependency>
      <groupId>org.springframework.cloud</groupId>
      <artifactId>spring-cloud-starter-gateway</artifactId>
      <version>2.0.0.M3</version>
    </dependency>

After running about some hour, the jvm continue full gc, heap dump the memory with MAT.
The MAT show the suspect with

One instance of "io.micrometer.core.instrument.composite.CompositeMeterRegistry" loaded by "sun.misc.Launcher$AppClassLoader @ 0xe0021960" occupies 142,030,824 (37.48%) bytes. The memory is accumulated in one instance of "io.micrometer.core.instrument.composite.CompositeMeterRegistry" loaded by "sun.misc.Launcher$AppClassLoader @ 0xe0021960".

Keywords
io.micrometer.core.instrument.composite.CompositeMeterRegistry
sun.misc.Launcher$AppClassLoader @ 0xe0021960

Leak Suspect

JVM flags

 -Xms1024m -Xmx1024m -Xmn512m -Xss256k -XX:-OmitStackTraceInFastThrow -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:LargePageSizeInBytes=128m -XX:+UseFastAccessorMethods -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=70
@spencergibb
Copy link
Member

Sounds like an issue for micrometer, not gateway

@hoswey
Copy link
Author

hoswey commented Nov 15, 2017

😢 I am trying to disable this filter, any workaround?

@spencergibb
Copy link
Member

Which filter? The boot filter, question for spring boot.

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