File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Troubleshooting tips
2+
3+ ## Get core file
4+ Common settings on the system:
5+ * set core file size to unlimited: ` ulimit -c unlimited `
6+
7+ ### Core from unexpected process quit
8+
9+ First you need to activate xrootd to create core file when process exits unexpectedly:
10+
11+ * set env variable upon cmsd/xrootd start ` DAEMON_COREFILE_LIMIT="unlimited" `
12+ RHEL6: env set in ` /etc/sysconfig/xrootd `
13+ RHEL7: you can use ` /etc/sysconfig/xrootd ` but prepare override file ` /etc/systemd/system/cmsd@clustered.service.d/override.conf ` with content:
14+ ```
15+ [Service]
16+ EnvironmentFile=-/etc/sysconfig/xrootd
17+ ```
18+
19+ ### Core from running process
20+ * directly if you know PID:
21+ ```
22+ $ gdb --pid=PID_NR
23+ (gdb) gcore
24+ ```
25+
26+ * if you know process name (e.g. xrootd):
27+ ```
28+ `$ gcore $(pidof xrootd)`
29+ ```
You can’t perform that action at this time.
0 commit comments