React 前端导航

Doris be运行一段时间后异常断开连接

Doris be运行一段时间后异常断开连接

报错提示:

terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Minidump created at: /home/ec2-user/doris/be/minidump/9b820b8c-9591-4c1f-557f0597-62edfe46.dmp
*** Aborted at 1639572821 (unix time) try "date -d @1639572821" if you are using GNU date ***
PC: @     0x7feb5ab0aca0 __GI_raise
*** SIGABRT (@0x4f71) received by PID 20337 (TID 0x7feab8080700) from PID 20337; stack trace: ***
    @          0x2149ad2 google::(anonymous namespace)::FailureSignalHandler()
    @     0x7feb5ab0ad10 (unknown)
    @     0x7feb5ab0aca0 __GI_raise
    @     0x7feb5ab0c148 __GI_abort
    @          0x1030f7f _ZN9__gnu_cxx27__verbose_terminate_handlerEv.cold
    @          0x3898ca6 __cxxabiv1::__terminate()
    @          0x3898d11 std::terminate()
    @          0x3898e64 __cxa_throw
    @          0x103004c _ZN12_GLOBAL__N_110handle_oomEPFPvS0_ES0_bb.cold
    @          0x396307f tcmalloc::allocate_full_cpp_throw_oom()
    @          0x38b7991 std::string::_Rep::_S_create()
    @          0x38b87ce std::string::_Rep::_M_clone()
    @          0x38b8884 std::string::reserve()
    @          0x38b8c8c std::string::append()
    @          0x14fdb9d apache::thrift::protocol::TBinaryProtocolT<>::readStringBody<>()
    @          0x14fdcfc apache::thrift::protocol::TVirtualProtocol<>::readMessageBegin_virt()
    @          0x1727fab apache::thrift::TDispatchProcessor::process()
    @          0x2135021 apache::thrift::server::TConnectedClient::run()
    @          0x212d8c3 apache::thrift::server::TThreadedServer::TConnectedClientRunner::run()
    @          0x212ff83 apache::thrift::concurrency::Thread::threadMain()
    @          0x211f7e0 std::thread::_State_impl<>::_M_run()
    @          0x39148b0 execute_native_thread_routine
    @     0x7feb5a8c040b start_thread
    @     0x7feb5abc440f __GI___clone
    @                0x0 (unknown)

问题原因

内存溢出,由于是测试环境,我们选用的 EC2 实例内存(1G)比较小,容易出现内存溢出。

解决办法

① 增加机器内存

② 设置 echo 1 > /proc/sys/vm/overcommit_memory 允许过量使用内存.

sudo -i

echo 1 > /proc/sys/vm/overcommit_memory

直接使用sudo echo 1 > /proc/sys/vm/overcommit_memory 也会提示 Permission denied。

声明:本网站发布的内容(图片、视频和文字)以原创、转载和分享网络内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。邮箱:farmerlzj@163.com。 本站原创内容未经允许不得转载,或转载时需注明出处: 内容转载自: React前端网:https://qianduan.shop/blogs/detail/31
想做或者在做副业的朋友欢迎加微信交流:farmerlzj,公众号:生财空间站。

#doris#be#OOM

相关推荐

Doris 部署,启动 FE 报错:

错误提示:java.io.IOException: the self host 172.31.26.7 does not equal to the host in ROLE file 172.17.0.1. You need to set “priority_networks” config in fe.conf to match the host 172.17.0.1

Doris-1.4.2 Linux 直接编译问题记录

在 AWS 上的 EC2 直接编译 Doris,本文主要记录按官方文档操作直接编译过程中遇到的问题,方便查询。