[Bug] [enigne] Caused by: java.lang.OutOfMemoryError: Metaspace
Author: wangbing505Created Sep 23, 2026Updated Sep 29, 2026
Labelsbughelp wanted
Search before asking
- I had searched in the issues and found no similar issues.
What happened
使用分离模式集群部署服务,集群作业量也就10个之内,每小时调度一次,一段时间之后就会报错 Caused by: java.lang.OutOfMemoryError: Metaspace
SeaTunnel Version
2.3.13
SeaTunnel Config
提交作业就会报错,和作业配置无关Running Command
java -Dlog4j2.contextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector -Dlog4j2.isThreadContextMapInheritable=true -DAsyncLogger.ThreadNameStrategy=UNCACHED -Dhazelcast.logging.type=log4j2 -Dlog4j2.configurationFile=/opt/seatunnel/config/log4j2.properties -Dseatunnel.logs.path=/opt/seatunnel/logs -Dseatunnel.logs.file_name=seatunnel-engine-worker -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp/seatunnel/dump/zeta-server -XX:MaxMetaspaceSize=2g -XX:+UseG1GC -Dseatunnel.config=/opt/seatunnel/config/seatunnel.yaml -Dhazelcast.config=/opt/seatunnel/config/hazelcast-worker.yaml -Xms24G -cp /opt/seatunnel/lib/*:/opt/seatunnel/starter/seatunnel-starter.jar org.apache.seatunnel.core.starter.seatunnel.SeaTunnelServer -r worker -DJvmOption=-Xms24G -Xmx24GError Exception
Caused by: java.lang.OutOfMemoryError: Metaspace
[] 2026-09-23 14:09:41,089 ERROR [.s.r.f.ExceptionHandlingFilter] [qtp1603729058-28207] - Error occurred while processing request
org.apache.seatunnel.api.table.factory.FactoryException: ErrorCode:[API-06], ErrorDescription:[Factory initialize failed] - Unable to create a sink for identifier 'Hive'.Zeta or Flink or Spark Version
No response
Java or Scala Version
No response
Screenshots
No response
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct
Source: apache/seatunnel