线程“prometheus-http-1-5”中的flink异常java.lang.OutOfMemoryError:Java堆空间

问题描述

环境:flink 1.11.2

Exception in thread "prometheus-http-1-3" java.lang.OutOfMemoryError: Java heap space
    at java.io.ByteArrayOutputStream.<init>(ByteArrayOutputStream.java:77)

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "prometheus-http-1-3"
    at java.io.BufferedInputStream.<init>(BufferedInputStream.java:183)
    at java.io.BufferedInputStream.<init>(BufferedInputStream.java:203)
    at sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:525)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
Exception in thread "prometheus-http-1-5" java.lang.OutOfMemoryError: Java heap space
        -Dkubernetes.jobmanager.annotations=prometheus.io/scrape:true,prometheus.io/port:9249 \
        -Dkubernetes.taskmanager.annotations=prometheus.io/scrape:true,prometheus.io/port:9249 \
        -Dmetrics.reporters=prom \
        -Dmetrics.reporter.prom.class=org.apache.flink.metrics.prometheus.PrometheusReporter \

当我运行一个flink应用程序时,遇到一个关于prometheus线程的错误,我不知道为什么会发生这种情况。

如何解决这个问题?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)