This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
服务需要长时间稳定运行,但有时会发生崩溃的问题。为了能够快速定位崩溃的原因,我们需要生成core dump文件以供分析。
对于TELEPORT的核心服务来说,要在崩溃时生成Core Dump文件,请SSH远程登录到teleport服务器上,然后执行:
$> su $> /etc/init.d/teleport stop core $> ulimit -c unlimited $> /usr/local/teleport/bin/tp_core -d start
注意,请勿关闭此远程连接,直到崩溃发生!
命令解释:
su
/etc/init.d/teleport stop core
ulimit -c unlimited
/usr/local/teleport/bin/tp_core -d start
然后像平常一样使用TELEPORT的各项功能,直到发生崩溃。此时应该能够看到控制台上最后输出的是(core dumped),然后在 /usr/local/teleport/bin 目录下应该能够看到core.xxxx文件,这个文件就是用来进行崩溃分析的core dump文件。
首页
常见问题
JSON-RPC
Deleting the wiki page "CORE DUMP" cannot be undone. Continue?