http-1-5”java.lang.outofmemoryerror中的flink异常:java堆空间

ffscu2ro  于 2021-06-21  发布在  Flink
关注(0)|答案(0)|浏览(272)

环境: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线程的错误,我不知道为什么会发生这种情况。
如何解决这个问题?

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题