记一次数仓Spark任务报错Caused by: java.lang.OutOfMemoryError: unable to create new native thread

文章讲述了在使用ApacheHadoop时遇到的内存溢出错误,源于无法创建新线程。问题定位到某台机器上Kafka-Eagle组件占用过多句柄,通过查看和关闭这些句柄解决了问题。
摘要由CSDN通过智能技术生成

Caused by: java.lang.OutOfMemoryError: unable to create new native thread

Caused by: java.lang.OutOfMemoryError: unable to create new native thread

    at java.lang.Thread.start0(Native Method)

    at java.lang.Thread.start(Thread.java:717)

    at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:786)

    ... 20 more

24/03/04 17:42:35 INFO retry.RetryInvocationHandler: Exception while invoking renewLease of class ClientNamenodeProtocolTranslatorPB over cdh106/00.0.00.00:8020 after 3 fail over attempts. Trying to fail over immediately.

java.io.IOException: Failed on local exception: java.io.IOException: Couldn't set up IO streams; Host Details : local host is: "cdh116/00.0.00.00"; destination host is: "cdh106":8020;

   发现每次报错都是在cdh116,检查116机器资源问题,发现内存cpu磁盘IO均正常

   咨询运维同事物理机状况,结果正常

   检查机器配置的句柄数,正常,网上很多。不赘述

   后查询该机器上的句柄打开数量,发现是某个组件打开了太多的句柄未关闭

lsof -n|awk '{print $2}'|sort|uniq -c|sort -nr|more

ps aef | grep 2XX1(最大进程pid查看详情)

    发现kafka-eagle占用1300万个句柄,重启之,解决

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值