Apache Doris 中文技术论坛
Questions Tags Users Badges

带UDF函数的SQL执行导致报错 [INTERNAL_ERROR]OutOfMemoryError: Compressed class space

Asked Jun 6, 2024 Modified Jun 6, 2024
Viewed 126
2.1

使用doris版本 2.1.2
使用Java 编写的UDF函数,导致频繁的Full gc,直到无法执行SQL

引起gc的原因
image.png

gc日志
image.png

最终任何sql都没法执行:
image.png

edited Jun 6, 2024
zhangbaoming3
asked Jun 6, 2024
2 Answers

调整下be的JVM大小,默认是1GB,可以在be.conf中修改下,修改完重启
image.png

edited Jan 1, 1970
阿渊@SelectDB (没回帖直接加我主页微信)9580
answered Jun 6, 2024

看起来是在使用Java UDF函数的时候会产生 元空间内存泄露,每次执行带UDF函数的sql后,都会增长,现在这个大小已经不符合常理了

image.png

edited Jan 1, 1970
zhangbaoming3
answered Jun 6, 2024
Related Questions
Doris 2.1.4版本,be节点崩溃重启后集群恢复很慢问题
1 answers
Doris2.1.4 be节点宕机,jemalloc相关问题
使用UNIQUE KEY建表时候,用日期建分区,日期字段不是跟在id后面,一定要列出日期字段前面所有字段才能建分区吗
1 answers
Doris CBO 导致的BE节点内存规律性波动问题
1 answers
ROUTINE LOAD导入kafka数据,当kafka是cdc数据,JSON格式,带删除标识的:op:d
1 answers
jdbc catalog 地址修改有残留
1 answers

Terms of service Privacy policy

Powered by Answer - the open-source software that powers Q&A communities.
Made with love © 2026 Apache Doris 中文技术论坛.