Skip to content

Commit

Permalink
Update 0.FAQ.md (#2407)
Browse files Browse the repository at this point in the history
* Update 0.FAQ.md

* Update 0.FAQ.md

* Update 0.FAQ.md
  • Loading branch information
foesa-yang authored Dec 26, 2022
1 parent 9f28145 commit b9df57b
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions docs-2.0/20.appendix/0.FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,39 @@ NebulaGraph {{ nebula.release }} 未提供运维命令以实现自动扩缩容

`OFFLINE` 状态的 Host 将在一天后自动删除。

### 如何查看 dmp 文件?

dmp 文件是错误报告文件,详细记录了进程退出的信息,可以用操作系统自带的 gdb 工具查看。Coredump 文件默认保存在启动二进制的当前目录下(默认为`/usr/local/nebula`目录),在 NebulaGraph 服务 crash 时,系统会自动生成。

1. 查看 Core 文件进程名字,pid 一般为数值。
```
$ file core.<pid>
```
2. 使用 gdb 调试。
```
$ gdb <process.name> core.<pid>
```
3. 查看文件内容。
```
$(gdb) bt
```
例如:

```bash
$ file core.1316027
core.1316027: ELF 64-bit LSB core file, x86-64, version 1 (SYSV), SVR4-style, from '/home/workspace/fork/nebula-debug/bin/nebula-metad --flagfile /home/k', real uid: 1008, effective uid: 1008, real gid: 1008, effective gid: 1008, execfn: '/home/workspace/fork/nebula-debug/bin/nebula-metad', platform: 'x86_64'

$ gdb /home/workspace/fork/nebula-debug/bin/nebula-metad core.1316027

$(gdb) bt
#0 0x00007f9de58fecf5 in __memcpy_ssse3_back () from /lib64/libc.so.6
#1 0x0000000000eb2299 in void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct<char*>(char*, char*, std::forward_iterator_tag) ()
#2 0x0000000000ef71a7 in nebula::meta::cpp2::QueryDesc::QueryDesc(nebula::meta::cpp2::QueryDesc const&) ()
...
```

如果用户不清楚 dmp 打印出来的相关信息,可以将打印出来的内容,带上操作系统版本、硬件配置、Core文件产生前后的错误日志和可能导致错误的操作贴在 [NebulaGraph 论坛](https://discuss.nebula-graph.com.cn/)上寻求帮助。

## 关于连接

### 防火墙中需要开放哪些端口?
Expand Down

0 comments on commit b9df57b

Please sign in to comment.