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

java.lang.InternalError: Memory Pool not found #4014

Closed
henrypoter opened this issue Jan 12, 2022 · 2 comments
Closed

java.lang.InternalError: Memory Pool not found #4014

henrypoter opened this issue Jan 12, 2022 · 2 comments
Milestone

Comments

@henrypoter
Copy link

environment

  • canal version 1.1.5
  • jdk version jdk1.8.0_151

Issue Description

When I startup canal, it throws below exception:

2022-01-12 10:58:23.289 [main] INFO  com.alibaba.otter.canal.deployer.CanalLauncher - ## load canal configurations
2022-01-12 10:58:23.567 [main] INFO  c.a.o.c.c.rocketmq.producer.CanalRocketMQProducer - ##Start RocketMQ producer##
2022-01-12 10:58:23.853 [main] INFO  com.alibaba.otter.canal.deployer.CanalStarter - ## start the canal server.
2022-01-12 10:58:23.967 [main] INFO  com.alibaba.otter.canal.deployer.CanalController - ## start the canal server[192.168.11.181(192.168.11.181):11111]
2022-01-12 10:58:24.080 [main] WARN  com.alibaba.otter.canal.prometheus.PrometheusService - Unable to initialize server exports.
java.lang.InternalError: Memory Pool not found
        at sun.management.MemoryPoolImpl.getUsage0(Native Method) ~[na:1.8.0_151]
        at sun.management.MemoryPoolImpl.getUsage(MemoryPoolImpl.java:96) ~[na:1.8.0_151]
        at io.prometheus.client.hotspot.MemoryPoolsExports.addMemoryPoolMetrics(MemoryPoolsExports.java:106) ~[simpleclient_hotspot-0.4.0.jar:na]
        at io.prometheus.client.hotspot.MemoryPoolsExports.collect(MemoryPoolsExports.java:125) ~[simpleclient_hotspot-0.4.0.jar:na]
        at io.prometheus.client.CollectorRegistry.collectorNames(CollectorRegistry.java:100) ~[simpleclient-0.4.0.jar:na]
        at io.prometheus.client.CollectorRegistry.register(CollectorRegistry.java:50) ~[simpleclient-0.4.0.jar:na]
        at io.prometheus.client.Collector.register(Collector.java:139) ~[simpleclient-0.4.0.jar:na]
        at io.prometheus.client.Collector.register(Collector.java:132) ~[simpleclient-0.4.0.jar:na]
        at io.prometheus.client.hotspot.DefaultExports.initialize(DefaultExports.java:24) ~[simpleclient_hotspot-0.4.0.jar:na]
        at com.alibaba.otter.canal.prometheus.PrometheusService.initialize(PrometheusService.java:54) ~[canal.prometheus-1.1.5-SNAPSHOT.jar:na]
        at com.alibaba.otter.canal.server.embedded.CanalServerWithEmbedded.start(CanalServerWithEmbedded.java:81) [canal.server-1.1.5-SNAPSHOT.jar:na]
        at com.alibaba.otter.canal.deployer.CanalController.start(CanalController.java:503) [canal.deployer-1.1.5-SNAPSHOT.jar:na]
        at com.alibaba.otter.canal.deployer.CanalStarter.start(CanalStarter.java:89) [canal.deployer-1.1.5-SNAPSHOT.jar:na]
        at com.alibaba.otter.canal.deployer.CanalLauncher.main(CanalLauncher.java:115) [canal.deployer-1.1.5-SNAPSHOT.jar:na]
2022-01-12 10:58:26.152 [main] INFO  com.alibaba.otter.canal.deployer.CanalStarter - ## the canal server is running now ......

This caused the prometheus monitor metric collector not work, JMX collect metrics failed.

Steps to reproduce

download canal.deployer-1.1.5 , go to bin directory, run

./startup.sh

Expected behaviour

No exception and monitor work well.

Workaround

update JAVA_OPTS in startup.sh

 JAVA_OPTS="-server -Xms128m -Xmx512m -Xmn128m  "

Reference

https://www.yourkit.com/forum/viewtopic.php?t=3603

@agapple
Copy link
Member

agapple commented May 16, 2022

感觉是遇到了prometheus自身的问题?

@agapple
Copy link
Member

agapple commented May 16, 2022

按文档描述,需要考虑升级为G1

@agapple agapple added this to the v1.1.6 milestone May 23, 2022
@agapple agapple closed this as completed May 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants