网创优客建站品牌官网
为成都网站建设公司企业提供高品质网站建设
热线:028-86922220
成都专业网站建设公司

定制建站费用3500元

符合中小企业对网站设计、功能常规化式的企业展示型网站建设

成都品牌网站建设

品牌网站建设费用6000元

本套餐主要针对企业品牌型网站、中高端设计、前端互动体验...

成都商城网站建设

商城网站建设费用8000元

商城网站建设因基本功能的需求不同费用上面也有很大的差别...

成都微信网站建设

手机微信网站建站3000元

手机微信网站开发、微信官网、微信商城网站...

建站知识

当前位置:首页 > 建站知识

tcmalloc导致程序无法启动

启用tcmalloc编译后,在测试机上调试启动运行都没有问题,但是上了线上服务器后就无法启动,CPU占用还非常高,pstack看了下,死锁了,线程全部卡在spinlock下面,又折回去发现在我开发机上就不会走到SpinLock::SlowLock这个函数,没辙,老老实实自己折腾个内存池吧

目前成都创新互联已为上千家的企业提供了网站建设、域名、网页空间、网站托管、服务器租用、企业网站设计、晋源网站维护等服务,公司将坚持客户导向、应用为本的策略,正道将秉承"和谐、参与、激情"的文化,与客户和合作伙伴齐心协力一起成长,共同发展。

Thread 5 (Thread 0x7f848c753700 (LWP 4197)):

#0  0x00007f8489a78fd0 in base::internal::SpinLockDelay(int volatile*, int, int) () from /usr/local/lib/libtcmalloc.so.4

#1  0x00007f8489a78dbc in SpinLock::SlowLock() () from /usr/local/lib/libtcmalloc.so.4

#2  0x00007f8489a69065 in tcmalloc::CentralFreeList::Populate() () from /usr/local/lib/libtcmalloc.so.4

#3  0x00007f8489a692a0 in tcmalloc::CentralFreeList::FetchFromOneSpansSafe(int, void**, void**) () from /usr/local/lib/libtcmalloc.so.4

#4  0x00007f8489a69343 in tcmalloc::CentralFreeList::RemoveRange(void**, void**, int) () from /usr/local/lib/libtcmalloc.so.4

#5  0x00007f8489a6d3e5 in tcmalloc::ThreadCache::FetchFromCentralCache(unsigned long, unsigned long) () from /usr/local/lib/libtcmalloc.so.4

#6  0x00007f8489a5c193 in (anonymous namespace)::cpp_alloc(unsigned long, bool) () from /usr/local/lib/libtcmalloc.so.4

#7  0x00007f8489a7bc98 in tc_new () from /usr/local/lib/libtcmalloc.so.4

#8  0x0000003f5309c3c9 in std::basic_string, std::allocator >::_Rep::_S_create(unsigned long, unsigned long, std::allocator const&) () from /usr/lib64/libstdc++.so.6

#9  0x0000003f5309ddaa in std::basic_string, std::allocator >::_M_mutate(unsigned long, unsigned long, unsigned long) () from /usr/lib64/libstdc++.so.6

#10 0x0000003f5309df6c in std::basic_string, std::allocator >::_M_replace_safe(unsigned long, unsigned long, char const*, unsigned long) () from /usr/lib64/libstdc++.so.6

#11 0x00007f848a4c4708 in ?? ()

#12 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f848bd52700 (LWP 4199)):

#0  0x00007f8489a78fd0 in base::internal::SpinLockDelay(int volatile*, int, int) () from /usr/local/lib/libtcmalloc.so.4

#1  0x00007f8489a78dbc in SpinLock::SlowLock() () from /usr/local/lib/libtcmalloc.so.4

#2  0x00007f8489a6db63 in tcmalloc::ThreadCache::CreateCacheIfNecessary() () from /usr/local/lib/libtcmalloc.so.4

#3  0x00007f8489a5c2d6 in (anonymous namespace)::cpp_alloc(unsigned long, bool) () from /usr/local/lib/libtcmalloc.so.4

#4  0x00007f8489a7bc98 in tc_new () from /usr/local/lib/libtcmalloc.so.4

#5  0x00007f848a4b641f in ?? ()

#6  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f848b351700 (LWP 4200)):

#0  0x00007f8489a78fd0 in base::internal::SpinLockDelay(int volatile*, int, int) () from /usr/local/lib/libtcmalloc.so.4

#1  0x00007f8489a78dbc in SpinLock::SlowLock() () from /usr/local/lib/libtcmalloc.so.4

#2  0x00007f8489a69065 in tcmalloc::CentralFreeList::Populate() () from /usr/local/lib/libtcmalloc.so.4

#3  0x00007f8489a692a0 in tcmalloc::CentralFreeList::FetchFromOneSpansSafe(int, void**, void**) () from /usr/local/lib/libtcmalloc.so.4

#4  0x00007f8489a69343 in tcmalloc::CentralFreeList::RemoveRange(void**, void**, int) () from /usr/local/lib/libtcmalloc.so.4

#5  0x00007f8489a6d3e5 in tcmalloc::ThreadCache::FetchFromCentralCache(unsigned long, unsigned long) () from /usr/local/lib/libtcmalloc.so.4

#6  0x00007f8489a5c193 in (anonymous namespace)::cpp_alloc(unsigned long, bool) () from /usr/local/lib/libtcmalloc.so.4

#7  0x00007f8489a7bc98 in tc_new () from /usr/local/lib/libtcmalloc.so.4

#8  0x0000003f5309c3c9 in std::basic_string, std::allocator >::_Rep::_S_create(unsigned long, unsigned long, std::allocator const&) () from /usr/lib64/libstdc++.so.6

#9  0x0000003f5309ddaa in std::basic_string, std::allocator >::_M_mutate(unsigned long, unsigned long, unsigned long) () from /usr/lib64/libstdc++.so.6

#10 0x0000003f5309df6c in std::basic_string, std::allocator >::_M_replace_safe(unsigned long, unsigned long, char const*, unsigned long) () from /usr/lib64/libstdc++.so.6

#11 0x00007f848a4fcfe3 in ?? ()

#12 0x6120726f6620257b in ?? ()

#13 0x6c6461206e692064 in ?? ()

Thread 1 (Thread 0x7f84a15f4700 (LWP 4026)):

#0  0x00007f8489a78fd0 in base::internal::SpinLockDelay(int volatile*, int, int) () from /usr/local/lib/libtcmalloc.so.4

#1  0x00007f8489a78dbc in SpinLock::SlowLock() () from /usr/local/lib/libtcmalloc.so.4

#2  0x00007f8489a6db63 in tcmalloc::ThreadCache::CreateCacheIfNecessary() () from /usr/local/lib/libtcmalloc.so.4

#3  0x00007f8489a5c2d6 in (anonymous namespace)::cpp_alloc(unsigned long, bool) () from /usr/local/lib/libtcmalloc.so.4

#4  0x00007f8489a7bc98 in tc_new () from /usr/local/lib/libtcmalloc.so.4

#5  0x0000003f5309c3c9 in std::basic_string, std::allocator >::_Rep::_S_create(unsigned long, unsigned long, std::allocator const&) () from /usr/lib64/libstdc++.so.6

#6  0x0000003f5309cde5 in ?? () from /usr/lib64/libstdc++.so.6

#7  0x0000003f5309cf33 in std::basic_string, std::allocator >::basic_string(char const*, std::allocator const&) () from /usr/lib64/libstdc++.so.6


网站名称:tcmalloc导致程序无法启动
当前链接:http://bjjierui.cn/article/gjpidg.html

其他资讯