环境信息
canal version 1.1.5 jdk version jdk1.8.0_151
问题描述
当我启动canal时,报错如下:
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 ......
步骤重现
下载canal.deployer-1.5,转到bin目录,运行
./startup.sh
参考:https://www.yourkit.com/forum/viewtopic.php?t=3603
原提问者GitHub用户
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。