当前位置:   article > 正文

hiveserver2运行异常:GC overhead limit exceeded_hiveserver2 gc overhead limit exceeded

hiveserver2 gc overhead limit exceeded

记一次hiveserver2服务运行异常问题。

报错信息:

java.lang.OutOfMemoryError: GC overhead limit exceeded

解决方法:

修改hive配置文件hive-env.sh。将原来注释的替换成如下配置

  1. # Hive Client memory usage can be an issue if a large number of clients
  2. # are running at the same time. The flags below have been useful in
  3. # reducing memory usage:
  4. #
  5. if [ "$SERVICE" = "cli" ]; then
  6. if [ -z "$DEBUG" ]; then
  7. export HADOOP_OPTS="$HADOOP_OPTS -XX:NewRatio=12 -Xms10m -Xmx4096m -XX:MaxHeapFreeRatio=40 -XX:MinHeapFreeRatio=15 -XX:+UseParNewGC -XX:-UseGCOverheadLimit"
  8. else
  9. export HADOOP_OPTS="$HADOOP_OPTS -XX:Ne
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/663750
推荐阅读
相关标签
  

闽ICP备14008679号