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

Possible memory leak #36

Open
ralf0131 opened this issue May 7, 2019 · 0 comments
Open

Possible memory leak #36

ralf0131 opened this issue May 7, 2019 · 0 comments
Assignees

Comments

@ralf0131
Copy link
Collaborator

ralf0131 commented May 7, 2019

内存泄露报表:

类加载器"xxxClassLoader @ 0x760829790"加载的"com.alibaba.metrics.server.MetricsMemoryCache"实例"0x760904030"占用了1,215,172,200 (33.23%)字节.其内存主要积累在由类加载"bootstrap class loader"加载的"java.util.TreeMap$Entry"实例"0x715e43858".

/logs/metrics/bin/日期/目录下生成了上GB的单个文件,删了这些文件之后再重启应用就不FGC了,否则重启完了还是会继续FGC.

通过OQL语言查询,发现内存里面读入大量的二进制落盘long数组。

image

  1. 需要排查为何生成了上GB的单个文件
  2. 二进制落盘时考虑增加大小限制
  3. 从文件中读取数据的时候,需要增加保护措施,方式读取到内存中的数据过多
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