开发者社区> 问答> 正文

java.lang.InternalError: Memory Pool not found

环境信息

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用户

展开
收起
后端老大 2023-04-26 16:45:31 248 0
1 条回答
写回答
取消 提交回答
  • 按文档描述,需要考虑升级为G1

    原回答者GitHub用户agapple

    2023-04-26 19:28:35
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Spring Cloud Alibaba - 重新定义 Java Cloud-Native 立即下载
The Reactive Cloud Native Arch 立即下载
JAVA开发手册1.5.0 立即下载