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

apollo内存使用率高 #5353

Open
3 tasks done
maidou758 opened this issue Feb 28, 2025 · 1 comment
Open
3 tasks done

apollo内存使用率高 #5353

maidou758 opened this issue Feb 28, 2025 · 1 comment

Comments

@maidou758
Copy link

maidou758 commented Feb 28, 2025

描述bug

实际业务量不多,但是内存占用高,需要定时重启,是不是内存没有回收。

复现

期望

希望能解决问题

截图

Image

额外的细节和日志

  • 版本:apollo-configservice:1.7.1
  • 错误日志 无
  • 配置:没有限制
  • 平台和操作系统 k8s
Copy link

dosubot bot commented Feb 28, 2025

@maidou758 你好!我是Dosu,一个可以帮助你解决 bug、回答问题,甚至成为贡献者的机器人。我会在等待人类维护者处理你的问题时帮助你。

I found a similar closed issue regarding high memory usage in Apollo, but no solution was found in the comments [1].

For monitoring and analyzing memory usage patterns in Apollo, you can enable client monitoring by configuring the following properties:

  1. Set apollo.client.monitor.enabled to true to activate the ConfigMonitor.
  2. Enable JMX monitoring by setting apollo.client.monitor.jmx.enabled to true.
  3. Specify the Exporter type with apollo.client.monitor.external.type, e.g., prometheus for Prometheus.
  4. Adjust the export frequency with apollo.client.monitor.external.export-period.

These configurations can help you gather and analyze memory usage patterns to identify potential issues [2].

Additionally, the default memory settings for Apollo's configuration service in version 1.7.1 are:

export JAVA_OPTS="-server -Xms6144m -Xmx6144m -Xss256k -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=384m -XX:NewSize=4096m -XX:MaxNewSize=4096m -XX:SurvivorRatio=18"

You might want to review these settings to see if they can be optimized for your specific use case [3].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

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

1 participant