Questions about Coredump

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: coredump 疑问

| username: ShawnYan

Which TiDB components generate coredumps?
By default, is the size of coredump files limited?

| username: 双开门变频冰箱 | Original post link

Coredump is related to the operating system, right?

| username: TiDBer_jYQINSnf | Original post link

I’ve seen TiKV’s coredump, but haven’t seen others.

| username: ShawnYan | Original post link

abort-on-panic

  • Sets whether TiKV should call abort() to exit the process when a panic occurs. This option affects whether TiKV allows the system to generate core dump files.
    • If this configuration item is set to false, TiKV will call exit() to exit the process when a panic occurs.
    • If this configuration item is set to true, TiKV will call abort() to exit the process when a panic occurs. At this time, TiKV allows the system to generate core dump files upon exit. To generate core dump files, you also need to configure the system for core dumps (such as enabling ulimit -c and configuring the core dump path, which varies by operating system). It is recommended to set the core dump generation path on a different disk partition from TiKV data to avoid core dump files occupying too much disk space and causing insufficient disk space for TiKV.
  • Default value: false

  • resource_control: Runtime resource control. All configurations under this field will be written into the systemd service file, with no restrictions by default. The following resources can be controlled:
    • limit_core: Controls the size of core dumps
| username: 春风十里 | Original post link

In case TiKV crashes, core dump is still useful for finding the cause.

| username: zhanggame1 | Original post link

Will it be very large?

| username: dba远航 | Original post link

A core dump is a saved image of memory information.

| username: xfworld | Original post link

It will be huge :rofl: